Javascript window.open() returns false or null in SSB mode
Categories
(Firefox :: General, defect, P5)
Tracking
()
People
(Reporter: mozilla, Unassigned)
References
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0
Steps to reproduce:
- Created a single site browser for https://www.inoreader.com.
- Viewed a news article in the SSB and typed "v" to open the article in a new tab/window.
Actual results:
Tab opened successfully and loaded the desired page in a regular Firefox window. SSB page gave the error "Please disable your popup blocker to use this feature!".
The site checks the return value of the window.open(), and a return value of false or null tells it that window.open() was blocked. In fact it was not blocked - the window/tab opened successfully.
Expected results:
Firefox should have returned a value to window.open() to indicate that the action did not fail/get blocked.
Comment 1•3 years ago
|
||
Hi Scott. I am attempting to reproduce your issue in order to confirm it, but I am confused by the steps you provided.
Please provide more detailed steps, like these:
- Open Firefox ESR v68.6.0esr.
- Load the following website: https://www.inoreader.com/
- Go to... where? What is SSB?
- Type "v" when focused on... what?
Actual results:
SSB page gave the error "Please disable your popup blocker to use this feature!".
Expected results:
SSB page does not show the error "Please disable your popup blocker to use this feature!".
Thank you for your contribution!
Reporter | ||
Comment 2•3 years ago
|
||
- Open Firefox 74.0 (64-bit) and go to about:config.
- Enable Single Site Browser mode by adding browser.ssb.enabled=TRUE to about:config
- Close Firefox.
- Open Firefox 74.0 (64-bit) with parameter "-ssb https://www.inoreader.com"
- Sign in to site (requires creating a free account if you don't have one)
- Click on any article.
- Hit the button "v" on your keyboard.
Actual results:
SSB page gave the error "Please disable your popup blocker to use this feature!".
Expected results:
SSB page does not show the error "Please disable your popup blocker to use this feature!".
Note: Inoreader is just an example. Any site that uses window.open() and checks the result will show the problem when in SSB mode. I can create an example HTML page if requested.
Comment 3•3 years ago
|
||
Other ssb bugs are in Firefox -> General
Comment 4•3 years ago
|
||
Thank you for the correction! I managed to perform all the steps except for the last one. Hitting the "v" button from the keyboard does not result in any kind of error or action. I tried on both Windows 10 and Ubuntu 18 with Firefox Release v74.0.
Scott, can you attempt reproducing it in a newly created profile, please?
(In a way that the previous actions or user data are irrelevant: https://support.mozilla.org/en-US/kb/profile-manager-create-remove-switch-firefox-profiles)
Thank you!
Reporter | ||
Comment 5•3 years ago
|
||
Ah, I did it with a newly created profile and it turns out the steps on the website are a little more involved, sorry.
- Open Firefox 74.0 (64-bit) and go to about:config.
- Enable Single Site Browser mode by adding browser.ssb.enabled=TRUE to about:config
- Enter Firefox settings and ensure that "Block pop-up windows" is unchecked
- Close Firefox.
- Open Firefox 74.0 (64-bit) with parameter "-ssb https://www.inoreader.com"
- Sign in to site (requires creating a free account if you don't have one)
- Click on "Discover" button
- Click on the "Subscribe" button for any news source - it will be added in the left pane under "SUBSCRIPTIONS".
- Click on the news source name beneath "SUBSCRIPTIONS"
- Type "3" to switch the view from a bunch of captioned pictures to a three-pane view with a list of articles in the center pane.
- Click on any article.
- Hit the button "v" on your keyboard.
Actual results:
Article opens in a new window.
SSB page gave the error "Please disable your popup blocker to use this feature!".
Expected results:
Article opens in a new window.
SSB page does not show the error "Please disable your popup blocker to use this feature!".
Note, the easiest way to reproduce/test would be to add a line of javascript to a web page - but apparently Firefox doesn't let you launch in SSB mode with a file:// or localhost: page, so I can't do that myself.
Comment 6•3 years ago
|
||
With the steps provided in the last comment, I have managed to reproduce the issue on Nightly v76.0a1 from 2020-03-23, Beta v75.0b7 and Release v74.0 on Ubuntu 18 and Windows 10. I am assuming ESR channel is out of the question since it does not seem to have this ssb feature implemented.
Comment 7•3 years ago
|
||
I am assuming this is the right component based on the bugs found by query of "Javascript window.open()" in bugzilla. If incorrect, please set a more appropriate component. Thanks.
Comment 8•3 years ago
|
||
But this is about SSB, right?
If so, see https://bugzilla.mozilla.org/show_bug.cgi?id=1622046#c3
Comment 9•3 years ago
|
||
Right, sorry, switching back. I just hope the bug doesn't get lost here.
Comment 10•3 years ago
|
||
Perhaps Mossop knows who deals with SSB issues.
(before this bug I had never heard of SSB before)
Updated•3 years ago
|
Comment 11•2 years ago
|
||
Closing per bug 1682593.
Description
•