Problems with javascript in the address bar

Ask for help about NoScript, no registration needed to post
obiwan

Problems with javascript in the address bar

Post by obiwan » Sat May 28, 2011 1:39 pm

With NoScript enabled, javascript entered into the address bar on a blank tab doesn't work, even with noscript.allowURLBarJS set to true.

Steps to reproduce:

1) Open a new blank tab
2) Type

Code: Select all

javascript:alert ("hello")
in the address bar and press Enter.

Results:

With NoScript disabled, an alert box is displayed.
With NoScript enabled, nothing happens.
With NoScript enabled but Allow Scripts Globally set, an alert box is displayed.

Any ideas? I've checked that about:blank is allowed, if that makes any difference.
Mozilla/5.0 (X11; Linux i686; rv:2.0.1) Gecko/20100101 Firefox/4.0.1

User avatar
Giorgio Maone
Site Admin
Posts: 8697
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Problems with javascript in the address bar

Post by Giorgio Maone » Sat May 28, 2011 1:49 pm

That's due to some weird Mozilla internal implementation details.
It's worked around in latest development builds.
Mozilla/5.0 (Windows NT 5.2; WOW64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1

obiwan

Re: Problems with javascript in the address bar

Post by obiwan » Sat May 28, 2011 1:57 pm

OK, thanks.
Mozilla/5.0 (X11; Linux i686; rv:2.0.1) Gecko/20100101 Firefox/4.0.1

lisa

Re: Problems with javascript in the address bar

Post by lisa » Tue Jul 05, 2011 6:00 am

additional person with similar problem. Noscript is blocking my javascript in the address bar, but I do not know how to change the noscript.allowURLBarJS setting to true. maybe this is an easy fix if you can explain it to me (as simple as possible please), i've looked all through the NoScript <options> file and can't find that particular bar.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.18) Gecko/20110614 Firefox/3.6.18 ( .NET CLR 3.5.30729)

User avatar
Giorgio Maone
Site Admin
Posts: 8697
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Problems with javascript in the address bar

Post by Giorgio Maone » Tue Jul 05, 2011 8:43 am

lisa wrote:additional person with similar problem. Noscript is blocking my javascript in the address bar, but I do not know how to change the noscript.allowURLBarJS setting to true. maybe this is an easy fix if you can explain it to me (as simple as possible please), i've looked all through the NoScript <options> file and can't find that particular bar.

Open about:config, locate the relevant line and double click it.
Please notice, though, that next Firefox version will prevent address bar JavaScript from interacting with the current page, making it mostly useless anyway.
Mozilla/5.0 (Windows NT 5.2; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0

User avatar
therube
Ambassador
Posts: 7406
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Problems with javascript in the address bar

Post by therube » Tue Jul 05, 2011 2:59 pm

I'm still on 2.1.2rc1 so don't know if it holds true in 2.1.2rc3, but ...

Code: Select all

javascript:alert ("hello")

... brings up the NoScript warning.

Though if you load about:config (even without "entering" [accepting the prompt], much less modifying the associated Preference), then the warning is bypassed for subsequent actions in that window.
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:5.0) Gecko/20110626 Firefox/5.0 SeaMonkey/2.2

User avatar
therube
Ambassador
Posts: 7406
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Problems with javascript in the address bar

Post by therube » Tue Jul 05, 2011 7:58 pm

Though if you load about:config (even without "entering" [accepting the prompt], much less modifying the associated Preference), then the warning is bypassed for subsequent actions in that window.


Ditto with 2.1.2rc3.
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:5.0) Gecko/20110701 Firefox/5.0 SeaMonkey/2.2

User avatar
therube
Ambassador
Posts: 7406
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Problems with javascript in the address bar

Post by therube » Tue Jul 05, 2011 10:36 pm

Maybe this is a SeaMonkey specific issue?

(Not sure if NoScript is "on" in FF5 or not? I installed it, but only the "message at the bottom" shows, no icon or anything like that even though I do have the Add-on bar displaying. Or do I need to customize & drag ...? I sure don't understand this FF critter. So that's normal now, in FF, that no [NoScript|FlashGot] icons display unless you manually customize?)
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:5.0) Gecko/20110701 Firefox/5.0 SeaMonkey/2.2

User avatar
therube
Ambassador
Posts: 7406
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: What makes SeaMonkey different?

Post by therube » Thu Aug 04, 2011 4:38 am

therube wrote:
Maybe this is a SeaMonkey specific issue?


Bump for thoughts?
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:6.0) Gecko/20110731 Firefox/6.0 SeaMonkey/2.3

cael

Re: Problems with javascript in the address bar

Post by cael » Fri Oct 14, 2011 12:09 pm

it seems that the new firefox 7.0.1 has no noscript.allowURLBarJS
sorry im a noob about this thing i just really need to know how to enable it :?
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1

User avatar
therube
Ambassador
Posts: 7406
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Problems with javascript in the address bar

Post by therube » Fri Oct 14, 2011 2:44 pm

> seems that the new firefox 7.0.1 has no noscript.allowURLBarJS

Correct.

Install NoScript, & as it is a NoScript preference, it will then show up.
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:8.0) Gecko/20111006 Firefox/8.0 SeaMonkey/2.5

User avatar
therube
Ambassador
Posts: 7406
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Problems with javascript in the address bar

Post by therube » Tue Nov 22, 2011 7:49 pm

Just a quick note that this oddity still exists in SeaMonkey 2.7a2.
Mozilla/5.0 (Windows NT 5.1; rv:10.0a2) Gecko/20111119 Firefox/10.0a2 SeaMonkey/2.7a2
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:10.0a2) Gecko/20111119 Firefox/10.0a2 SeaMonkey/2.7a2

Post Reply