[RESOLVED] Fx 28 breaks bookmarklet event listeners

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

[RESOLVED] Fx 28 breaks bookmarklet event listeners

Post by porl »

... and XHR and window.setTimeout() and dev tools, again! Same test cases as when Fx 27 broke them a month ago. Tested with NS 2.6.8.18rc1.
Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0
User avatar
therube
Ambassador
Posts: 7969
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Fx 28 breaks bookmarklet event listeners

Post by therube »

Is it that it doesn't work in a New Tab, but will once a page has first loaded?
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:28.0) Gecko/20100101 SeaMonkey/2.25
porl
Posts: 18
Joined: Fri Mar 01, 2013 2:43 pm

Re: Fx 28 breaks bookmarklet event listeners

Post by porl »

Same as last time. Load a page, add an event listener in a bookmarklet or Scratchpad. Listener won't fire unless scripts are enabled for that domain.
Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0
barbaz
Senior Member
Posts: 11092
Joined: Sat Aug 03, 2013 5:45 pm

Re: Fx 28 breaks bookmarklet event listeners

Post by barbaz »

Confirmed in Gecko 28 with this testcase as URL bar typed/pasted JS:

Code: Select all

javascript:document.body.addEventListener("click", function(){alert("You clicked!");},false);void(0);
Also doesn't work from the Web Console.
Gecko 29 (SeaMonkey Aurora 20140317013001) doesn't seem affected.
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; Linux i686; rv:29.0) Gecko/20100101 Firefox/29.0 SeaMonkey/2.26a2
User avatar
therube
Ambassador
Posts: 7969
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Fx 28 breaks bookmarklet event listeners

Post by therube »

( Code: ... )
Are you sure that's correct?
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:28.0) Gecko/20100101 SeaMonkey/2.25
barbaz
Senior Member
Posts: 11092
Joined: Sat Aug 03, 2013 5:45 pm

Re: Fx 28 breaks bookmarklet event listeners

Post by barbaz »

Yes, why?
*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
User avatar
therube
Ambassador
Posts: 7969
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Fx 28 breaks bookmarklet event listeners

Post by therube »

Well, at first I wasn't making it work.
And just now I did, accidentally.

But I do show that it works in FF28.
And SeaMonkey 2.26a2, Aurora.

With SeaMonkey you get a beep.
With FF, not.

It does not work on a about:newtab, about: ... type of "page", but maybe that's to be expected.

Oh, wait... FF had NoScript 2.6.8.11rc4 in it...

But I still see it working in FF28 with NoScript 2.6.8.18rc1.
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: 11092
Joined: Sat Aug 03, 2013 5:45 pm

Re: Fx 28 breaks bookmarklet event listeners

Post by barbaz »

Heh, I didn't test Fx at all for reasons you can guess... ;)
I was testing on a completely script-forbidden http page.

It never worked for me with any SeaMonkey on about: pages, even with scripts allowed and/or running the code from the Web Console instead of through NS, so I guess that is expected.

On the script-disabled http page, SeaMonkey 2.25 didn't fire the event listener at all, not even after running the test code from the Web Console or trying a new profile with only NoScript added (but no Web Console there...), so I would guess this is more likely a Gecko 28-specific bug than a NoScript bug or extension conflict.
@therube, what did you do that made it work, and on what page??
*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
User avatar
Giorgio Maone
Site Admin
Posts: 9526
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Fx 28 breaks bookmarklet event listeners

Post by Giorgio Maone »

Please check latest development build 2.6.8.18rc2, thanks.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0
barbaz
Senior Member
Posts: 11092
Joined: Sat Aug 03, 2013 5:45 pm

Re: Fx 28 breaks bookmarklet event listeners

Post by barbaz »

Seems fixed here, both URL bar JS and the Web Console work properly with my testcase in Gecko 28 now. Thanks a lot!
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:28.0) Gecko/20100101 Firefox/28.0 SeaMonkey/2.25
porl
Posts: 18
Joined: Fri Mar 01, 2013 2:43 pm

Re: [RESOLVED] Fx 28 breaks bookmarklet event listeners

Post by porl »

I agree.

window.setTimeout/Interval() remain unavailable on script-disabled sites, but then I suspect that was already the case after last month's Firefox changes and it's not a very serious loss anyway.

Thanks Giorgio.
Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0
barbaz
Senior Member
Posts: 11092
Joined: Sat Aug 03, 2013 5:45 pm

Re: [RESOLVED] Fx 28 breaks bookmarklet event listeners

Post by barbaz »

porl wrote:window.setTimeout/Interval() remain unavailable on script-disabled sites
WFM, so it's probably another Gecko 28 bug..
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:29.0) Gecko/20100101 Firefox/29.0 SeaMonkey/2.26a2
Post Reply