Closed Bug 1193277 Opened 9 years ago Closed 9 years ago

[e10s] window.open(strUrl, '_blank','dialog=1') returns NS_ERROR_FAILURE

Categories

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

41 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1095236

People

(Reporter: inscription, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0 Build ID: 20150810004008 Steps to reproduce: I'm using a micro-bloging plateform called shaarli (http://sebsauvage.net/wiki/doku.php?id=php:shaarli) that use a bookmarklet to share web pages. When I'm on this page : http://www.paulboxley.com/blog/2014/03/visualizing-git-concepts-with-d3 using this bookmarklet fail ``` javascript:javascript:(function(){var%20url%20=%20location.href;var%20title%20=%20document.title%20||%20url;window.open('http://stymaar.fr/links/?post='%20+%20encodeURIComponent(url)+'&title='%20+%20encodeURIComponent(title)+'&source=bookmarklet','_blank','menubar=no,height=760,width=600,toolbar=no,scrollbars=no,status=no,dialog=1');})(); ``` Actual results: `NS_ERROR_FAILURE: ` appears in console as a JavaScript error. When I run the same script in the console (without %20 indeed : ```(function(){var url = location.href;var title = document.title || url;window.open('http://stymaar.fr/links/?post=' + encodeURIComponent(url)+'&title=' + encodeURIComponent(title)+'&source=bookmarklet','_blank','menubar=no,height=760,width=600,toolbar=no,scrollbars=no,status=no,dialog=1');})();``` ) I got a pop-up warning message (same as in FF39) Expected results: In FF39,a new window asking for credentials would have poped-up.
It's an issue in e10s mode about window.open() not able top open a new window with the attribute 'dialog=1'. STR: 1) Start Nightly in e10s mode 2) Disable the pop-up blocker in about:preferences#content 3) Open the web console on any webpage like this one 4) Enter window.open('https://www.mozilla.org/','_blank','dialog=1'); Result: No dialog window open and rrror message: [Exception... "Failure" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: debugger eval code :: <TOP_LEVEL> :: line 1" data: no]
Blocks: e10s
Status: UNCONFIRMED → NEW
Component: Untriaged → DOM: Core & HTML
Ever confirmed: true
OS: Unspecified → All
Product: Firefox → Core
Hardware: Unspecified → All
Summary: Shaarli's bookmarklet not working in e10s enabled Firefox → [e10s] window.open(strUrl, '_blank','dialog=1') returns NS_ERROR_FAILURE
Thanks for the explanations. That gives me a work-around until the bug is fixed :)
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
No longer blocks: e10s
You need to log in before you can comment on or make changes to this bug.