[HTTPS-Everywhere] https-everywhere bug with channels not attached to a window

Loic J. Duros lduros at gnu.org
Mon May 14 08:44:24 PDT 2012


I've got my code working with the https-everywhere-uri-rewrite 
notifications in many instances. However, in some instances I get an 
error. I thought I'd mention it here in case someone knows about this. 
It seems that the final request is never reaching a 200 status, looking 
at the logs:

Got onChannelRedirect.
exploded getting DOMWin for 
https://www.fsf.org/graphics/widget/global/widget.js
exploded getting DOMWin for 
http://static.fsf.org/fsforg/graphics/widget/global/widget.js
No applicable list rewriting 
http://static.fsf.org/fsforg/graphics/widget/global/widget.js
Potentially applicable rules for static.fsf.org:
   Free Software Foundation
Redirection limit is 19
Notifying observers of rewrite from 
http://static.fsf.org/fsforg/graphics/widget/global/widget.js to 
https://static.fsf.org/fsforg/graphics/widget/global/widget.js
Scheduling channel replacement for 
http://static.fsf.org/fsforg/graphics/widget/global/widget.js
Got http-on-modify-request: 
http://static.fsf.org/fsforg/graphics/widget/global/widget.js
exploded getting DOMWin for 
http://static.fsf.org/fsforg/graphics/widget/global/widget.js
No applicable list rewriting 
http://static.fsf.org/fsforg/graphics/widget/global/widget.js
Potentially applicable rules for static.fsf.org:
   Free Software Foundation
Redirection limit is 19
Notifying observers of rewrite from 
http://static.fsf.org/fsforg/graphics/widget/global/widget.js to 
https://static.fsf.org/fsforg/graphics/widget/global/widget.js
Scheduling channel replacement for 
http://static.fsf.org/fsforg/graphics/widget/global/widget.js
Ran channel replacement for 
http://static.fsf.org/fsforg/graphics/widget/global/widget.js
Ran channel replacement for 
http://static.fsf.org/fsforg/graphics/widget/global/widget.js
TypeError: sink.asyncOnChannelRedirect is not a function
info: librejs: req.readyState is 4 
https://www.fsf.org/graphics/widget/global/widget.js
info: librejs: req.status is 0 
https://www.fsf.org/graphics/widget/global/widget.js

All my extension is doing is creating a new xhr request with the updated 
url (the https one), but as you can see the req.status is 0, and nothing 
happens until the timeout (15 seconds) is triggered.

Thanks,




More information about the HTTPS-everywhere mailing list