Can we drop window.open's feature parameter which controls UI parts visibility?
Categories
(Core :: DOM: Core & HTML, task, P3)
Tracking
()
People
(Reporter: arai, Assigned: arai)
References
(Blocks 1 open bug, Regressed 4 open bugs, )
Details
(Keywords: dev-doc-complete, site-compat)
Attachments
(1 file, 2 obsolete files)
| Assignee | ||
Comment 1•7 years ago
|
||
Updated•7 years ago
|
Comment 2•7 years ago
|
||
| Assignee | ||
Comment 3•7 years ago
|
||
| Assignee | ||
Updated•7 years ago
|
Updated•7 years ago
|
Comment 4•7 years ago
|
||
| Assignee | ||
Comment 5•7 years ago
|
||
| Assignee | ||
Comment 6•7 years ago
|
||
| Assignee | ||
Comment 7•7 years ago
|
||
| Assignee | ||
Comment 8•7 years ago
|
||
| Assignee | ||
Updated•7 years ago
|
| Assignee | ||
Updated•7 years ago
|
Updated•7 years ago
|
| Assignee | ||
Comment 9•6 years ago
|
||
Updated https://arai-a.github.io/window-open-features/
Also added https://arai-a.github.io/window-open-features/firefox.html for Firefox's behavior and prefs
Updated•6 years ago
|
| Assignee | ||
Comment 10•6 years ago
|
||
Tested on Edge Canary, and it seems to be the same behavior as Chrome.
Updated•6 years ago
|
| Assignee | ||
Comment 11•6 years ago
|
||
might also have to think about BarProp.visible.
https://html.spec.whatwg.org/multipage/window-object.html#browser-interface-elements
Chrome seems to return false for the case that the bar is visible but features specifies the bar to be hidden.
| Assignee | ||
Comment 12•6 years ago
|
||
There are some amount of code that checks if size or position is specified, and this affects where the page is loaded (new window or not)
https://searchfox.org/mozilla-central/search?q=aPositionSpecified&path=
I'm not sure modifying this here is reasonable.
If not modify, the condition for whether to open popup or not depends on whether size or position is specified,
in contrast to, chrome that doesn't check size/position, and Safari that checks only width.
| Assignee | ||
Comment 13•6 years ago
|
||
dom.disable_window_open_feature.* prefs doesn't work well with the idea.
those prefs control the effect of each feature separately, but the idea here just uses the set of features to whether to open popup or not,
so there's no controllability for each UI items.
I wonder if we can just remove the pref.
| Assignee | ||
Comment 14•6 years ago
|
||
IIUC, the pref is used both for web content and privileged code.
if that's correct, I wonder if controlling the feature for priv code makes sense... (or, even, if it's used?)
| Assignee | ||
Comment 15•6 years ago
|
||
Also, to align with other browsers, the effect of scrollbars should also be removed (except for the condition as whether to open popup or not).
(failing test: https://searchfox.org/mozilla-central/source/dom/html/test/test_bug369370.html )
| Assignee | ||
Comment 16•6 years ago
|
||
about BarProp, the failing test is https://searchfox.org/mozilla-central/source/dom/tests/mochitest/bugs/test_window_bar.html
| Assignee | ||
Comment 17•6 years ago
|
||
| Assignee | ||
Comment 18•5 years ago
|
||
might also have to think about
BarProp.visible.
https://html.spec.whatwg.org/multipage/window-object.html#browser-interface-elementsChrome seems to return
falsefor the case that the bar is visible but features specifies the bar to be hidden.
IMO it doesn't make much sense to follow Chrome's behavior, because of session restore.
If we don't restore the feature parameter across restart, the property will return different value after the restart,
and if we restore feature parameter, that will cause similar confusion as current behavior.
| Assignee | ||
Comment 19•5 years ago
|
||
new try run https://treeherder.mozilla.org/#/jobs?repo=try&revision=98644431f44af769470bd371b67ecda6732980ee
with:
- removed
dom.disable_window_open_feature.*prefs - updated
BarProptests - updated to follow the latest proposed behavior https://arai-a.github.io/window-open-features/
| Assignee | ||
Comment 20•5 years ago
|
||
Make the features parameter of window.open just a condition for whether to open
a popup or a new tab.
Also remove dom.disable_window_open_feature.* prefs.
Comment 22•5 years ago
|
||
Comment 23•5 years ago
|
||
Backed out changeset 6fe5ce050c0d (Bug 1507375) for failures in test_transformed_scrolling_repaints_3.html CLOSED TREE
Push with failure: https://treeherder.mozilla.org/#/jobs?repo=autoland&selectedJob=293811428&resultStatus=testfailed%2Cbusted%2Cexception&revision=6fe5ce050c0dfcbfaf64ce7f4770cfaa2c2a6cad
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=293811540&repo=autoland&lineNumber=21557
Backout: https://hg.mozilla.org/integration/autoland/rev/5cd032a8ac6c7cdd7fd8a4b371db27bb09a6f321
| Assignee | ||
Updated•5 years ago
|
Comment 24•5 years ago
|
||
Comment 25•5 years ago
|
||
| bugherder | ||
| Assignee | ||
Comment 26•5 years ago
|
||
So far updated the following page to make it up to date, with some note about UI-parts visibility related items
https://wiki.developer.mozilla.org/en-US/docs/Web/API/Window/open
but I haven't described the details of the conditions for whether popup or not, given it's very implementation-dependent.
I guess we can add that section once the condition gets standardized, but I'd leave it to other bug.
also updated
https://wiki.developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/76
Updated•5 years ago
|
Comment 32•5 years ago
|
||
Posted site compatibility note.
| Comment hidden (advocacy) |
| Comment hidden (admin-reviewed, advocacy) |
Description
•