Page 1 of 1

temptrusted\disable restriction for tab = still blocked stuf

Posted: Sat Jun 16, 2018 1:41 pm
by Owyn
Image

Re: temptrusted\disable restriction for tab = still blocked

Posted: Sat Jun 16, 2018 2:08 pm
by barbaz
What are your settings for the Trusted permission? Do you have WebGL enabled?

Re: temptrusted\disable restriction for tab = still blocked

Posted: Sat Jun 16, 2018 2:21 pm
by Owyn
barbaz wrote:What are your settings for the Trusted permission? Do you have WebGL enabled?
I do

Re: temptrusted\disable restriction for tab = still blocked

Posted: Sat Jun 16, 2018 2:30 pm
by barbaz
Not seeing that here in Firefox 60.0.2, NoScript 10.1.8.2rc4, new profile.

URL, from your screenshot: https://www.twitch.tv/blizzheroes

Cleaned out irrelevant entries from the default whitelist. Kept clicking "Set all this page to Temporarily Trusted" until there is nothing left. I didn't even see any WebGL placeholders at all.

Could it be another extension interfering?

Re: temptrusted\disable restriction for tab = still blocked

Posted: Sat Jun 16, 2018 2:45 pm
by Owyn
barbaz wrote:Not seeing that here in Firefox 60.0.2, NoScript 10.1.8.2rc4, new profile.

URL, from your screenshot: https://www.twitch.tv/blizzheroes

Cleaned out irrelevant entries from the default whitelist. Kept clicking "Set all this page to Temporarily Trusted" until there is nothing left. I didn't even see any WebGL placeholders at all.

Could it be another extension interfering?
I tried running firefox with all other extensions disabled, same result.

Also tried viewing streams of other games, but there were no blocked webgl elements, perhaps you'd need to link your blizzard (hots) account with twitch to see it, not sure.

Re: temptrusted\disable restriction for tab = still blocked

Posted: Sat Jun 16, 2018 3:45 pm
by barbaz
Owyn wrote:Also tried viewing streams of other games, but there were no blocked webgl elements, perhaps you'd need to link your blizzard (hots) account with twitch to see it, not sure.
Can you check it by loading the site in a Private Browsing window? (assuming that would show you as logged out while not logging out your existing session)

Re: temptrusted\disable restriction for tab = still blocked

Posted: Sat Jun 16, 2018 4:22 pm
by Owyn
barbaz wrote:
Owyn wrote:Also tried viewing streams of other games, but there were no blocked webgl elements, perhaps you'd need to link your blizzard (hots) account with twitch to see it, not sure.
Can you check it by loading the site in a Private Browsing window? (assuming that would show you as logged out while not logging out your existing session)
Checked, blocked webgl elements are still there even in private window...
Only fully turning off noscript extension from extension manager helps to remove those blocks, cuz simply clicking "disable restrictions for this tab" in noscript still keeps those blocked

Re: temptrusted\disable restriction for tab = still blocked

Posted: Tue Jun 19, 2018 12:52 am
by skriptimaahinen
Can confirm the problem. Sending fix suggestion to Giorgio. Not easy fix though.

Re: temptrusted\disable restriction for tab = still blocked

Posted: Tue Jun 19, 2018 2:03 am
by barbaz
@skriptimaahinen Out of curiosity, do you have any insight as to why I couldn't reproduce the problem?

Re: temptrusted\disable restriction for tab = still blocked

Posted: Tue Jun 19, 2018 4:14 am
by skriptimaahinen
The bug is caused by some async functions getting executed in unexpected order, so there's no telling when it happens. To trigger the problem, you need to initially have webgl blocked for the twitch.tv. Refresh the page few times in attempt to trigger it. If you get "script undefined" error in console, you know you have succeeded. After that WebGL will get blocked even if you allow it. Only way to reset the situation is to restart browser or NoScript.

Re: temptrusted\disable restriction for tab = still blocked

Posted: Tue Jun 19, 2018 4:51 am
by barbaz
Thanks skriptimaahinen for your reply and contributions here.

I tried a few times and still couldn't reproduce it. If I enable "script" in DEFAULT, I do see the script is undefined error, but still the webgl placeholders go away for me when I set all to Temp. Trusted. Reloading a few times didn't trigger the race condition, maybe something about my environment prevents it from happening, who knows with this type of issue.

Looks like I can't add anything useful to this issue atm, so will leave this thread alone now.

Re: temptrusted\disable restriction for tab = still blocked

Posted: Tue Jun 19, 2018 6:02 am
by skriptimaahinen
That is odd, as I would imagine that the "script is undefined" error will surely lead to the condition...

You don't need to enable script for default. The required domains are:

Code: Select all

twitch.tv
twitchcdn.net
twitchsvc.net (why does this trigger antispamfilter?)
Though I did try it your way and still got the condition.

Btw, do the placeholders work for you OK if you click on them (regardless of the error)?

Re: temptrusted\disable restriction for tab = still blocked

Posted: Tue Jun 19, 2018 2:44 pm
by Owyn
skriptimaahinen wrote:Btw, do the placeholders work for you OK if you click on them (regardless of the error)?
Nope, tried that - it just reloaded the page and nothing changed

Re: temptrusted\disable restriction for tab = still blocked

Posted: Tue Jun 19, 2018 10:15 pm
by Giorgio Maone
skriptimaahinen wrote:The bug is caused by some async functions getting executed in unexpected order, so there's no telling when it happens. To trigger the problem, you need to initially have webgl blocked for the twitch.tv. Refresh the page few times in attempt to trigger it. If you get "script undefined" error in console, you know you have succeeded. After that WebGL will get blocked even if you allow it. Only way to reset the situation is to restart browser or NoScript.
Thank you for the insight, please check latest development build:
v 10.1.8.3rc2
=============================================================
x Tentative fix for content scripts asynchronous registration
issues (thanks skriptimaahinen for report)