[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #2875 [Tor Browser]: Spoof Desktop Resolution in TorBrowser
#2875: Spoof Desktop Resolution in TorBrowser
-------------------------+--------------------------------------------------
Reporter: mikeperry | Owner: mikeperry
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: Tor Browser | Version:
Keywords: | Parent: #2871
Points: 6 | Actualpoints:
-------------------------+--------------------------------------------------
Changes (by mikeperry):
* points: 16 => 6
Comment:
window.screen uses nsDeviceContext internally.
It appears as though CSS does too, in layout/style/nsMediaFeatures.cpp.
However, we are probably better off just hacking nsMediaFeatures and
window.screen to behave properly.
There is a nice array in nsMediaFeatures::features where it looks like we
can just change the entries there. In general, we'll want to change all
the device-related properties to be the same as their window equivalents.
However, this is some extra fun wrt the mozilla extensions.. We'll want to
pick custom values for those.
All-in-all I don't think this one should be too hard either. I think the
hacks will actually be easier than those for #2872. Perhaps a day of
hacking and a half day of testing on a couple different platforms, or some
mix thereof.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/2875#comment:7>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs