Closed
Bug 1095236
Opened 10 years ago
Closed 9 years ago
[e10s] window.open(..., ..., "dialog=1") breaks with e10s enabled
Categories
(Firefox :: General, defect)
Firefox
General
Tracking
()
RESOLVED
FIXED
Firefox 44
People
(Reporter: chmanchester, Assigned: mconley)
References
(Blocks 1 open bug)
Details
(Keywords: dev-doc-complete, site-compat)
Attachments
(4 files)
Comment hidden (obsolete) |
Reporter | ||
Updated•10 years ago
|
tracking-e10s:
--- → ?
Updated•10 years ago
|
Updated•10 years ago
|
Blocks: e10s-tests
Bug 1095260 removed the dialog=1 property from the test-file, so your link doesn't reproduce the bug anymore.
http://hg.mozilla.org/mozilla-central/filelog/502e1a5e722f/testing/marionette/client/marionette/www/test_windows.html
Here's a jsfiddle which should show the bug: http://jsfiddle.net/as03ohoc/39/
> 10:11:23.226 NS_ERROR_FAILURE: show:27:0
Browser Console and debug-console come up empty.
Comment 4•10 years ago
|
||
The issue here is we don't call ProvideWindow because the dialog flag is set at http://mxr.mozilla.org/mozilla-central/source/embedding/components/windowwatcher/nsWindowWatcher.cpp#647
This causes us to try to open a window from the child process.
It does work if I remove that check.
Assignee | ||
Comment 5•10 years ago
|
||
According to https://developer.mozilla.org/en-US/docs/Web/API/Window/open, "dialog=1" is only supported by Mozilla browsers.
I wonder if it's just some copy-paste that's been propagated around since around forever.
We might want to revisit where we've milestoned this. I don't think we have a good idea of how many sites might be attempting to open popups with dialog=1.
Assignee | ||
Updated•10 years ago
|
Assignee | ||
Comment 6•9 years ago
|
||
This appears to be working now. Please re-open if this is still an issue.
Assignee: nobody → mconley
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WORKSFORME
Assignee | ||
Comment 7•9 years ago
|
||
Aaaaand, I just reproduced this with the jsfiddle in comment 1.
Re-nomming.
Updated•9 years ago
|
Assignee: mconley → mrbkap
Assignee | ||
Comment 9•9 years ago
|
||
I've had some window-opening stuff on my plate lately, so it's kinda swapped into my head already. I'm going to tentatively steal this, but do let me know if you'd like it back.
Assignee: mrbkap → mconley
Status: REOPENED → ASSIGNED
Assignee | ||
Comment 10•9 years ago
|
||
Bug 1095236 - Simplify browser_test_new_window_from_content to use BrowserTestUtils.
Assignee | ||
Comment 11•9 years ago
|
||
Bug 1095236 - Disable dialog=1 support for windows opened from content.
Assignee | ||
Comment 12•9 years ago
|
||
Bug 1095236 - Test that windows opened from content with dialog=1 still open.
Assignee | ||
Comment 13•9 years ago
|
||
So the patch I've got here causes us to ignore dialog=1 when window.open is called from content.
My justification for this is that dialog=1 really only affects the appearance of the popups (by hiding the command menu and the min/max/restore buttons), but otherwise does nothing else to change the behaviour of the popup. Also, Gecko is the only engine to support this, and I doubt anyone else ever will.
I can't think of any good reason, honestly, to keep dialog=1. I suspect that if we found code out there that was using dialog=1, it was probably copy-paste and is not something the site relies on... because I honestly cannot understand how dialog=1 could be useful to the web.
Assignee | ||
Comment 14•9 years ago
|
||
Comment on attachment 8669232 [details]
MozReview Request: Bug 1095236 - Simplify browser_test_new_window_from_content to use BrowserTestUtils.
Bug 1095236 - Simplify browser_test_new_window_from_content to use BrowserTestUtils.
Attachment #8669232 -
Flags: review?(mrbkap)
Assignee | ||
Comment 15•9 years ago
|
||
Comment on attachment 8669233 [details]
MozReview Request: Bug 1095236 - Disable dialog=1 support for windows opened from content.
Bug 1095236 - Disable dialog=1 support for windows opened from content.
Attachment #8669233 -
Flags: review?(mrbkap)
Assignee | ||
Updated•9 years ago
|
Attachment #8669234 -
Flags: review?(mrbkap)
Assignee | ||
Comment 16•9 years ago
|
||
Comment on attachment 8669234 [details]
MozReview Request: Bug 1095236 - Test that windows opened from content with dialog=1 still open.
Bug 1095236 - Test that windows opened from content with dialog=1 still open.
Updated•9 years ago
|
Keywords: dev-doc-needed,
site-compat
Comment 17•9 years ago
|
||
Posted the site compatibility doc: https://www.fxsitecompat.com/en-US/docs/2015/dialog-option-for-window-open-is-no-longer-supported/
Comment 18•9 years ago
|
||
Comment on attachment 8669233 [details]
MozReview Request: Bug 1095236 - Disable dialog=1 support for windows opened from content.
https://reviewboard.mozilla.org/r/21155/#review19341
Looks good. That test is so much more readable now!
Attachment #8669233 -
Flags: review?(mrbkap) → review+
Comment 19•9 years ago
|
||
Comment on attachment 8669232 [details]
MozReview Request: Bug 1095236 - Simplify browser_test_new_window_from_content to use BrowserTestUtils.
https://reviewboard.mozilla.org/r/21153/#review19343
Attachment #8669232 -
Flags: review?(mrbkap) → review+
Comment 20•9 years ago
|
||
Comment on attachment 8669234 [details]
MozReview Request: Bug 1095236 - Test that windows opened from content with dialog=1 still open.
https://reviewboard.mozilla.org/r/21157/#review19345
Attachment #8669234 -
Flags: review?(mrbkap) → review+
Assignee | ||
Comment 21•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/a179310161fb9240245995f86a31ef45cace38f6
Bug 1095236 - Simplify browser_test_new_window_from_content.js to use BrowserTestUtils. r=mrbkap
https://hg.mozilla.org/integration/mozilla-inbound/rev/856b7b90184f29a64093970e540193731b963f61
Bug 1095236 - Disable dialog=1 support for windows opened from content. r=mrbkap
https://hg.mozilla.org/integration/mozilla-inbound/rev/11cb6379251ae9efd70bf3bc1f8fab9b66b3d964
Bug 1095236 - Test that windows opened from content with dialog=1 still open. r=mrbkap.
I backed these out in https://hg.mozilla.org/integration/mozilla-inbound/rev/d2282c3bfb43 on the off chance this caused a spike in VP(b-m) failures on inbound
If that spike doesn't go away with this backout, feel free to reland whenever.
Flags: needinfo?(mconley)
The spike happened elsewhere also, so this can't be at fault.
And even if it was at fault, we don't back out patches for tier-2 test failures:
Relanded:
remote: https://hg.mozilla.org/integration/mozilla-inbound/rev/c5e074f9eab4
remote: https://hg.mozilla.org/integration/mozilla-inbound/rev/6be3322df9e4
remote: https://hg.mozilla.org/integration/mozilla-inbound/rev/c29770290ac1
Flags: needinfo?(mconley)
Comment 24•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/c5e074f9eab4
https://hg.mozilla.org/mozilla-central/rev/6be3322df9e4
https://hg.mozilla.org/mozilla-central/rev/c29770290ac1
Status: ASSIGNED → RESOLVED
Closed: 9 years ago → 9 years ago
status-firefox44:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 44
Assignee | ||
Comment 25•9 years ago
|
||
Updated the documentation: https://developer.mozilla.org/en-US/docs/Web/API/Window/open$compare?locale=en-US&to=944243&from=938191
Keywords: dev-doc-needed
Updated•9 years ago
|
Keywords: dev-doc-complete
Comment 26•9 years ago
|
||
Now also added to Firefox 44 for developers.
Assignee | ||
Comment 27•8 years ago
|
||
bugnotes |
You need to log in
before you can comment on or make changes to this bug.