<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Before you ask&#8230; (No NoScript on Safari)</title>
	<link>http://hackademix.net/2010/06/08/before-you-ask-no-noscript-on-safari/</link>
	<description>Giorgio Maone's answers to the Web, the Universe, and Everything</description>
	<pubDate>Wed, 08 Feb 2012 12:12:55 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.3</generator>

	<item>
		<title>By: Giorgio</title>
		<link>http://hackademix.net/2010/06/08/before-you-ask-no-noscript-on-safari/#comment-23109</link>
		<dc:creator>Giorgio</dc:creator>
		<pubDate>Tue, 15 Jun 2010 16:49:31 +0000</pubDate>
		<guid>http://hackademix.net/2010/06/08/before-you-ask-no-noscript-on-safari/#comment-23109</guid>
		<description>@&lt;a href="http://hackademix.net/2010/06/08/before-you-ask-no-noscript-on-safari/#comment-23101" rel="nofollow"&gt;Mark&lt;/a&gt;:
Unfortunately I don't have the time to go deep in a discussion about it, but let's just say the speed argument is gonna be an arms race for a long time if not forever (for instance, Firefox 4 is gonna have a mixed method/tracing JIT which aims to be at least on par with V8 and Nitro JIT).
On the other hand &lt;a href="http://dafizilla.wordpress.com/2010/06/10/a-survey-on-safari-5-chrome-and-firefox-extensions-api/" rel="nofollow"&gt;Firefox's extensibility will be vastly superior&lt;/a&gt; for the foreseeable future (unless Mozilla decides to kill it outright in favor of Jetpacks) because Firefox exposes almost everything of its internals as a full-fledged cross-platform development framework, while Chrome/Safari extensions offer a very limited and shielded subset to extensions developers.

