Ship window.name resetting
Categories
(Core :: DOM: Core & HTML, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox86 | --- | fixed |
People
(Reporter: annevk, Assigned: timhuang)
References
(Blocks 1 open bug)
Details
(Keywords: dev-doc-complete)
Attachments
(1 file)
- Announce intent to ship on dev.platform.
- Flip
privacy.window.name.update.enabled
. - File follow-up bug for removal of
privacy.window.name.update.enabled
once it's been flipped for a couple of releases.
Assignee | ||
Comment 1•2 years ago
|
||
About 1,
We have sent out the intent to ship before. See https://groups.google.com/g/mozilla.dev.platform/c/Tu3uXFg5xV0/m/FDNYXZTzBAAJ
Assignee | ||
Comment 2•2 years ago
|
||
Comment 3•2 years ago
|
||
While I was doing some Fission work I realized that there seems to be an issue in the name resetting implementation even without Fission.
Filing a bug with a testcase in a moment.
Updated•2 years ago
|
Updated•2 years ago
|
Pushed by tihuang@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/239b7092db35 Enable window.name resetting. r=dimi
Reporter | ||
Comment 5•2 years ago
|
||
Exciting, great work Tim!
Comment 6•2 years ago
|
||
bugherder |
Comment 7•2 years ago
|
||
Rumyra has documented this one; see https://github.com/mdn/content/issues/1730 for details. Basically it was already documented; we just needed to update the compat data and provide a rel note to make it clear that this is now shipped.
Let us know if you think this needs anything else. Thanks!
Comment 8•2 years ago
|
||
I want to bring to attention that this change broke protractor (automated testing tool) with angular.js. See https://github.com/angular/angular.js/issues/17117 for details.
Short story: window.name is used as a signaling "channel" for the external testing code, to indicate the page JS has initialised.
Maybe it could be nice to keep the pref around, or make FirefoxDriver not reset window.name at all?
Reporter | ||
Comment 9•2 years ago
|
||
Chris, thanks for highlighting that. Could you file a new bug against FirefoxDriver/DevTools so we can consider that and your suggestion does not get lost? (And maybe link it from here afterwards in case others are curious.)
Comment 10•2 years ago
|
||
Anne, thanks for the suggestion. I've filed #1700931 but cannot find the proper component for FirefoxDriver. Maybe you could fix that bugs metadata? Thanks!
Comment 11•2 years ago
|
||
thank you for your work on limiting window.name leaks, however, the current implementation leaves wide open all leaks that occur after window.open is used, even if the call to window.open does not specify a window name, for example ...
- site-1.com calls window.open('https://site-2.com/')
- site-2.com specifies window.name='blahblah'
- user enters 'https://site-3.com/' in the location bar
- site-3.com calls alert(window.name), which will show 'blahblah' that was set by site-2.com
Reporter | ||
Comment 12•2 years ago
|
||
That's correct and out-of-scope of this bug. We track that general class of problems in bug 1657250.
Description
•