Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>It seems using <code>javascript:</code> and <code>data:</code> URLs (directly in the address bar) are currently not allowed <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=527530#c6">as per this comment</a>:</p> <blockquote> <p>FYI, I'm probably going to split this bug into multiple, short and longer term fixes. </p> <p>Short term: disallow pasting of javascript: URLs into the URL bar<br> Longer term: additionally require that bookmarklets be "whitelisted" in the Bookmark Manager before it can run JavaScript</p> </blockquote> <p>And <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=656433">this is the "bug"</a> that was resolved in the <a href="http://www.mozilla.com/en-US/firefox/6.0beta/releasenotes/buglist.html">latest version</a>. The <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=656433#c42">last comment</a> also states:</p> <blockquote> <p>javascript: is not actually ignored - they're run, but in an "empty" context that doesn't have any of the usual DOM methods you would expect, so most common uses (e.g. javascript:alert(1)) just throw (and thus are effectively ignored). javascript:1+1 works fine, though.</p> </blockquote> <p>Now:</p> <blockquote> <p>How do I fix this?</p> </blockquote> <p>You can't, you have to wait until they decided for a proper solution. As the comment said, bookmarklets will work, but must be explicitly allowed. If you just want to test code, use either <a href="http://getfirebug.com/">Firebug</a> or the new <a href="http://antennasoft.net/robcee/2011/06/08/scratchpad-canvas-demo/">Scratchpad</a> feature.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload