Page 1 of 1

Can't open data URI from bookmarklet

Posted: Tue Apr 07, 2015 5:35 pm
by porl
On a script-forbidden domain, this bookmarklet now opens an about:blank window:

Code: Select all

javascript:(function(){window.open('data:text/html,'+encodeURIComponent('<p>hello'))})()
sometimes with the console warning:

Code: Select all

"[Exception... "<no message>"  nsresult: "0x805e0007 (<unknown>)"  location: "JS frame :: chrome://noscript/content/JSURL.js :: <TOP_LEVEL> :: line 70"  data: no]"
NS 2.6.9.20rc2

Re: Can't open data URI from bookmarklet

Posted: Tue Apr 07, 2015 5:36 pm
by barbaz
Does latest development build 2.6.9.21rc1 work?

Re: Can't open data URI from bookmarklet

Posted: Tue Apr 07, 2015 5:39 pm
by porl
barbaz wrote:Does latest development build 2.6.9.21rc1 work?
Wasn't aware of that version, but behaviour is the same.

Re: Can't open data URI from bookmarklet

Posted: Tue Apr 07, 2015 6:13 pm
by therube
I get a "hello" in a new tab, in SeaMonkey 2.33.1 (& FF 37.0.1).

If you disable all other extensions except for NoScript, does the issue persist?

(And you have set noscript.allowURLBarJS to 'true'?)

Re: Can't open data URI from bookmarklet

Posted: Tue Apr 07, 2015 6:15 pm
by barbaz
In SeaMonkey 2.33.1 I get a "SeaMonkey blocked a pop-up" notification but in SeaMonkey Nightly I just get an about:blank window as described

Re: Can't open data URI from bookmarklet

Posted: Tue Apr 07, 2015 6:18 pm
by barbaz
@therube: if you type/paste that javascript: URI in the address bar you won't reproduce the issue

Re: Can't open data URI from bookmarklet

Posted: Tue Apr 07, 2015 9:01 pm
by therube
(Oh, bookmarklet, I missed that & haven't tested that.)