[tor-bugs] #16620 [Tor Browser]: Transform window.name handling into Firefox patch
Tor Bug Tracker & Wiki
blackhole at torproject.org
Fri Oct 30 21:37:57 UTC 2015
#16620: Transform window.name handling into Firefox patch
-------------------------------------------------+-------------------------
Reporter: mikeperry | Owner: mcs
Type: defect | Status:
Priority: Medium | needs_revision
Component: Tor Browser | Milestone:
Severity: Normal | Version:
Keywords: tbb-torbutton-conversion, | Resolution:
TorBrowserTeam201510R | Actual Points:
Parent ID: | Points:
Sponsor: SponsorU |
-------------------------------------------------+-------------------------
Comment (by arthuredelstein):
Replying to [comment:18 mcs]:
> Here is a revised patch:
> https://gitweb.torproject.org/user/brade/tor-
browser.git/commit/?h=bug16620-03&id=cd8e63be6a6be9377fd81ab8fbfd2ee2230cfc65
>
> We relocated the code that clears window.name so it runs after the
previous page has received its unload event. We also added a mochitest
that tries to use an unload event listener to reinstate the window.name
value (similar to what http://www.thomasfrank.se/sessvarsTestPage1.html
does). We did not see a problem even when pages were loaded from the
cache.
>
> Please review.
I read over the code and mochitest source and they look good to me. I ran
the mochitest and everything passed.
I also experimented with http://www.thomasfrank.se/sessvarsTestPage1.html
-- it seems clicking on links or the "submit" button results in a Referer;
entering the URL in the URL bar does not, and window.name seems to follow
the rules correctly (getting wiped when there is no Referer). So I think
this patch is good.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/16620#comment:19>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list