Closed Bug 1219998 Opened 9 years ago Closed 6 years ago

window.name defaults to "main"

Categories

(Firefox OS Graveyard :: Gaia::System::Window Mgmt, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: smaug, Unassigned)

Details

window.name should default to "", but on ffos it seems to default to main.
A test case http://mozilla.pettay.fi/moztests/windowopen.html

Seems like https://mxr.mozilla.org/gaia/source/apps/system/js/browser_frame.js#42 is using "main".

Also, if name management was relying on what Gecko does, 
http://mxr.mozilla.org/mozilla-release/source/dom/ipc/TabChild.cpp#1526 could be removed, I hope. 

As far as I see, FFOS' window.name handling is racy, since it relies on parent sending the name back to child before child has done anything else.

I noticed this while debugging bug 1191724.
This bug is partially in Gecko and partially in Gaia.
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.