Open Bug 1635630 Opened 4 years ago Updated 3 years ago

Firefox 76 no more hides its location bar

Categories

(Core :: DOM: Core & HTML, defect, P5)

76 Branch
defect

Tracking

()

Tracking Status
firefox-esr68 --- unaffected
firefox75 --- unaffected
firefox76 --- wontfix
firefox77 --- fix-optional
firefox78 --- fix-optional

People

(Reporter: asoroudi, Unassigned)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36

Steps to reproduce:

Open a chromeless popup window

Actual results:

The window should have minimal chrome (e.g., no tabbar, no location bar, etc. as specified in the window.open command)

Expected results:

The window has a tabbar and location bar (and menu, etc.)

I'm hoping this is a regression rather than an authoritarian and short-sighted change made "for users' own good". Since native programs are fast becoming obsolete and web-apps are the future, people will need to have browser windows open to run webapps and videos and such more and more. This simply CANNOT work if the windows have all kinds of cruft like browser chrome. It MUST be possible to have windows with minimal or even no chrome. If security is an issue, then you need to find a practical way to make it work (e.g., the obvious and easy solution of a whitelist, like with all other permissions) rather than outright prevent people from being able to use the browser to run webapps without wasting precious screen real-estate. Not everyone uses 80" 8K monitors, 10" iPhones, or oversized tablets; every pixel counts.

