Can't open data URI from bookmarklet

Bug reports and enhancement requests
Post Reply
porl
Posts: 18
Joined: Fri Mar 01, 2013 2:43 pm

Can't open data URI from bookmarklet

Post 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
Mozilla/5.0 (X11; Linux x86_64; rv:37.0) Gecko/20100101 Firefox/37.0
barbaz
Senior Member
Posts: 11092
Joined: Sat Aug 03, 2013 5:45 pm

Re: Can't open data URI from bookmarklet

Post by barbaz »

Does latest development build 2.6.9.21rc1 work?
*Always* check the changelogs BEFORE updating that important software!
-
porl
Posts: 18
Joined: Fri Mar 01, 2013 2:43 pm

Re: Can't open data URI from bookmarklet

Post by porl »

barbaz wrote:Does latest development build 2.6.9.21rc1 work?
Wasn't aware of that version, but behaviour is the same.
Mozilla/5.0 (X11; Linux x86_64; rv:37.0) Gecko/20100101 Firefox/37.0
User avatar
therube
Ambassador
Posts: 7969
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Can't open data URI from bookmarklet

Post 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'?)
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 5.1; rv:36.0) Gecko/20100101 SeaMonkey/2.33.1
barbaz
Senior Member
Posts: 11092
Joined: Sat Aug 03, 2013 5:45 pm

Re: Can't open data URI from bookmarklet

Post 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
*Always* check the changelogs BEFORE updating that important software!
-
barbaz
Senior Member
Posts: 11092
Joined: Sat Aug 03, 2013 5:45 pm

Re: Can't open data URI from bookmarklet

Post by barbaz »

@therube: if you type/paste that javascript: URI in the address bar you won't reproduce the issue
*Always* check the changelogs BEFORE updating that important software!
-
User avatar
therube
Ambassador
Posts: 7969
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Can't open data URI from bookmarklet

Post by therube »

(Oh, bookmarklet, I missed that & haven't tested that.)
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 5.1; rv:36.0) Gecko/20100101 SeaMonkey/2.33.1
Post Reply