Page 1 of 1

[RESOLVED] Fx 28 breaks bookmarklet event listeners

Posted: Fri Mar 21, 2014 3:01 pm
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.

Re: Fx 28 breaks bookmarklet event listeners

Posted: Fri Mar 21, 2014 3:18 pm
by therube
Is it that it doesn't work in a New Tab, but will once a page has first loaded?

Re: Fx 28 breaks bookmarklet event listeners

Posted: Fri Mar 21, 2014 3:52 pm
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.

Re: Fx 28 breaks bookmarklet event listeners

Posted: Fri Mar 21, 2014 4:05 pm
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.

Re: Fx 28 breaks bookmarklet event listeners

Posted: Fri Mar 21, 2014 8:29 pm
by therube
( Code: ... )
Are you sure that's correct?

Re: Fx 28 breaks bookmarklet event listeners

Posted: Fri Mar 21, 2014 10:12 pm
by barbaz
Yes, why?

Re: Fx 28 breaks bookmarklet event listeners

Posted: Fri Mar 21, 2014 10:47 pm
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.

Re: Fx 28 breaks bookmarklet event listeners

Posted: Sat Mar 22, 2014 1:03 am
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??

Re: Fx 28 breaks bookmarklet event listeners

Posted: Sun Mar 23, 2014 12:40 pm
by Giorgio Maone
Please check latest development build 2.6.8.18rc2, thanks.

Re: Fx 28 breaks bookmarklet event listeners

Posted: Sun Mar 23, 2014 7:51 pm
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!

Re: [RESOLVED] Fx 28 breaks bookmarklet event listeners

Posted: Mon Mar 24, 2014 8:16 pm
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.

Re: [RESOLVED] Fx 28 breaks bookmarklet event listeners

Posted: Mon Mar 24, 2014 10:20 pm
by barbaz
porl wrote:window.setTimeout/Interval() remain unavailable on script-disabled sites
WFM, so it's probably another Gecko 28 bug..