(In reply to Synetech from comment #0)

Open a chromeless popup window

How are you doing this, ie what are the precise steps to reproduce?

Component: Untriaged → DOM: Core & HTML
Flags: needinfo?(asoroudi)
Product: Firefox → Core

With 'window.open()', turning off all of the browser chrome like the toolbar, menubar, and locationbar.

Flags: needinfo?(asoroudi)

(In reply to Synetech from comment #3)

With 'window.open()', turning off all of the browser chrome like the toolbar, menubar, and locationbar.

Run from where? The web content? A webextension? Something else? With what exact features argument?

Flags: needinfo?(asoroudi)

From a (Tampermonkey) user-script. I've tried changing the 'dom.disable_window_open_*' settings in about:config, but no combination seems to restore the minimal chrome of 75.

Flags: needinfo?(asoroudi)

As far as I know this was intentionally changed in bug 1507375.

Regressed by: 1507375
Has Regression Range: --- → yes

Then I guess I'm going to have to stick with 75 from now on (or switch to another browser) because I can't waste the extra screen space. ¬_¬ Shame.

Set release status flags based on info from the regressing bug 1507375

(In reply to :Gijs (he/him) from comment #4)

(In reply to Synetech from comment #3)

With 'window.open()', turning off all of the browser chrome like the toolbar, menubar, and locationbar.

Run from where? The web content? A webextension? Something else? With what exact features argument?

(In reply to Synetech from comment #5)

From a (Tampermonkey) user-script.

Could you supply the last part: your features argument.

For example, in the following, it's the part with width and height:

window.open('https://bugzilla.mozilla.org', '_blank', 'width=800,height=600');

In Firefox 76, that code creates a popup that doesn't have a tab bar and doesn't allow opening a new tab.

Flags: needinfo?(asoroudi)
Flags: needinfo?(arai.unmht)

according to bug 1636229, this might be win7 32-bit specific issue.
I'll investigate there

Flags: needinfo?(arai.unmht)

Because this bug's Severity is normal and has not been changed, and this bug's priority is -- (none,) indicating it has has not been previously triaged, the bug's Severity is being updated to -- (default, untriaged.)

Severity: normal → --

(In reply to jscher2000 from comment #9)

From a (Tampermonkey) user-script.

Could you supply the last part: your features argument.

For example, in the following, it's the part with width and height:

window.open('https://bugzilla.mozilla.org', '_blank', 'width=800,height=600');

In Firefox 76, that code creates a popup that doesn't have a tab bar and doesn't allow opening a new tab.

This is the function I use to open a 640×360 YouTube playlist window in the bottom-right corner of the screen to watch videos while I work:
window.open("https://www.youtube.com/embed/videoseries?list=" + vPID, vPID, "width=" + (vw/window.devicePixelRatio) + ", height=" + (vh/window.devicePixelRatio) + ", top=" + (top/window.devicePixelRatio) + ", left=" + (left/window.devicePixelRatio));

These are my dom.disable_window_open_feature.* settings:
dom.disable_window_open_feature.close false
dom.disable_window_open_feature.location false (non-default)
dom.disable_window_open_feature.menubar false
dom.disable_window_open_feature.minimizable false
dom.disable_window_open_feature.personalbar false
dom.disable_window_open_feature.resizable false (non-default)
dom.disable_window_open_feature.status false (non-default)
dom.disable_window_open_feature.titlebar false
dom.disable_window_open_feature.toolbar false

When I tried 76, it created the tab-bar and location-bar. I managed to get rid of the tab-bar, but the location-bar was still present no matter what I changed.

I'm back to 75. It's a shame because I despise what Chrome's become and have grown fond of Firefox over the past several years and was just beginning to get deeper into the Firefox ecosystem with add-ons, Firefox account and Monitor and everything, but this is an absolutely blocking issue. 😕

Flags: needinfo?(asoroudi)
Severity: -- → S3
Priority: -- → P5

Bug 1636229 is fixed, is this still an issue?

(In reply to Synetech from comment #12)

These are my dom.disable_window_open_feature.* settings:
dom.disable_window_open_feature.location false (non-default)

It's no longer possible to let pages remove the location bar. You could consider using a userChrome.css file as a workaround. If you aren't familiar, it's an optional style sheet you can create to modify Firefox's UI. The hacks are unofficial and community supported, but sometimes you gotta do what you gotta do.

Are you at all familiar with CSS? If you look at how add-on buttons are hidden on the toolbar in a popup, it is due to this built-in style rule:

*|*:root[chromehidden~="toolbar"] .chromeclass-toolbar-additional {
    display: none;
}

It's easy to expand that pattern to the entire main toolbar (<toolbar id="nav-bar">) with your own rule:

/*** Popup window: when toolbar elements are hidden, hide the nav bar ***/
*|*:root[chromehidden~="toolbar"] #nav-bar {
    display: none;
}

For more information on how to create a userChrome.css file, I have a page over here:

https://www.userchrome.org/how-create-userchrome-css.html

But keep in mind that Firefox changes from time to time, and some custom style rules will require adjustments in response. A good source for creative assistance with style hacks is this subreddit:

https://www.reddit.com/r/FirefoxCSS/

Summary: 76 Broke Chromeless Windows → Firefox 76 no more hides its location bar

The same can be seen when using Google slides, and running a presentation. The location bar is always present and that is very distracting.

Status: UNCONFIRMED → NEW
Ever confirmed: true

(In reply to Henrik Skupin (:whimboo) [⌚️UTC+2] from comment #15)

The same can be seen when using Google slides, and running a presentation. The location bar is always present and that is very distracting.

that sounds different issue, given it's fullscreen, not a popup.
can you file a new bug with steps to reproduce?

Flags: needinfo?(hskupin)

Note that I made a mistake with fullscreen and removed it from my comment. When starting a presentation a popup gets opened, so it perfectly matches this bug.

Flags: needinfo?(hskupin)

(In reply to Henrik Skupin (:whimboo) [⌚️UTC+2] from comment #17)

Note that I made a mistake with fullscreen and removed it from my comment. When starting a presentation a popup gets opened, so it perfectly matches this bug.

Can you please post STR, here or in a new bug?
this bug is about opening a popup from extension that's different situation.
and without your STR, I cannot reproduce it.

Flags: needinfo?(hskupin)
Flags: needinfo?(hskupin)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: