Search Support

Beware of phishing attacks: Mozilla will never ask you to call a number or visit a non-Mozilla website. Please ignore such requests.

Learn More

Prevent new window from hiding addons in toolbar

  • 7 பதிலளிப்புகள்
  • 1 இந்த பிரச்சனை உள்ளது
  • 43 views
  • Last reply by jscher2000

Recently, when a popup window appears, the toolbar doesn't have buttons for any of my addons.

In about:config, I'd intentionally set dom.disable_window_open_feature.toolbar to true (following the solution provided in: question 1206512).

Previously, this was successful in ensuring that popup windows got the full toolbar, but now it has stopped working.

I'm not sure exactly which release this started with.

Steps to reproduce:

1) Set dom.disable_window_open_feature.toolbar to true.

2) Visit https://jeffersonscher.com/res/popit.html and follow the third link.

3) The window that pops up has no toolbar icons for the installed extensions.

Attached screenshots

philipmgrant மூலமாக திருத்தப்பட்டது

தீர்வு தேர்ந்தெடுக்கப்பட்டது

I think this is a change in Firefox 76 to be more consistent with other browsers. (Compat Note)

At least there is a menu button! But yes, it is annoying not to have the full set of tools we prefer.

I'm not yet aware of a workaround. As a possible quick hack when relevant, you can re-launch the page in a new tab:

(1) Open the Web Console by pressing Ctrl+Shift+k

(2) Type or paste

window.open(location.href)

after the >> (or the 1) and press Enter (or click Run) to execute it

I'm sure there are some sites where that won't give you a usable page, but until something better comes along, it's an option for many pages.

If you want to get rid of popup windows and always get a new tab, there is a preference for that. As mentioned on the popit page:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button accepting the risk.

(2) In the search box in the page, type or paste neww and pause while the list is filtered

