[FIXED] NoScript 10.1.8 conflicts with Twitter widget

Bug reports and enhancement requests
Post Reply
vpoint
Posts: 7
Joined: Thu Aug 15, 2013 8:19 pm

[FIXED] NoScript 10.1.8 conflicts with Twitter widget

Post by vpoint » Tue May 29, 2018 3:02 pm

NoScript 10.1.8 conflicts with Twitter embedded timeline widget

Environment
-----------

-Default install of NoScript
-FF60.0.1 (W7 32-bit & W10 64-bit tested) - EIT now tested on FF61.0b9 Dev Edition - same
-Twitter widget web-generated code

Code: Select all

<a class="twitter-timeline"  href="https://twitter.com/nnn" data-widget-id="xxx" data-dnt="true">Tweets by @nnn</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
and simpler async script

Code: Select all

<a class="twitter-timeline"  href="https://twitter.com/nnn" data-widget-id="xxx" data-dnt="true">Tweets by @nnn</a>
<script async src="https://platform.twitter.com/widgets.js"></script>
variants tested

-Tracking Protection (FF) turned off

Symptom
-------

Twitter widget code <a> tag has class 'twitter-timeline-error' added and only the <a> tag is displayed in the div
Twitter JS does not insert an <iframe>


Fixes
-----

Disabling NoScript fixes the problem
Restarting FF with extensions disabled fixes the problem

Opening the inspector and reloading the page temporarily fixes the problem (???)

Example
-------

PM for site URL pls
Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0

User avatar
therube
Ambassador
Posts: 7406
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: NoScript 10.1.8 conflicts with Twitter embedded timeline

Post by therube » Tue May 29, 2018 3:32 pm

Have you test in a new, clean Profile with only NoScript installed? With NoScript, Globally Allowed?

Any related NoScript errors noted in Error Console?
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:52.0) Gecko/20100101 SeaMonkey/2.49.3

vpoint
Posts: 7
Joined: Thu Aug 15, 2013 8:19 pm

Re: NoScript 10.1.8 conflicts with Twitter embedded timeline

Post by vpoint » Tue May 29, 2018 9:36 pm

new, clean profile Dev Edition only NS

no widget on first load
NS allow all on this page
widget shows
reload page
no widget

disable NS restrictions globally
reload
no widget

browser console

only error is

Error: Could not establish connection. Receiving end does not exist. RequestGuard.js:280:7

disable NS add-on and reload page

this error no longer appears
widget displays OK

OK ?
Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0

skriptimaahinen
Senior Member
Posts: 152
Joined: Wed Jan 10, 2018 7:37 am

Re: NoScript 10.1.8 conflicts with Twitter embedded timeline

Post by skriptimaahinen » Wed May 30, 2018 5:06 am

FF 60
NS 10.1.8.1 & 10.1.8.2rc3

https://wet-boew.github.io/v4.0-ci/demo ... er-en.html

I tested with the example timeline above and it appeared to work. Does that timeline work for you or is the problem just with your own timeline? It does seem to load bit slow at times though.
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0

vpoint
Posts: 7
Joined: Thu Aug 15, 2013 8:19 pm

Re: NoScript 10.1.8 conflicts with Twitter embedded timeline

Post by vpoint » Wed May 30, 2018 9:14 pm

skriptimaahinen wrote:FF 60
NS 10.1.8.1 & 10.1.8.2rc3

https://wet-boew.github.io/v4.0-ci/demo ... er-en.html

I tested with the example timeline above and it appeared to work. Does that timeline work for you or is the problem just with your own timeline? It does seem to load bit slow at times though.
That URL does not exhibit the fault, you're right - I found it before I posted here and it worked with 10.1.8.1. I could not eliminate the involvement of the data-dnt: argument on my site, however - which that URL does not use.

No-one asked for a URL for the site that exhibits the error.

The point is moot - it has been silently fixed in 10.1.8.2
Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0

User avatar
Giorgio Maone
Site Admin
Posts: 8697
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: NoScript 10.1.8 conflicts with Twitter embedded timeline

Post by Giorgio Maone » Thu May 31, 2018 11:53 am

vpoint wrote: The point is moot - it has been silently fixed in 10.1.8.2
Most likely an instance of https://bugzilla.mozilla.org/show_bug.cgi?id=1465388
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0

Post Reply