Missing window controls (minimize, maximize and close buttons) on a window opened as a popup and restored
Categories
(Firefox :: Session Restore, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr68 | --- | wontfix |
firefox-esr78 | --- | wontfix |
firefox-esr91 | --- | wontfix |
firefox70 | --- | wontfix |
firefox76 | --- | wontfix |
firefox77 | --- | wontfix |
firefox78 | --- | wontfix |
firefox79 | --- | wontfix |
firefox90 | --- | wontfix |
firefox91 | --- | wontfix |
firefox96 | --- | wontfix |
firefox97 | --- | wontfix |
firefox98 | --- | fixed |
People
(Reporter: yuki, Assigned: emk)
References
(Blocks 2 open bugs, Regression)
Details
(Keywords: regression)
Attachments
(3 files, 2 obsolete files)
Steps to reproduce
- Start Firefox.
- Go to
about:config
. - Ensure that
browser.link.open_newwindow.restriction
is2
, not0
. - Hit Ctrl-Shift-K to open the web console below the
about:config
page. - Enter a script
window.open('about:blank?1', '_blank', 'all=yes')
and run it. - A popup window is opened without regular UI.
- Close the popup window.
- Restore the last closed window with Ctrl-Shift-N.
Expected result
A window is restored with regular UI, or restored as a popup window.
Actual result
A window is restored without regular UI and it has no window controls.
Environment
- Windows 10 Pro 1809
- Firefox 68.0
- Nightly 70.0a1, build ID 20190709153742
Reporter | ||
Comment 1•5 years ago
|
||
Comment 2•5 years ago
|
||
The priority flag is not set for this bug.
:mikedeboer, could you have a look please?
For more information, please visit auto_nag documentation.
Comment 3•4 years ago
|
||
It'd be great if someone could find the bug that regressed this!
Updated•4 years ago
|
Comment 4•4 years ago
|
||
Regression window(from local cache):
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=5bc910c1f477d8095dcde2c96b7e8639211b9a84&tochange=15b7991887bc8021ba21108c3d31f461fab47a7f
Suspect: 9dd8a5bb9f13de8747538469c749d60b95b812fe Dão Gottwald — Bug 1448286 - Remove redundant gBrowser.tabContainer.updateVisibility call. r=florian
FYI,
After happen the issue, if you run gBrowser.tabContainer.updateVisibility() in Browser toolbox, then the control button reappears.
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Comment 5•4 years ago
|
||
Mike Is this bug still considered S2 and will the team have time to work on this for 79?
Comment 6•4 years ago
|
||
(In reply to Kim Moir [:kmoir] ET from comment #5)
Mike Is this bug still considered S2 and will the team have time to work on this for 79?
Unclear if we'll have a fix ready for 79 but I'm looking into it.
Comment 7•4 years ago
|
||
Hi,
I know this issue is old and hasn't been updated in a while but it seems to have been fixed so think we could close it.
Would you mind checking if it still occurs on your end?
Thanks!
Reporter | ||
Comment 8•4 years ago
|
||
This still happens. Environment:
- Nightly 87.0a1 build ID: 20210215162656
- Windows 10
Updated•3 years ago
|
-
nsWindowWatcher::OpenWindow uses argv length to determine if the window being
opened is a "dialog".We currently pass a single empty string argument for session restore, so
session restored windows are treated as dialogs. This was added in bug 337375
because "session restore disturbs secondary firefox window sizing", but
Session Store now tracks and restores window sizes on its own, so this
shouldn't be required anymore. -
When calculating chrome flags, if the dialog flag is set, and window features
includes "all=yes" (which it does for session restore), then we'll set the
flag to nsIWebBrowserChrome::CHROME_ALL. -
When setting up style data for the widget that we're creating, if CHROME_ALL
is set on the mask, then we set the border style to eBorderStyle_all, instead
of calculating specific border styles, as we do for windows opened via
window.open().
Updated•3 years ago
|
Updated•3 years ago
|
Comment 13•3 years ago
|
||
(In reply to YUKI "Piro" Hiroshi from comment #8)
This still happens. Environment:
- Nightly 87.0a1 build ID: 20210215162656
- Windows 10
Also happens on LInux Mint MATE 20.2 and macOS
Comment 14•3 years ago
|
||
The attached patch doesn't actually fix some cases (notably bug 1659844 IIRC). I think we'll need to track the original window.arguments
and use that in the Services.ww.openWindow() call when opening a window for session restore. There was some chat about this in the #fission channel on Matrix.
Edit: per discussion, Session Restore may just need to track more window features here, and use those when opening the new window for restore.
Updated•3 years ago
|
Comment 15•3 years ago
|
||
The regressing bug (bug 1448286) removed a redundant call to
gBrowser.tabContainer.updateVisibility. It appears that removed call was
necessary for restoring the tabbar of windows that were originally opened as
dialogs.
In D53692, we tried to avoid the extra cost of removing and readding the tab if
we were restoring a single-tabbed window, but it turns out that it's required to
get around the above.
Updated•3 years ago
|
Updated•3 years ago
|
Comment 16•3 years ago
|
||
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Comment 19•3 years ago
|
||
Comment 20•3 years ago
|
||
Comment 21•3 years ago
|
||
Backed out for tab related bc failures.
Failure logs:
- https://treeherder.mozilla.org/logviewer?job_id=366253389&repo=autoland
- https://treeherder.mozilla.org/logviewer?job_id=366254078&repo=autoland
Backout link: https://hg.mozilla.org/integration/autoland/rev/267258da3564b461e5e184dc3898aa6135e25e3e
Comment 22•3 years ago
|
||
Comment 23•3 years ago
|
||
The failures in comment 21 may be caused by the changes in Bug 1750070 https://hg.mozilla.org/integration/autoland/rev/f341a77792975d571bc48ebaba38095e7b9ac967 so I relanded this to see if they still happen.
Updated•3 years ago
|
Comment 24•3 years ago
|
||
bugherder |
Updated•3 years ago
|
Assignee | ||
Comment 26•3 years ago
|
||
Please backout e00a268f35f3 due to regression (bug 1753106).
I found yet another problem. Initially the maximize is disabled in uBO log window (or comment #0 test window), but it is enabled in the restored window.
Comment 27•3 years ago
|
||
Backed out changeset e00a268f35f3 (Bug 1564738) for causing Bug 1753106 as requested by emk.
Backout link: https://hg.mozilla.org/integration/autoland/rev/d5803055f54132f6726d159fead9a926eb9607d3. This will be merged to central later on.
Comment 28•3 years ago
|
||
Backout merged to cental https://hg.mozilla.org/mozilla-central/rev/d5803055f54132f6726d159fead9a926eb9607d3
Updated•3 years ago
|
Assignee | ||
Comment 29•3 years ago
|
||
Changing visibiity causes some subtle problems.
Comment 30•3 years ago
|
||
Comment 31•3 years ago
|
||
bugherder |
Comment 32•3 years ago
|
||
I can still reproduce this in for addon popups in Nightly 98.0a1 as in this bug https://bugzilla.mozilla.org/show_bug.cgi?id=1659844
The window opened with window.open('about:blank?1', '_blank', 'all=yes')
and restored with ctrl shift n opens correctly though.
Updated•3 years ago
|
Description
•