javascript: on about:blank not working (allowURLBarJS=true)

Bug reports and enhancement requests
Post Reply
al_9x
Master Bug Buster
Posts: 931
Joined: Thu Mar 19, 2009 4:52 pm

javascript: on about:blank not working (allowURLBarJS=true)

Post by al_9x »

Fx 3.6.17 & 4.0.1, NS 2.1.0.5, new profile, noscript.allowURLBarJS=true

also keyworded javascript: bookmarklets executed from about:blank don't run
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.17) Gecko/20110420 Firefox/3.6.17
User avatar
therube
Ambassador
Posts: 7929
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: javascript: on about:blank not working (allowURLBarJS=tr

Post by therube »

(Confirmed. But then you knew that already ;-).)
Disallow javascript: URLs entered into location bar

Edit: This have anything to do with it, Bug 656815 - javascript: URIs refuse to load when channel owner is null (& Gavin's comment #c8)?
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 6.1; rv:2.0.1) Gecko/20110511 Firefox/4.0.1 SeaMonkey/2.1
User avatar
Giorgio Maone
Site Admin
Posts: 9454
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: javascript: on about:blank not working (allowURLBarJS=tr

Post by Giorgio Maone »

you need noscript.allowURLBarImports = true too.
Mozilla/5.0 (Windows NT 5.2; WOW64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
al_9x
Master Bug Buster
Posts: 931
Joined: Thu Mar 19, 2009 4:52 pm

Re: javascript: on about:blank not working (allowURLBarJS=tr

Post by al_9x »

Giorgio Maone wrote:you need noscript.allowURLBarImports = true too.
Ok, but can you clarify? "javascript:alert('')" doesn't import any scripts and it seems like a good idea to not allow non-trusted imports, why can't javascript: work on about:blank without allowURLBarImports=true
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.17) Gecko/20110420 Firefox/3.6.17
User avatar
Giorgio Maone
Site Admin
Posts: 9454
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: javascript: on about:blank not working (allowURLBarJS=tr

Post by Giorgio Maone »

al_9x wrote:
Giorgio Maone wrote:you need noscript.allowURLBarImports = true too.
Ok, but can you clarify? "javascript:alert('')" doesn't import any scripts and it seems like a good idea to not allow non-trusted imports, why can't javascript: work on about:blank without allowURLBarImports=true
Because for a long while now the only way to execute javascript on about:blank has been allowing scripts globally (which is the same as allowing imports), don't ask me why because I couldn't figure it out.
Mozilla/5.0 (Windows NT 5.2; WOW64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
al_9x
Master Bug Buster
Posts: 931
Joined: Thu Mar 19, 2009 4:52 pm

Re: javascript: on about:blank not working (allowURLBarJS=tr

Post by al_9x »

Giorgio Maone wrote:
al_9x wrote:
Giorgio Maone wrote:you need noscript.allowURLBarImports = true too.
Ok, but can you clarify? "javascript:alert('')" doesn't import any scripts and it seems like a good idea to not allow non-trusted imports, why can't javascript: work on about:blank without allowURLBarImports=true
Because for a long while now the only way to execute javascript on about:blank has been allowing scripts globally (which is the same as allowing imports), don't ask me why because I couldn't figure it out.
So in 2.1.0.6rc8 scripts are still globally allowed on about:blank but without needing to set allowURLBarImports?
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.17) Gecko/20110420 Firefox/3.6.17
User avatar
Giorgio Maone
Site Admin
Posts: 9454
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: javascript: on about:blank not working (allowURLBarJS=tr

Post by Giorgio Maone »

al_9x wrote:So in 2.1.0.6rc8 scripts are still globally allowed on about:blank but without needing to set allowURLBarImports?
Exactly.
Mozilla/5.0 (Windows NT 5.2; WOW64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
Post Reply