Page 1 of 1

e10s: Bookmarklet Requires Current Domain to be Allowed

Posted: Sun Apr 30, 2017 1:41 pm
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)

Re: Bookmarklet Requires Current Domain to be Allowed

Posted: Sun Apr 30, 2017 6:00 pm
by barbaz
It works with scripts blocked for me.

Re: Bookmarklet Requires Current Domain to be Allowed

Posted: Sun Apr 30, 2017 8:25 pm
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?

Re: Bookmarklet Requires Current Domain to be Allowed

Posted: Mon May 01, 2017 10:27 am
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).

Re: Bookmarklet Requires Current Domain to be Allowed

Posted: Mon May 01, 2017 12:25 pm
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?

Re: Bookmarklet Requires Current Domain to be Allowed

Posted: Mon May 01, 2017 12:50 pm
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.

Re: Bookmarklet Requires Current Domain to be Allowed

Posted: Mon May 01, 2017 2:31 pm
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/

Re: Bookmarklet Requires Current Domain to be Allowed

Posted: Mon May 01, 2017 8:42 pm
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.

Re: Bookmarklet Requires Current Domain to be Allowed

Posted: Mon May 01, 2017 11:04 pm
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.

Re: Bookmarklet Requires Current Domain to be Allowed

Posted: Tue May 02, 2017 1:21 am
by therube
Oh, the 'ol e10s trick, "that's the second time I've fallen for that this month".

Confirmed.