Hello all,
I am developer of Readability addon. That addon tries to inject scripts to web pages to improve readability. But somehow on some websites NoScript block the extension usage. The addon tries to add chrome:// scripts into the web pages when statusbar icon is clicked. chrome:// scripts are known to be secure. So why that kind of blocking is there for chrome:// scripts? And how can we fix the problem, if possible?
Thanks.
Why NoScript blocks Chrome Scripts
Why NoScript blocks Chrome Scripts
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729)
Re: Why NoScript blocks Chrome Scripts
Hello,
Any idea about this problem? It really annoys the users.
Any idea about this problem? It really annoys the users.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 (.NET CLR 3.5.30729)
Re: Why NoScript blocks Chrome Scripts
(One) earlier thread on Readability and Readable bookmarklets.
You'll have to wait on Giorgio to comment further.
You'll have to wait on Giorgio to comment further.
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; U; Windows NT 5.1; en-US; rv:1.9.1.7pre) Gecko/20091211 SeaMonkey/2.0.2pre
Re: Why NoScript blocks Chrome Scripts
Thanks for the reply. How frequently does Giorgio check the topics? It is an urgent thing for me to solve.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 (.NET CLR 3.5.30729)
-
- Ambassador
- Posts: 1586
- Joined: Fri Mar 20, 2009 4:47 am
- Location: Colorado, USA
Re: Why NoScript blocks Chrome Scripts
Usually daily. Since you're the developer of Readability, it would be appropriate for you to email him.
http://maone.net/
http://maone.net/
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6
- Giorgio Maone
- Site Admin
- Posts: 9526
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: Why NoScript blocks Chrome Scripts
Baris Derin wrote:Hello all,
I am developer of Readability addon. That addon tries to inject scripts to web pages to improve readability. But somehow on some websites NoScript block the extension usage. The addon tries to add chrome:// scripts into the web pages when statusbar icon is clicked. chrome:// scripts are known to be secure. So why that kind of blocking is there for chrome:// scripts? And how can we fix the problem, if possible?
Thanks.
- You cannot inject chrome:// scripts in Firefox. This is a browser built-in security feature (originally provided by NoScript, but available as a built-in for a long time now): see https://bugzilla.mozilla.org/show_bug.cgi?id=292789
- If you mean that you insert your own SCRIPT elements in the page content, then there's absolutely no way for the browser (neither for NoScript) to tell they're more trusted than the page itself: if the page is considered untrusted, they won't run, period.
- Most important, you don't need to insert any script into the web page content in order for an extension to work: for instance, you can wire your chrome event handlers into the content by calling addEventListener() on the proper DOM element or window. That's what NoScript does for its placeholders, and they do work properly no matter what the page's permissions are.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 (.NET CLR 3.5.30729)
Re: Why NoScript blocks Chrome Scripts
Hi Giorgio,
Thanks for clarification. The add-on insert SCRIPT tags into the web page. I know adding event listeners to the page is a solution but this time you need to port an already written javascript library to Firefox Chrome. But adding the library to the page as chrome SCRIPT tags makes add-on creation lightning fast.
Is not there any possibility for NoScript to allow chrome URIs? Say my addon adds chrome://readability/content/scripts/readability.js to the page. I tried to add an exception via NoScript Options but it does not allow to pass Chrome URIs. Is there any likelihood you can allow Chrome URIs as exception in future releases of NoScript?
Thanks for clarification. The add-on insert SCRIPT tags into the web page. I know adding event listeners to the page is a solution but this time you need to port an already written javascript library to Firefox Chrome. But adding the library to the page as chrome SCRIPT tags makes add-on creation lightning fast.
Is not there any possibility for NoScript to allow chrome URIs? Say my addon adds chrome://readability/content/scripts/readability.js to the page. I tried to add an exception via NoScript Options but it does not allow to pass Chrome URIs. Is there any likelihood you can allow Chrome URIs as exception in future releases of NoScript?
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 (.NET CLR 3.5.30729)
- Giorgio Maone
- Site Admin
- Posts: 9526
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: Why NoScript blocks Chrome Scripts
No, they're blocked by Firefox, before than by NoScript.Baris Derin wrote:Is not there any possibility for NoScript to allow chrome URIs?
And even if they were allowed, if the hosting page is not allowed to run scripts they won't work anyway.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 (.NET CLR 3.5.30729)