@&lt;a href="http://hackademix.net/2010/06/08/before-you-ask-no-noscript-on-safari/#comment-23107" rel="nofollow"&gt;Spade&lt;/a&gt;:
I did check the Safari extension documentation: it's not my fault if ad-blocking features were buried deep inside a completely unrelated "Messages and Proxies" chapter!
Nevertheless, a NoScript porting is still impossible because Safari's API can't support it: this is obviously the main message of this post and therefore it doesn't need to be revised. The only thing I'll concede is that effective ad-blocking is actually possible, but NoScript is a completely different beast.</description>
		<content:encoded><![CDATA[<p>@<a href="http://hackademix.net/2010/06/08/before-you-ask-no-noscript-on-safari/#comment-23101" rel="nofollow">Mark</a>:<br />
Unfortunately I don&#8217;t have the time to go deep in a discussion about it, but let&#8217;s just say the speed argument is gonna be an arms race for a long time if not forever (for instance, Firefox 4 is gonna have a mixed method/tracing JIT which aims to be at least on par with V8 and Nitro JIT).<br />
On the other hand <a href="http://dafizilla.wordpress.com/2010/06/10/a-survey-on-safari-5-chrome-and-firefox-extensions-api/" rel="nofollow">Firefox&#8217;s extensibility will be vastly superior</a> for the foreseeable future (unless Mozilla decides to kill it outright in favor of Jetpacks) because Firefox exposes almost everything of its internals as a full-fledged cross-platform development framework, while Chrome/Safari extensions offer a very limited and shielded subset to extensions developers.</p>
<p>@<a href="http://hackademix.net/2010/06/08/before-you-ask-no-noscript-on-safari/#comment-23107" rel="nofollow">Spade</a>:<br />
I did check the Safari extension documentation: it&#8217;s not my fault if ad-blocking features were buried deep inside a completely unrelated &#8220;Messages and Proxies&#8221; chapter!<br />
Nevertheless, a NoScript porting is still impossible because Safari&#8217;s API can&#8217;t support it: this is obviously the main message of this post and therefore it doesn&#8217;t need to be revised. The only thing I&#8217;ll concede is that effective ad-blocking is actually possible, but NoScript is a completely different beast.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Spade</title>
		<link>http://hackademix.net/2010/06/08/before-you-ask-no-noscript-on-safari/#comment-23107</link>
		<dc:creator>Spade</dc:creator>
		<pubDate>Mon, 14 Jun 2010 05:56:08 +0000</pubDate>
		<guid>http://hackademix.net/2010/06/08/before-you-ask-no-noscript-on-safari/#comment-23107</guid>
		<description>Pretty quick &#34;no&#34; answer for someone who didn't even take the time to read the Safari Extension documentation. Care to revise your hasty initial answer?</description>
		<content:encoded><![CDATA[<p>Pretty quick &quot;no&quot; answer for someone who didn&#8217;t even take the time to read the Safari Extension documentation. Care to revise your hasty initial answer?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://hackademix.net/2010/06/08/before-you-ask-no-noscript-on-safari/#comment-23101</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Sat, 12 Jun 2010 00:57:40 +0000</pubDate>
		<guid>http://hackademix.net/2010/06/08/before-you-ask-no-noscript-on-safari/#comment-23101</guid>
		<description>Hello Giorgio,

As a longtime user of both Firefox &#38; NoScript, I am curious as to the current situation of this &#34;browser rivalry,&#34; more specifically, between Google's Chrome and Mozilla's Firefox. Would it be possible to share with us a few reasons as to why users of Firefox should not make &#34;the switch&#34; and not completely abandon it like many others have done?

Chrome, to me, seems very tempting. Its sleek and streamlined UI makes browsing much simpler, not to mention of course the main reason why so many have begun to use it: it's speed. Firefox, even its latest trunk builds, have been lacking in the latest speed tests, including JavaScript and V8. Why should users stick to Firefox, and not use Chrome?

Thank you for your time,
Mark</description>
		<content:encoded><![CDATA[<p>Hello Giorgio,</p>
<p>As a longtime user of both Firefox &amp; NoScript, I am curious as to the current situation of this &quot;browser rivalry,&quot; more specifically, between Google&#8217;s Chrome and Mozilla&#8217;s Firefox. Would it be possible to share with us a few reasons as to why users of Firefox should not make &quot;the switch&quot; and not completely abandon it like many others have done?</p>
<p>Chrome, to me, seems very tempting. Its sleek and streamlined UI makes browsing much simpler, not to mention of course the main reason why so many have begun to use it: it&#8217;s speed. Firefox, even its latest trunk builds, have been lacking in the latest speed tests, including JavaScript and V8. Why should users stick to Firefox, and not use Chrome?</p>
<p>Thank you for your time,<br />
Mark</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Giorgio</title>
		<link>http://hackademix.net/2010/06/08/before-you-ask-no-noscript-on-safari/#comment-23100</link>
		<dc:creator>Giorgio</dc:creator>
		<pubDate>Fri, 11 Jun 2010 22:21:07 +0000</pubDate>
		<guid>http://hackademix.net/2010/06/08/before-you-ask-no-noscript-on-safari/#comment-23100</guid>
		<description>@&lt;a href="http://hackademix.net/2010/06/08/before-you-ask-no-noscript-on-safari/#comment-23099" rel="nofollow"&gt;Dave Hyatt&lt;/a&gt;:
I'm not sure whether "beforeload" is the right mechanism to prevent script execution. Opera has some dedicated events available to privileged scripts, see http://www.opera.com/docs/userjs/specs/#evlistener
At any rate, "inline scripts/css" should include event handlers and style attributes.

&lt;blockquote&gt;
I’m not sure what to suggest to intercept top-level document loads at the outermost level, since there’s no corresponding DOM element to fire the events on. Is this a requirement?
&lt;/blockquote&gt;
What would actually be needed is a general network interception framework, to implement things like &lt;a href="http://noscript.net/abe" rel="nofollow"&gt;ABE&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>@<a href="http://hackademix.net/2010/06/08/before-you-ask-no-noscript-on-safari/#comment-23099" rel="nofollow">Dave Hyatt</a>:<br />
I&#8217;m not sure whether &#8220;beforeload&#8221; is the right mechanism to prevent script execution. Opera has some dedicated events available to privileged scripts, see <a href="http://www.opera.com/docs/userjs/specs/#evlistener" rel="nofollow">http://www.opera.com/docs/userjs/specs/#evlistener</a><br />
At any rate, &#8220;inline scripts/css&#8221; should include event handlers and style attributes.</p>
<blockquote><p>
I’m not sure what to suggest to intercept top-level document loads at the outermost level, since there’s no corresponding DOM element to fire the events on. Is this a requirement?
</p></blockquote>
<p>What would actually be needed is a general network interception framework, to implement things like <a href="http://noscript.net/abe" rel="nofollow">ABE</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Hyatt</title>
		<link>http://hackademix.net/2010/06/08/before-you-ask-no-noscript-on-safari/#comment-23099</link>
		<dc:creator>Dave Hyatt</dc:creator>
		<pubDate>Fri, 11 Jun 2010 18:33:39 +0000</pubDate>
		<guid>http://hackademix.net/2010/06/08/before-you-ask-no-noscript-on-safari/#comment-23099</guid>
		<description>I filed https://bugs.webkit.org/show_bug.cgi?id=40484 to cover beforeload needing to work on inline scripts and stylesheets.  Should be easy to add.

There is no way to intercept top-level document loads, although you can intercept loads in frames/iframes by putting onbeforeload on the frame/iframe itself.  I'm not sure what to suggest to intercept top-level document loads at the outermost level, since there's no corresponding DOM element to fire the events on.  Is this a requirement?

The event target is the DOM element triggering the load to be blocked yes.  The event also has a url field that contains the URL being requested.

At the moment there is no way to make IP-based decisions. It's possible we could add an IP field to the beforeload event, as long as there are no security implications from exposing that information to the Web page.</description>
		<content:encoded><![CDATA[<p>I filed <a href="https://bugs.webkit.org/show_bug.cgi?id=40484" rel="nofollow">https://bugs.webkit.org/show_bug.cgi?id=40484</a> to cover beforeload needing to work on inline scripts and stylesheets.  Should be easy to add.</p>
<p>There is no way to intercept top-level document loads, although you can intercept loads in frames/iframes by putting onbeforeload on the frame/iframe itself.  I&#8217;m not sure what to suggest to intercept top-level document loads at the outermost level, since there&#8217;s no corresponding DOM element to fire the events on.  Is this a requirement?</p>
<p>The event target is the DOM element triggering the load to be blocked yes.  The event also has a url field that contains the URL being requested.</p>
<p>At the moment there is no way to make IP-based decisions. It&#8217;s possible we could add an IP field to the beforeload event, as long as there are no security implications from exposing that information to the Web page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Giorgio</title>
		<link>http://hackademix.net/2010/06/08/before-you-ask-no-noscript-on-safari/#comment-23093</link>
		<dc:creator>Giorgio</dc:creator>
		<pubDate>Fri, 11 Jun 2010 06:54:58 +0000</pubDate>
		<guid>http://hackademix.net/2010/06/08/before-you-ask-no-noscript-on-safari/#comment-23093</guid>
		<description>@&lt;a href="http://hackademix.net/2010/06/08/before-you-ask-no-noscript-on-safari/#comment-23089" rel="nofollow"&gt;Dave Hyatt&lt;/a&gt;:
That's interesting, thanks.
Is there also a way to block inline scripts for a certain window/frame?
And can "beforeload" be used also to intercept top-level document loads?
Is the event target the DOM element triggering (or related to) the load to be blocked?
Is there any way to perform asynchronous DNS resolution (or to get DNS info from the browser's DNS cache) to make IP-based decisions?</description>
		<content:encoded><![CDATA[<p>@<a href="http://hackademix.net/2010/06/08/before-you-ask-no-noscript-on-safari/#comment-23089" rel="nofollow">Dave Hyatt</a>:<br />
That&#8217;s interesting, thanks.<br />
Is there also a way to block inline scripts for a certain window/frame?<br />
And can &#8220;beforeload&#8221; be used also to intercept top-level document loads?<br />
Is the event target the DOM element triggering (or related to) the load to be blocked?<br />
Is there any way to perform asynchronous DNS resolution (or to get DNS info from the browser&#8217;s DNS cache) to make IP-based decisions?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Hyatt</title>
		<link>http://hackademix.net/2010/06/08/before-you-ask-no-noscript-on-safari/#comment-23090</link>
		<dc:creator>Dave Hyatt</dc:creator>
		<pubDate>Fri, 11 Jun 2010 02:32:29 +0000</pubDate>
		<guid>http://hackademix.net/2010/06/08/before-you-ask-no-noscript-on-safari/#comment-23090</guid>
		<description>Specifically see the &#34;Blocking Unwanted Content&#34; section:

http://developer.apple.com/safari/library/documentation/Tools/Conceptual/SafariExtensionGuide/MessagesandProxies/MessagesandProxies.html#//apple_ref/doc/uid/TP40009977-CH14-SW1</description>
		<content:encoded><![CDATA[<p>Specifically see the &quot;Blocking Unwanted Content&quot; section:</p>
<p><a href="http://developer.apple.com/safari/library/documentation/Tools/Conceptual/SafariExtensionGuide/MessagesandProxies/MessagesandProxies.html#//apple_ref/doc/uid/TP40009977-CH14-SW1" rel="nofollow">http://developer.apple.com/safari/library/documentation/Tools/Conceptual/SafariExtensionGuide/MessagesandProxies/MessagesandProxies.html#//apple_ref/doc/uid/TP40009977-CH14-SW1</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Hyatt</title>
		<link>http://hackademix.net/2010/06/08/before-you-ask-no-noscript-on-safari/#comment-23089</link>
		<dc:creator>Dave Hyatt</dc:creator>
		<pubDate>Fri, 11 Jun 2010 02:21:05 +0000</pubDate>
		<guid>http://hackademix.net/2010/06/08/before-you-ask-no-noscript-on-safari/#comment-23089</guid>
		<description>We added the beforeload event specifically to enable selective blocking of resource loading.  If this event is insufficient, let us know what enhancements you would require in order to get the functionality you need.

Thanks.</description>
		<content:encoded><![CDATA[<p>We added the beforeload event specifically to enable selective blocking of resource loading.  If this event is insufficient, let us know what enhancements you would require in order to get the functionality you need.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Giorgio</title>
		<link>http://hackademix.net/2010/06/08/before-you-ask-no-noscript-on-safari/#comment-23079</link>
		<dc:creator>Giorgio</dc:creator>
		<pubDate>Wed, 09 Jun 2010 10:08:22 +0000</pubDate>
		<guid>http://hackademix.net/2010/06/08/before-you-ask-no-noscript-on-safari/#comment-23079</guid>
		<description>@&lt;a href="http://hackademix.net/2010/06/08/before-you-ask-no-noscript-on-safari#comment-23078" rel="nofollow"&gt;Petri Sirkkala&lt;/a&gt;:
I've got no idea whether Saft is compatible with Safari 5 or not (if I understand correctly how it works, I guess an update is very likely to be needed).
What I can tell for sure is that &lt;strong&gt;Saft is not a Safari extension&lt;/strong&gt;, no matter how its developers label it, simply because Safari did not support extensions before this week. 
Saft is implemented as an Input Manager plugin or a launcher wrapping Safari, but it definitely doesn't run &lt;em&gt;inside&lt;/em&gt; Safari nor uses Safari's extensions API.</description>
		<content:encoded><![CDATA[<p>@<a href="http://hackademix.net/2010/06/08/before-you-ask-no-noscript-on-safari#comment-23078" rel="nofollow">Petri Sirkkala</a>:<br />
I&#8217;ve got no idea whether Saft is compatible with Safari 5 or not (if I understand correctly how it works, I guess an update is very likely to be needed).<br />
What I can tell for sure is that <strong>Saft is not a Safari extension</strong>, no matter how its developers label it, simply because Safari did not support extensions before this week.<br />
Saft is implemented as an Input Manager plugin or a launcher wrapping Safari, but it definitely doesn&#8217;t run <em>inside</em> Safari nor uses Safari&#8217;s extensions API.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Petri Sirkkala</title>
		<link>http://hackademix.net/2010/06/08/before-you-ask-no-noscript-on-safari/#comment-23078</link>
		<dc:creator>Petri Sirkkala</dc:creator>
		<pubDate>Wed, 09 Jun 2010 09:18:47 +0000</pubDate>
		<guid>http://hackademix.net/2010/06/08/before-you-ask-no-noscript-on-safari/#comment-23078</guid>
		<description>Do you mean that Saft is no longer available for Safari 5?
- http://haoli.dnsalias.com/Saft/</description>
		<content:encoded><![CDATA[<p>Do you mean that Saft is no longer available for Safari 5?<br />
- <a href="http://haoli.dnsalias.com/Saft/" rel="nofollow">http://haoli.dnsalias.com/Saft/</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