(3) Double-click the browser.link.open_newwindow.restriction preference to display an editing field, and change the value to 0 (that's a zero) then press Enter or click the blue check mark button to save the change.

More info on about:config: Configuration Editor for Firefox.

Read this answer in context 👍 1

All Replies (7)

தீர்வு தேர்ந்தெடுக்கப்பட்டது

I think this is a change in Firefox 76 to be more consistent with other browsers. (Compat Note)

At least there is a menu button! But yes, it is annoying not to have the full set of tools we prefer.

I'm not yet aware of a workaround. As a possible quick hack when relevant, you can re-launch the page in a new tab:

(1) Open the Web Console by pressing Ctrl+Shift+k

(2) Type or paste

window.open(location.href)

after the >> (or the 1) and press Enter (or click Run) to execute it

I'm sure there are some sites where that won't give you a usable page, but until something better comes along, it's an option for many pages.

If you want to get rid of popup windows and always get a new tab, there is a preference for that. As mentioned on the popit page:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button accepting the risk.

(2) In the search box in the page, type or paste neww and pause while the list is filtered

(3) Double-click the browser.link.open_newwindow.restriction preference to display an editing field, and change the value to 0 (that's a zero) then press Enter or click the blue check mark button to save the change.

More info on about:config: Configuration Editor for Firefox.

Helpful?

Thanks very much. I'm very happy for "popups" just to become new tabs in the same window, so I've set browser.link.open_newwindow.restriction to 0, and all is well!

Helpful?

It's been a long week so apologies, but with all due this is an insanely bad move.

This feature was literally THE reason why I used Firefox over Chrome all these years. I realize popups get a bad wrap but consider: I run a software company that creates web forms. When you preview the form you press a save button and a popup appears with your finished form. When developing and for my users it's incredibly helpful to see both the final output (the popup), and the form editor at once.

As these forms can have multiple pages at minimum having easily accessible back / forward control is a must. Gone. Worse, this change also removed the ability for popups to have tabs. I used tabs in popups all the time to perform secondary "research tasks", such as looking up a function call in Stack Overflow, etc. This was a wonderful way to work, as my "main" browser window sat uncluttered as I dutifully worked on my secondary task in the popup. When done a single click closed that "task" and my main browser window was ready to go again.

What's so aggravating is this was a solved issue for years. Give the web developer control over the presentation, and the user the ultimate say via preferences.

Revert this pointless change or loose me as a user.

Helpful?

Hi mattgrdinic, here in support we can suggest settings and workarounds to make Firefox behave the way you want, but we are not the software developers.

To submit feature suggestions, you have many choices, depending on your desired style of interaction. I'll provide a list at the end of this reply.

My understanding of your problem is that Firefox 76 broke your hack to work around the default feature of diverting new windows to a new tab instead. The popup no longer is fully featured. Since you want this particular button/link to launch a fully functional popup, you have several possible alternatives to the hack that involve varying levels of difficulty. However, I think they all start with changing your window.open() code so it doesn't trigger a restricted popup and then:

(A) Turn off the preference to divert new windows to a new tab instead

This is not site-specific. If you need to see both at once and the original window was maximized, you'll need to restore/resize the new popup since it also will be maximized.

(B) Keep the default behavior and after the new tab opens, "detach" the new tab to its own window

You can detach a tab by dragging the tab down from the tab bar over the main toolbar and releasing the mouse. If you need to see both at once and the original window was maximized, you'll need to restore/resize the new popup since it also will be maximized.

(C) Use an extension to create the desired popup

Does the popup have its own URL, i.e., it's not created using document.write()? An extension could detect the opening of the proofing page based on a parameter in the URL (tabs.onUpdated). If it is already in its own window, the extension could resize it as desired. If it's one of many tabs, the extension could create a new window of the desired size (windows.create) and move the page from the current window to that one (tabs.move).

This could be a nice bonus product for your users, and the code probably would be 99% the same between Firefox and Chrome so everyone can benefit.

(D) Redesign your tool to use a framed page for interactive preview instead of a separate window

If your users haven't been clamoring for this and your competitors don't yet offer it, it may not be worth the effort at this point.

Feature Suggestions

Discussion Sites/Advocacy

Limited Length Comments

Bug Tracking System

Helpful?

I appreciate the feedback! From your comments in some of the related issue (1635630) I can see you're well-versed in this change.

The only viable option would be C, but good lord the idea of creating a custom extension to fix something I didn't break....

More generally, I understand the desire to be like the others but just because other browsers behave in this way doesn't mean it's right.

Because of its long and storied history, Firefox had a unique feature that enabled powerful workflows that at worst could be ignored by the vast majority of web users and developers.

While no doubt meaning well, what's distressing is a single engineer could open a bug where he cites two of his own bugs as cases for, asks if it'll create compatibility issues without actually doing to work to see if it would (for real users), and the unilaterally removes the feature we depend on without providing a viable workaround.

This is a great way to loose market share.

I hope being like the other browsers in this one esoteric way is worth it, after more than 15 years you've lost me.

Helpful?

I don't believe all pop-up are evil. I just don't want a crippled browser window opening. This is another sad day for the freedom on Firefox's moment towards open internet... be like everyone else?

can anyone provide information as to other values for these?

       browser.link.open_newwindow: 
       browser.link.open_newwindow.restriction: 
       browser.link.open_newwindow.override.external:

Helpful?

Hi djk44883:

(A) browser.link.open_newwindow - for links in Firefox tabs

This is the one that has a checkbox on the Preferences page:

  • 3 = divert new window to a new tab (default)
  • 2 = allow link to open a new window
  • 1 = force new window into same tab

(B) browser.link.open_newwindow.restriction - for links in Firefox tabs

By default, if a page sets width, height, or toolbars for a popup, Firefox will let it be a separate window. To force those into a tab as well, you can change this preference to 0:

  • 0 = apply the setting under (A) to ALL new windows (even script windows with features)
  • 2 = apply the setting under (A) to normal windows, but NOT to script windows with features (default)
  • 1 = override the setting under (A) and always use new windows

(C) browser.link.open_newwindow.override.external - for links in other programs

  • -1 = apply the setting under (A) to external links (default)
  • 3 = open external links in a new tab in the last active window
  • 2 = open external links in a new window
  • 1 = open external links in the last active tab replacing the current page

To return to normal if things go haywire, there's an arrow-like reset button at the right end of each of those rows if it has a non-default value.

jscher2000 மூலமாக திருத்தப்பட்டது

Helpful?

கேள்வி எழுப்பு

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.