[FIXED] javascript: Bookmarklets break JavaScript

Bug reports and enhancement requests
Post Reply
vsemozhetby
Posts: 2
Joined: Mon Feb 10, 2014 9:07 pm

[FIXED] javascript: Bookmarklets break JavaScript

Post by vsemozhetby »

Bookmarklets with javascript: protocol break JavaScript on the pages with NoScript 2.6.8.13 installed on Nightly (30.0a1 2014-02-09)

Please, look for the details:

https://bugzilla.mozilla.org/show_bug.cgi?id=970445
Mozilla/5.0 (Windows NT 5.1; rv:30.0) Gecko/20100101 Firefox/30.0
barbaz
Senior Member
Posts: 11109
Joined: Sat Aug 03, 2013 5:45 pm

Re: Bookmarklets with javascript: protocol break JavaScript

Post by barbaz »

I can confirm this with current SeaMonkey Nightly and NS 2.6.8.14rc1. Using the following bookmarklet typed in the URL bar

Code: Select all

javascript:alert('foo');
on a script-allowed test page, while that alert shows, NoScript seems to think scripts are globally allowed :o
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; Linux i686; rv:30.0) Gecko/20100101 Firefox/30.0 SeaMonkey/2.27a1
User avatar
therube
Ambassador
Posts: 7972
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Bookmarklets with javascript: protocol break JavaScript

Post by therube »

> on a script-allowed test page while that alert shows, NoScript seems to think scripts are globally allowed

That is normal & expected.
And that is also going to be different from what the OP is describing.

He is saying that once the bookmarklet has run, the behavior of the page changes.
(And that I can confirm.)

Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0 SeaMonkey/2.26a1

---

Load: https://www.mozilla.org/en-US/
(Allow mozilla.org & mozilla.net if need be)
(Observe that the pictures "flow", change)
Run your JavaScript code: javascript:alert('foo');
(Observe that the pictures are now "static")
Disable NoScript & repeat
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; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0 SeaMonkey/2.26a2
barbaz
Senior Member
Posts: 11109
Joined: Sat Aug 03, 2013 5:45 pm

Re: Bookmarklets with javascript: protocol break JavaScript

Post by barbaz »

therube wrote:He is saying that once the bookmarklet has run, the behavior of the page changes.
Yes, that's what I was saying I could confirm. I incorrectly assumed that NS claiming scripts were globally allowed was related to JS being disabled by bookmarklet execution.
Sorry about the confusion.
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:27.0) Gecko/20100101 Firefox/27.0 SeaMonkey/2.24
vsemozhetby
Posts: 2
Joined: Mon Feb 10, 2014 9:07 pm

Re: Bookmarklets with javascript: protocol break JavaScript

Post by vsemozhetby »

Thank you, it is fixed in the v2.6.8.14rc2.
Mozilla/5.0 (Windows NT 5.1; rv:30.0) Gecko/20100101 Firefox/30.0
Post Reply