Closed fregante closed 10 years ago
Hi,
I can't reproduce the error with Chrome 31.0 and Chromium 35.0 on Linux, which Chrome Version are you using and which OS?
I meant to specify it but I forgot!
Version 36.0.1985.32 beta on OS X, even in an empty Chrome profile:
[blocked] The page at 'https://github.com/Cacodaimon/SublimeTextArea/issues/5' was loaded over HTTPS, but ran insecure content from 'ws://localhost:1337/': this content should also be loaded over HTTPS.
Uncaught SecurityError: Failed to construct 'WebSocket': An insecure WebSocket connection may not be initiated from a page loaded over HTTPS.
This behavior seems to be new in Chrome 36: https://groups.google.com/a/chromium.org/forum/#!topic/chromium-discuss/1mK3SxfuzqU
For now --disable-web-security
should fix it, I hope they reconsider this behavior for the localhost…
Yep, that worked! I enabled Allow insecure WebSocket from https origin in chrome://flags
The problem kind of remains for everyone else though, we might try to alert the user if there is a security error.
Thx, if this behavior still remains in Chrome 36 (No Beta), it might help moving the WebSocket communication from the content.js
to the background.js
or popup.js
(as last opportunity) and let the content.js
communicate through a message channel with the background.js
…
I moved the Issue to the Chrome plugin project: https://github.com/Cacodaimon/GhostTextForChrome/issues/1
I tried doing exactly what you did in the video, but when clicking in the textarea nothing happens. This appears Chrome's console: