[Fixed] Keyword-activated bookmarklets blocked in Firefox 25

Bug reports and enhancement requests
Post Reply
ivank
Posts: 8
Joined: Sun Jan 23, 2011 5:06 pm

[Fixed] Keyword-activated bookmarklets blocked in Firefox 25

Post by ivank »

In Firefox 25, NoScript prevents bookmarklets from running when you type their associated keyword into the URL bar. This happens only if NoScript is blocking JavaScript for the domain you are on. Keyword-activated bookmarklets worked fine in Firefox 24, even if JavaScript was blocked for the domain.

Repro steps:

1. Install Firefox 25.0b10 or newer from https://ftp.mozilla.org/pub/mozilla.org ... /releases/
2. In a clean profile, install NoScript 2.6.8.3 or 2.6.8.4rc1
3. Create a new bookmark, keyword "test", URL "javascript:(function(){alert("test")})();"
4. Visit a site on which you don't allow JavaScript, e.g. metafilter.com
5. Type the bookmark keyword ("test") into the URL bar and hit Enter
6. Watch nothing happen

Two workarounds: either activate the bookmark by clicking on it, or allow JavaScript for the domain.

Another thing I noticed: noscript.allowURLBarJS -> true doesn't work in Firefox 25, whether or not you allow JavaScript for the domain.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0
User avatar
Giorgio Maone
Site Admin
Posts: 9526
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Keyword-activated bookmarklets blocked in Firefox 25

Post by Giorgio Maone »

Should be fixed in latest development build 2.6.8.4rc2, please verify, thank you.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0
ivank
Posts: 8
Joined: Sun Jan 23, 2011 5:06 pm

Re: Keyword-activated bookmarklets blocked in Firefox 25

Post by ivank »

Yep, it's working here now, thanks a ton for the fix!
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0
ivank
Posts: 8
Joined: Sun Jan 23, 2011 5:06 pm

Re: Keyword-activated bookmarklets blocked in Firefox 25

Post by ivank »

I just noticed that noscript.allowURLBarJS -> true is required to run keyword-activated bookmarklets in Firefox 25 (NoScript 2.6.8.4rc2), but not in Firefox 24 (NoScript 2.6.8.4rc2). This doesn't bother me in the slightest because I always have it on, but it could be considered a regression.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0
User avatar
Giorgio Maone
Site Admin
Posts: 9526
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Keyword-activated bookmarklets blocked in Firefox 25

Post by Giorgio Maone »

ivank wrote:I just noticed that noscript.allowURLBarJS -> true is required to run keyword-activated bookmarklets in Firefox 25 (NoScript 2.6.8.4rc2), but not in Firefox 24 (NoScript 2.6.8.4rc2). This doesn't bother me in the slightest because I always have it on, but it could be considered a regression.
Fixed in latest development build 2.6.8.4.rc3, thank you.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0
ivank
Posts: 8
Joined: Sun Jan 23, 2011 5:06 pm

Re: Keyword-activated bookmarklets blocked in Firefox 25

Post by ivank »

Confirmed fixed, thanks again.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0
Post Reply