e10s: Bookmarklet Requires Current Domain to be Allowed

Ask for help about NoScript, no registration needed to post
User avatar
therube
Ambassador
Posts: 7969
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

e10s: Bookmarklet Requires Current Domain to be Allowed

Post by therube »

Bookmarklet Requires Current Domain to be Allowed

What in there is the reason for that?

Code: Select all

javascript:(function(){var h='https://www.google.com/search?q=',s=window.getSelection().toString(),i,L=[],U=[],t=new RegExp("([^\n]+)\n?","gi");while(t.test(s)){L.push(h+RegExp.$1)}if(L=prompt(L.join('\n'),L.join(','))){L=L.split(/[,]/);for(i=0;L[i];i++){void(window.open(L[i]))}}})()

Google a list of names

(FF 53)
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:49.0) Gecko/20100101 Firefox/49.0 SeaMonkey/2.46 Lightning/.4.46
barbaz
Senior Member
Posts: 11064
Joined: Sat Aug 03, 2013 5:45 pm

Re: Bookmarklet Requires Current Domain to be Allowed

Post by barbaz »

It works with scripts blocked for me.
*Always* check the changelogs BEFORE updating that important software!
-
barbaz
Senior Member
Posts: 11064
Joined: Sat Aug 03, 2013 5:45 pm

Re: Bookmarklet Requires Current Domain to be Allowed

Post by barbaz »

So..

In what way does it fail with scripts blocked?
What is the exact URL you're using for testing? And what text on that URL?
*Always* check the changelogs BEFORE updating that important software!
-
User avatar
therube
Ambassador
Posts: 7969
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Bookmarklet Requires Current Domain to be Allowed

Post by therube »

OK, it works in SeaMonkey 2.46 - without allowing the page you are on, but not in FF 53.

URL is the page linked in the first post.



Oh, it seems bookmarklets are fubared in general in FF 53 & NoScript 5.0.4rc1.

Code: Select all

javascript:document.write("Hello%20World!")
Not just 5.0.4.
Had to drop down to noscript-2.9.0.13rc1 before things worked in FF.

You mean to tell me that FF users do not use bookmarklets?
Is it any wonder FF is in the state it is!
How lame! (And, sorry LAME.)


Now there are bugs like, Bug 866522 Bookmarklets affected by CSP, ...?

Added her extension, https://bugzilla.mozilla.org/show_bug.cgi?id=866522#c83 (& not that I know what its supposed to accomplish), but even with that, bookmarklets still fail with NoScript installed (in FF 53).
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:49.0) Gecko/20100101 Firefox/49.0 SeaMonkey/2.46 Lightning/.4.46
barbaz
Senior Member
Posts: 11064
Joined: Sat Aug 03, 2013 5:45 pm

Re: Bookmarklet Requires Current Domain to be Allowed

Post by barbaz »

Still works for me with scripts blocked, Firefox 53, NoScript 5.0.4rc1.

With Firefox, I always start from a clean profile. Well, not quite clean, it contains only this user.js -

Code: Select all

user_pref("app.update.auto", false);
user_pref("app.update.enabled", false);
user_pref("browser.pocket.enabled", false);
user_pref("browser.selfsupport.url", "");
user_pref("datareporting.healthreport.uploadEnabled", false);
user_pref("devtools.chrome.enabled", true);
user_pref("loop.enabled", false);
user_pref("media.eme.apiVisible", false);
user_pref("media.eme.enabled", false);
user_pref("social.remote-install.enabled", false);
But I doubt any of those prefs are related to this.

Does it work for you in a clean profile with only NoScript latest development build installed?
*Always* check the changelogs BEFORE updating that important software!
-
User avatar
therube
Ambassador
Posts: 7969
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Bookmarklet Requires Current Domain to be Allowed

Post by therube »

With Firefox, I always start from a clean profile.
Well, color me stupid for not doing that :( .

OK, that works.

After all, FF is only a mule for me, so anything done or not done in it is of no concern...

I'll see if I can't figure out what settings I changed for the issue to present itself to me (but that will have to wait).
Color me double stupid, I forgot to install NoScript in that new Profile, heh.

And no, bookmarklets do not work in FF 53 EME-free (Win7, new, clean Profile), NoScript 5.0.4rc1, all a default settings.
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:49.0) Gecko/20100101 Firefox/49.0 SeaMonkey/2.46 Lightning/.4.46
barbaz
Senior Member
Posts: 11064
Joined: Sat Aug 03, 2013 5:45 pm

Re: Bookmarklet Requires Current Domain to be Allowed

Post by barbaz »

Odd. Maybe it's because I'm using the add-on-devel unbranded build of Firefox 53?

win32 version of the specific build I'm using - https://ftp.mozilla.org/pub/firefox/tin ... 492136869/
*Always* check the changelogs BEFORE updating that important software!
-
User avatar
therube
Ambassador
Posts: 7969
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Bookmarklet Requires Current Domain to be Allowed

Post by therube »

unbranded build of Firefox 53
No difference.

FF 49 works, 50 & up do not.

Only part that I can figure is this Security crap.

SeaMonkey seems unaffected.


Maybe devtools on your end is affecting things?


Also reported here, Bug report: top-level Javascript required for bookmarklets.
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:49.0) Gecko/20100101 SeaMonkey/2.46
barbaz
Senior Member
Posts: 11064
Joined: Sat Aug 03, 2013 5:45 pm

Re: Bookmarklet Requires Current Domain to be Allowed

Post by barbaz »

Apparently not my user.js. It works for me even if I delete my user.js before starting Firefox, leaving me with a totally empty, new, clean profile.


Ok, looks like the issue happens only if e10s is enabled.
*Always* check the changelogs BEFORE updating that important software!
-
User avatar
therube
Ambassador
Posts: 7969
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Bookmarklet Requires Current Domain to be Allowed

Post by therube »

Oh, the 'ol e10s trick, "that's the second time I've fallen for that this month".

Confirmed.
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:49.0) Gecko/20100101 Firefox/49.0 SeaMonkey/2.46 Lightning/.4.46
Post Reply