Page 1 of 1

Fix for "FF 45 aborts initial request for new domains"

Posted: Thu Feb 04, 2016 12:39 pm
by Lekensteyn
Since updating to Firefox 45.0b1, pages from new domain would not load until a second attempt. For example, visit https://lwn.net for the first time, the page load simply aborts and will only pass when opening it for the second time (affects both addresses entered via the location bar and anchors in a HTML page).

logcat

Code: Select all

[NSA] First request https://lwn.net/checked in 314 (including lazy init) at 1454589276774
[NSA Error] TypeError: Cc['@mozilla.org/netwerk/global-channel-event-sink;1'] is undefined
ChannelReplacement.prototype._onChannelRedirect@resource://noscript_3_5a10/modules/ChannelReplacement.jsm:195:1
ChannelReplacement.prototype._redirect@resource://noscript_3_5a10/modules/ChannelReplacement.jsm:298:9
ChannelReplacement.prototype.replace/</self.observeCapture/self.open@resource://noscript_3_5a10/modules/ChannelReplacement.jsm:267:36
ABE.deferIfNeeded/</</<@resource://noscript_3_5a10/modules/ABE.jsm:293:13
DNS.resolve/resolve/<@resource://noscript_3_5a10/modules/DNS.jsm:248:15
DNSListener.prototype.onLookupComplete@resource://noscript_3_5a10/modules/DNS.jsm:365:24
By the way, the https://noscript.net/nsa/ page links to the older 3.5a9 version rather than the current 3.5a10.

Re: FF 45 / NSA 3.5a10 aborts initial request for new domain

Posted: Tue Feb 09, 2016 2:14 pm
by Lekensteyn
Issue was introduced with https://hg.mozilla.org/mozilla-central/rev/e772b5154e0c where an event sink was removed. The fix is to avoid passing messages to this sink.

Patch: https://github.com/Lekensteyn/noscript- ... 33c192daf6
Pre-built extension: https://lekensteyn.nl/files/noscript-ns ... nsteyn.xpi (from https://github.com/Lekensteyn/noscript- ... 0-20160209 using makexpi.sh)

Re: Fix for "FF 45 aborts initial request for new domains"

Posted: Tue Feb 09, 2016 5:53 pm
by Giorgio Maone
Thank you!

Re: Fix for "FF 45 aborts initial request for new domains"

Posted: Sat Mar 12, 2016 7:20 pm
by Sentinel
OK, please forgive my ignorance here but the same thing is happening to me. Ever since updating to FF 45 I have to click every link twice to go to a page. I think that that is what the original poster topic is about. I uninstalled NoScript and it works fine so I figured it must be the culprit so I came here and saw this topic.

But if I am reading the reply correctly it seems as though there is a patch or fix; am I understanding this correctly? However I do not understand how to apply or download the fix. Can someone explain what I have to do so a "not quite as savvy" person can implement it please? It would be greatly appreciated. :)

Re: Fix for "FF 45 aborts initial request for new domains"

Posted: Sat Mar 12, 2016 11:28 pm
by Giorgio Maone
Sentinel wrote: But if I am reading the reply correctly it seems as though there is a patch or fix; am I understanding this correctly? However I do not understand how to apply or download the fix.
Just install 3.5a11 from https://noscript.net/nsa/

Re: Fix for "FF 45 aborts initial request for new domains"

Posted: Sun Mar 13, 2016 12:24 pm
by Sentinel
Thank you. That did it.
Oddly I tried that before posting but for some reason it was still downloading the previous version.
Got the new version now and all is well.
Very much appreciated.