Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Èròjà atẹ̀lélànà yii ni a ti fi pamọ́ fọ́jọ́ pípẹ́. Jọ̀wọ́ béèrè ìbéèrè titun bí o bá nílò ìrànwọ́.

My web app is broken since Firefox 81.0.2 (64-bit)

more options

The width parameter in no longer honoured in my web app that calls a new window.

Still working as expected in Google Chrome 86.0.4240.75 , Internet Explorer 11.572

myWindow = window.open('newed.html?nid='+id,'_blank','top=50, left=50, width=1000,height=800,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no', myWindow);'

The width parameter in no longer honoured in my web app that calls a new window. Still working as expected in Google Chrome 86.0.4240.75 , Internet Explorer 11.572 ''myWindow = window.open('newed.html?nid='+id,'_blank','top=50, left=50, width=1000,height=800,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no', myWindow);'

All Replies (10)

more options

raymond15 said

The width parameter in no longer honoured in my web app that calls a new window.

What is the width of the window that gets created? For me, it has an exterior width of 1002 pixels, and interior width of 1000 pixels as expected. (I measure in a crude way: screenshot the entire popup window using Alt+PrintScreen and then paste into MS Paint.)

Note on CSS Pixels vs. Device Pixels

Firefox interprets width and height as CSS pixels, and not physical device pixels. Therefore, the size of the window depends on your global scaling factor, which typically follows your Windows system setting for DPI or Text Size (whatever they are calling it these days).

For example, if your system scaling is 125%, then your popup window will have an inner width of

1000 * 1.25 = 1250px

The page content reads that as 1000px even though on the monitor it consumes 1250px.

more options

Whist this may be a commentary on Windows scaling it does not address the issue experienced since the release of Firefox on 16/12/2020. Given that the web works as expected in Google Chrome and Internet Explorer your response offers no solution or explanation of this issue

more options

I did ask you a question:

jscher2000 said

raymond15 said

The width parameter in no longer honoured in my web app that calls a new window.

What is the width of the window that gets created?

And I provided an explanation of a possible reason that it might be larger than expected so you could research whether that is causing your issue.

However, until the cause is determined, it would be premature to suggest a solution.


One method to suss out a settings or add-on issue is:

New Profile Test

This takes about 3 minutes, plus the time to test your app.

Inside Firefox, type or paste about:profiles in the address bar and press Enter/Return to load it.

Take a quick glance at the page and make a mental note of which Profile has this notation: This is the profile in use and it cannot be deleted. That is your current default profile.

Click the "Create a New Profile" button, then click Next. Assign a name like Oct2020, ignore the option to relocate the profile folder, and click the Finish button.

Firefox will switch your default profile to the new one, so click the Set as Default Profile button for your regular one to avoid an unwanted surprise at your next startup.

Scroll down to Oct2020 and click its Launch profile in new browser button.

Firefox should open a new window that looks like a brand new, uncustomized installation. (Your existing Firefox window(s) should not be affected.) Please ignore any tabs enticing you to connect to a Sync account or to activate extensions found on your system so we can get a clean test.

Do the popup have the expected size in the new profile?

When you are done with the experiment, you can close the extra window without affecting your regular Firefox profile. (Oct2020 will remain available for future testing.)

more options

Talking about the graphical element of the window that is created by PHP.

myWindow = window.open('newed.html?nid='+id,'_blank','top=50, left=50, width=1000,height=800,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no', myWindow);'

Screen capture CTRL+ALT+PrtScr Pasted into Irfanview, using Image information - Original size = 2544 x 1085 Pixels (2.76 MPixels) (2.34) Current size = 2544 x 1085 Pixels (2.76 MPixels) (2.34)

more options

I'm not sure why your post is in the moderation queue. It should appear in the thread at some point.

I'm not sure what you mean by "the graphical element of the window that is created by PHP". window.open() is JavaScript, and the width and height parameters refer to the size of the client area in the popup window.

Could you try a very basic window.open() to see whether the dimensions work? Here's how:

Open the Web Console in the lower part of the tab using either:

  • "3-bar" menu button > Web Developer > Web Console
  • (menu bar) Tools > Web Developer > Web Console
  • (Windows) Ctrl+Shift+k

Then type or paste the following script in the area where you can type script. If there is a Run button, click Run. If there is not, press Enter/Return to run it.

window.open("", '_blank', 'width=1000, height=800');

The first time you run code in the Web Console, Firefox usually will ask you to take some action to prove you understand that it's dangerous to run scripts from strangers, which is true. Make sure to delete any text you are asked to type before running the above command.

If you have not previously made a popup exception on the site you use for this test, Firefox may block the popup.

Do you get a window of the expected size?

If so, you could add your other parameters one or two at a time until you discover which one is breaking it.

If not, what size is the popup window?

more options

It is likely height=800 that triggers the RegExp for toll free numbers (this is a crude filter that extracts all digits in a reply and ignore anything else).

more options

I hope I'm in the right place now. You're right, it's JS but called from PHP file.

window.open("",'_blank','top=50, left=50, width=1000,height=800,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no');

The above snippet yields a null window of the correct size. So what else has changed in the FF release a week ago given that Chrome and IE still work as expected. I'm certainly mystified about the relationship to TOLL free numbers. I try some random number.

more options

Hmm, the popup window is the correct size when the URL is "" but it is the wrong size when the URL is 'newed.html?nid='+id? What size is the popup window when it is the wrong size?

(You previously mentioned a very high value -- higher than full HD width -- so I wasn't sure whether that was the screen or the popup.)

(To return to a previous topic, the attached screenshots show the popup sizing when the zoom level of the calling page is 100% vs. 120%.)

more options

The graphic (2544 x 1085) I mentioned before is the web page rendered on the screen monitor (dual monitors 1 - 2569x1440 2 - 1020x1200 (extended displays))

The size of the undesired popup is twice + 20 of what's expected (height is same for both) when one page (expected) is overlayed on the undesired page.

more options

Perhaps this problem is related to having two displays with very different resolutions. If you add code to adjust the width and height in Firefox to counteract scaling, does it make any difference?

var w = 1000;
var h = 800;
if (navigator.userAgent.indexOf('Firefox') > 0 && window.devicePixelRatio != 1){
  w = w/window.devicePixelRatio;
  h = h/window.devicePixelRatio;
}
myWindow = window.open('newed.html?nid='+id, '_blank', 'top=50, left=50, width=' + w + ', height=' + h + ', toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no');
 


By the way, location=no will never be honored in Firefox.