<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-14949</id>
	<title>Nabble - Webkit</title>
	<updated>2009-11-30T07:20:27Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/Webkit-f14949.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Webkit-f14949.html" />
	<subtitle type="html">&lt;a href=&quot;http://webkit.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;WebKit&lt;/a&gt;&amp;nbsp;is an open source web browser engine. 
&lt;br&gt;&lt;b&gt;WebKit&lt;/b&gt;&amp;nbsp;is also the name of the Mac OS X system framework version of the engine that's used by &lt;a href=&quot;http://www.apple.com/safari/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Safari&lt;/a&gt;, Dashboard, Mail, and many other OS X applications. 
&lt;br&gt;WebKit's HTML and JavaScript code began as a branch of the &lt;a href=&quot;http://khtml.info/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;KHTML&lt;/a&gt;&amp;nbsp;and KJS libraries from &lt;a href=&quot;http://kde.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;KDE&lt;/a&gt;.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26576367</id>
	<title>Re: appendChild does not work for elements produced by DOMParser</title>
	<published>2009-11-30T07:20:27Z</published>
	<updated>2009-11-30T07:20:27Z</updated>
	<author>
		<name>Alexander Shabanov</name>
	</author>
	<content type="html">2009/11/30 Maciej Stachowiak &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26576367&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mjs@...&lt;/a&gt;&amp;gt;:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;...
&lt;br&gt;&amp;gt; Probably because parsing with DOMParser parses as XML, thus you get a &amp;lt;p&amp;gt;
&lt;br&gt;&amp;gt; element that's not an HTML element (it is in the null namespace instead of
&lt;br&gt;&amp;gt; the HTML namespace). To get an HTML p element you need to either do this:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;      var str = &amp;quot;&amp;lt;p xmlns='&lt;a href=&quot;http://www.w3.org/1999/xhtml/'&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/1999/xhtml/'&lt;/a&gt;&amp;nbsp;style='color:
&lt;br&gt;&amp;gt; red;'&amp;gt;This is a test&amp;lt;/p&amp;gt;&amp;quot;;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; or just use innerHTML or createContextualFragment to directly insert HTML
&lt;br&gt;&amp;gt; text into a document.
&lt;/div&gt;&lt;br&gt;Thank you, importNode works fine for my snippet given above.
&lt;br&gt;&lt;br&gt;But style information is omitted no matter whether xmlns attribute
&lt;br&gt;specified or not.
&lt;br&gt;This is because I was wrong about using
&lt;br&gt;doc.documentElement.firstChild, I suppose doc.documentElement shall be
&lt;br&gt;used instead:
&lt;br&gt;&amp;nbsp;var str = &amp;quot;&amp;lt;p xmlns='&lt;a href=&quot;http://www.w3.org/1999/xhtml/'&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/1999/xhtml/'&lt;/a&gt;&amp;nbsp;style='color:
&lt;br&gt;red;'&amp;gt;This is a test&amp;lt;/p&amp;gt;&amp;quot;;
&lt;br&gt;&amp;nbsp;var parser = new DOMParser();
&lt;br&gt;&amp;nbsp;var doc = parser.parseFromString(str, &amp;quot;text/xml&amp;quot;);
&lt;br&gt;&amp;nbsp;document.body.appendChild(doc.documentElement);
&lt;br&gt;&lt;br&gt;And the fun thing is how different Gecko and WebKit(with the only
&lt;br&gt;difference in added call to document.importNode) handle the code given
&lt;br&gt;above.
&lt;br&gt;&lt;br&gt;Gecko:
&lt;br&gt;Node inserted, text is visible but in black, e.g. style is still
&lt;br&gt;omitted and Firebug indicates, that inserted element has no style
&lt;br&gt;information, at the same time it indicates that style attribute exists
&lt;br&gt;in the DOM tree.
&lt;br&gt;&lt;br&gt;WebKit:
&lt;br&gt;Node inserted but in the strange way. Text content is not visible on
&lt;br&gt;the screen. WebInspector indicates that new &amp;lt;p&amp;gt; node exists in the DOM
&lt;br&gt;tree but without it's content and closing tag and with xmlns and style
&lt;br&gt;attributes.
&lt;br&gt;&lt;br&gt;I believe that this is because I'm playing with DOMParser in the wrong way.
&lt;br&gt;Could you please clarify what is the error here?
&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; Maciej
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Best regards,
&lt;br&gt;&amp;nbsp; &amp;nbsp; Alexander Shabanov
&lt;br&gt;_______________________________________________
&lt;br&gt;webkit-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26576367&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;webkit-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/appendChild-does-not-work-for-elements-produced-by-DOMParser-tp26573055p26576367.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26574334</id>
	<title>Re: appendChild does not work for elements produced by DOMParser</title>
	<published>2009-11-30T04:58:50Z</published>
	<updated>2009-11-30T04:58:50Z</updated>
	<author>
		<name>Maciej Stachowiak</name>
	</author>
	<content type="html">&lt;br&gt;On Nov 30, 2009, at 3:17 AM, Alexander Shabanov wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi all,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Sorry for silly question but I think that it might be a nice feature &amp;nbsp;
&lt;br&gt;&amp;gt; to webkit.
&lt;br&gt;&amp;gt; The following code works in Mozilla Firefox 3.5, but it does not work
&lt;br&gt;&amp;gt; in webkit-based browsers:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; var parser = new DOMParser();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; var str = &amp;quot;&amp;lt;p&amp;gt;This is a test&amp;lt;/p&amp;gt;&amp;quot;;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; var doc = parser.parseFromString(str, &amp;quot;text/xml&amp;quot;);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; document.body.appendChild(doc.documentElement.firstChild);
&lt;/div&gt;&lt;br&gt;If you change the last step to this, it will work in WebKit-based &amp;nbsp;
&lt;br&gt;browsers:
&lt;br&gt;&lt;br&gt;document 
&lt;br&gt;.body.appendChild(document.importNode(doc.documentElement.firstChild));
&lt;br&gt;&lt;br&gt;The Gecko engine is more generous about allowing implicit cross- 
&lt;br&gt;document adoption. We allow it in only a few cases, and in theory it &amp;nbsp;
&lt;br&gt;is not supposed to be allowed at all (without the importNode call) &amp;nbsp;
&lt;br&gt;according to the DOM Core spec. That being said, if this is a compat &amp;nbsp;
&lt;br&gt;issue on real sites we can change to be more Gecko-like.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I found that specification to DOMParser does not guarantee that the
&lt;br&gt;&amp;gt; result of DOMParser's parseFromX methods can
&lt;br&gt;&amp;gt; be directly used in the original document.
&lt;br&gt;&amp;gt; Nevertheless I believe that it would be quite a useful feature, at
&lt;br&gt;&amp;gt; least it won't require JS code to create DOM-compliant content from
&lt;br&gt;&amp;gt; the parsed one.
&lt;br&gt;&amp;gt; May be I missed something and webkit offers a way of quick adaptation
&lt;br&gt;&amp;gt; of the parsed content to the original DOM tree?
&lt;br&gt;&amp;gt; Thanks in advance.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; P.S.: even though Firefox provides such a feature, a style
&lt;br&gt;&amp;gt; specification in the following code will take no effect:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; var parser = new DOMParser();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; var str = &amp;quot;&amp;lt;p style='color: red;'&amp;gt;This is a test&amp;lt;/p&amp;gt;&amp;quot;;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; var doc = parser.parseFromString(str, &amp;quot;text/xml&amp;quot;);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; document.body.appendChild(doc.documentElement.firstChild);
&lt;/div&gt;&lt;br&gt;Probably because parsing with DOMParser parses as XML, thus you get a &amp;nbsp;
&lt;br&gt;&amp;lt;p&amp;gt; element that's not an HTML element (it is in the null namespace &amp;nbsp;
&lt;br&gt;instead of the HTML namespace). To get an HTML p element you need to &amp;nbsp;
&lt;br&gt;either do this:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var str = &amp;quot;&amp;lt;p xmlns='&lt;a href=&quot;http://www.w3.org/1999/xhtml/'&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/1999/xhtml/'&lt;/a&gt;&amp;nbsp; 
&lt;br&gt;style='color: red;'&amp;gt;This is a test&amp;lt;/p&amp;gt;&amp;quot;;
&lt;br&gt;&lt;br&gt;or just use innerHTML or createContextualFragment to directly insert &amp;nbsp;
&lt;br&gt;HTML text into a document.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Maciej
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;webkit-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26574334&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;webkit-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/appendChild-does-not-work-for-elements-produced-by-DOMParser-tp26573055p26574334.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26573055</id>
	<title>appendChild does not work for elements produced by DOMParser</title>
	<published>2009-11-30T03:17:26Z</published>
	<updated>2009-11-30T03:17:26Z</updated>
	<author>
		<name>Alexander Shabanov</name>
	</author>
	<content type="html">Hi all,
&lt;br&gt;&lt;br&gt;Sorry for silly question but I think that it might be a nice feature to webkit.
&lt;br&gt;The following code works in Mozilla Firefox 3.5, but it does not work
&lt;br&gt;in webkit-based browsers:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var parser = new DOMParser();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var str = &amp;quot;&amp;lt;p&amp;gt;This is a test&amp;lt;/p&amp;gt;&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var doc = parser.parseFromString(str, &amp;quot;text/xml&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;document.body.appendChild(doc.documentElement.firstChild);
&lt;br&gt;&lt;br&gt;I found that specification to DOMParser does not guarantee that the
&lt;br&gt;result of DOMParser's parseFromX methods can
&lt;br&gt;be directly used in the original document.
&lt;br&gt;Nevertheless I believe that it would be quite a useful feature, at
&lt;br&gt;least it won't require JS code to create DOM-compliant content from
&lt;br&gt;the parsed one.
&lt;br&gt;May be I missed something and webkit offers a way of quick adaptation
&lt;br&gt;of the parsed content to the original DOM tree?
&lt;br&gt;Thanks in advance.
&lt;br&gt;&lt;br&gt;P.S.: even though Firefox provides such a feature, a style
&lt;br&gt;specification in the following code will take no effect:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var parser = new DOMParser();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var str = &amp;quot;&amp;lt;p style='color: red;'&amp;gt;This is a test&amp;lt;/p&amp;gt;&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var doc = parser.parseFromString(str, &amp;quot;text/xml&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;document.body.appendChild(doc.documentElement.firstChild);
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;Best regards,
&lt;br&gt;&amp;nbsp; &amp;nbsp;Alexander Shabanov
&lt;br&gt;_______________________________________________
&lt;br&gt;webkit-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26573055&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;webkit-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/appendChild-does-not-work-for-elements-produced-by-DOMParser-tp26573055p26573055.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26570376</id>
	<title>Re: style-queue entering beta</title>
	<published>2009-11-29T23:11:52Z</published>
	<updated>2009-11-29T23:11:52Z</updated>
	<author>
		<name>David Levin-2</name>
	</author>
	<content type="html">fwiw, I&amp;#39;m not aware of any bad error reports that people are hitting in practice although as Adam mentioned it is possible for various reasons. If we hit any incorrect warnings with any frequency, we should disable them or fix them.&lt;div&gt;
&lt;div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Of course, there are a lots of WebKit style guidelines that it doesn&amp;#39;t catch.&lt;br&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; &quot;&gt;&lt;div class=&quot;im&quot; style=&quot;color: rgb(80, 0, 80); &quot;&gt;
&lt;br&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;blockquote class=&quot;webkit-indent-blockquote&quot; style=&quot;margin: 0 0 0 40px; border: none; padding: 0px;&quot;&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; &quot;&gt;&lt;div class=&quot;im&quot; style=&quot;color: rgb(80, 0, 80); &quot;&gt;
&amp;gt; One basic reason the script isn&amp;#39;t perfect is that it&amp;#39;s doesn&amp;#39;t have a&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; &quot;&gt;&lt;div class=&quot;im&quot; style=&quot;color: rgb(80, 0, 80); &quot;&gt;
&amp;gt; full C++ / Objective-C++ parser.&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; &quot;&gt;&lt;div class=&quot;im&quot; style=&quot;color: rgb(80, 0, 80); &quot;&gt;
&lt;br&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; &quot;&gt;If we could go this route, would we prefer it?&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; &quot;&gt;It may be a really good thing. It would depend on how complicated the tool/code got. As far as this tool goes, it is derived from an open source version of what Google uses in house and then originally adapted for WebKit by Shinichiro Hamaji. It primarily relies on regex. In the past I wrote a closed source tool that used a parser to do style fixes in lots of ways, and I appreciated the exactness of the results.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; &quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; &quot;&gt;One nice thing about the current code is that it is pretty accessible to new folks. I don&amp;#39;t think that was as true of the tool I wrote on top of the parser which examined and manipulated syntax trees.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;arial, sans-serif&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse;&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;Dave&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;PS In fact, some checks by various folks in WebKit were made to catch less things in order to avoid false negatives because noisy incorrect tools are just annoying (and imo frequently are justifiably ignored).&lt;/div&gt;
&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Sun, Nov 29, 2009 at 5:55 PM, Adam Barth &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26570376&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;abarth@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;
Yeah, I think improving the script would be great.  I&amp;#39;m not actually&lt;br&gt;
an expert on how it works internally, but I think David Levin is.&lt;br&gt;
It&amp;#39;s easy for the bot to pass a flag to the script if that would be&lt;br&gt;
helpful.  In general, I think we should give it a try and iterate to&lt;br&gt;
remove the biggest pain points.&lt;br&gt;
&lt;br&gt;
Thanks!&lt;br&gt;
Adam&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
On Sun, Nov 29, 2009 at 5:00 PM, Chris Jerdonek&lt;br&gt;
&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26570376&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;chris.jerdonek@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&amp;gt; On Sun, Nov 29, 2009 at 9:35 AM, Adam Barth &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26570376&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;abarth@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; On Sun, Nov 29, 2009 at 9:26 AM, Chris Jerdonek&lt;br&gt;
&amp;gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26570376&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;chris.jerdonek@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; On Sat, Nov 28, 2009,  Adam Barth wrote:&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hopefully, the script will improve over time, but it will&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt; never be perfect.&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; Can you elaborate on this?  For example, are you saying there is a&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; basic reason that the script will always have bugs?  Without knowing&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; too much about the script, it seems like it wouldn&amp;#39;t be too hard to at&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; least make the false negatives go away.  Or are you simply saying that&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; the guidelines and script will never fully capture what we mean by&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; &amp;quot;correct style&amp;quot;?&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Does this mean you&amp;#39;re volunteering to remove all the false positives&lt;br&gt;
&amp;gt;&amp;gt; and false negatives?  :)&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I was hoping to work on the script eventually, which is partly why I&lt;br&gt;
&amp;gt; asked for elaboration.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; All that I meant above is that one could potentially disable (for the&lt;br&gt;
&amp;gt; bot) the style tests that report false violations, or else reduce&lt;br&gt;
&amp;gt; their confidence score.  That way, if the style bot flags a patch, it&lt;br&gt;
&amp;gt; is guaranteed to be meaningful without looking at the details of the&lt;br&gt;
&amp;gt; report.  This can only be done, though, if the problems with the&lt;br&gt;
&amp;gt; script are not so basic that they affect most or many of the tests.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; (The reverse is not as straightforward, though.  It does not seem as&lt;br&gt;
&amp;gt; easy to change the script -- in a useful way -- so that if it reports&lt;br&gt;
&amp;gt; that a patch has met the guidelines, then the patch really meets the&lt;br&gt;
&amp;gt; guidelines.)&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; One basic reason the script isn&amp;#39;t perfect is that it&amp;#39;s doesn&amp;#39;t have a&lt;br&gt;
&amp;gt;&amp;gt; full C++ / Objective-C++ parser.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; If we could go this route, would we prefer it?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; --Chris&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;webkit-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26570376&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;webkit-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/style-queue-entering-beta-tp26551827p26570376.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26568566</id>
	<title>Re: style-queue entering beta</title>
	<published>2009-11-29T17:55:32Z</published>
	<updated>2009-11-29T17:55:32Z</updated>
	<author>
		<name>Adam Barth-3</name>
	</author>
	<content type="html">Yeah, I think improving the script would be great. &amp;nbsp;I'm not actually
&lt;br&gt;an expert on how it works internally, but I think David Levin is.
&lt;br&gt;It's easy for the bot to pass a flag to the script if that would be
&lt;br&gt;helpful. &amp;nbsp;In general, I think we should give it a try and iterate to
&lt;br&gt;remove the biggest pain points.
&lt;br&gt;&lt;br&gt;Thanks!
&lt;br&gt;Adam
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Sun, Nov 29, 2009 at 5:00 PM, Chris Jerdonek
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26568566&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;chris.jerdonek@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Sun, Nov 29, 2009 at 9:35 AM, Adam Barth &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26568566&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;abarth@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On Sun, Nov 29, 2009 at 9:26 AM, Chris Jerdonek
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26568566&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;chris.jerdonek@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; On Sat, Nov 28, 2009,  Adam Barth wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hopefully, the script will improve over time, but it will
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; never be perfect.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Can you elaborate on this?  For example, are you saying there is a
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; basic reason that the script will always have bugs?  Without knowing
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; too much about the script, it seems like it wouldn't be too hard to at
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; least make the false negatives go away.  Or are you simply saying that
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; the guidelines and script will never fully capture what we mean by
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;quot;correct style&amp;quot;?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Does this mean you're volunteering to remove all the false positives
&lt;br&gt;&amp;gt;&amp;gt; and false negatives?  :)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I was hoping to work on the script eventually, which is partly why I
&lt;br&gt;&amp;gt; asked for elaboration.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; All that I meant above is that one could potentially disable (for the
&lt;br&gt;&amp;gt; bot) the style tests that report false violations, or else reduce
&lt;br&gt;&amp;gt; their confidence score.  That way, if the style bot flags a patch, it
&lt;br&gt;&amp;gt; is guaranteed to be meaningful without looking at the details of the
&lt;br&gt;&amp;gt; report.  This can only be done, though, if the problems with the
&lt;br&gt;&amp;gt; script are not so basic that they affect most or many of the tests.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; (The reverse is not as straightforward, though.  It does not seem as
&lt;br&gt;&amp;gt; easy to change the script -- in a useful way -- so that if it reports
&lt;br&gt;&amp;gt; that a patch has met the guidelines, then the patch really meets the
&lt;br&gt;&amp;gt; guidelines.)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; One basic reason the script isn't perfect is that it's doesn't have a
&lt;br&gt;&amp;gt;&amp;gt; full C++ / Objective-C++ parser.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If we could go this route, would we prefer it?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --Chris
&lt;br&gt;&amp;gt;
&lt;/div&gt;_______________________________________________
&lt;br&gt;webkit-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26568566&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;webkit-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/style-queue-entering-beta-tp26551827p26568566.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26568213</id>
	<title>Re: style-queue entering beta</title>
	<published>2009-11-29T17:00:59Z</published>
	<updated>2009-11-29T17:00:59Z</updated>
	<author>
		<name>Chris Jerdonek-3</name>
	</author>
	<content type="html">On Sun, Nov 29, 2009 at 9:35 AM, Adam Barth &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26568213&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;abarth@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Sun, Nov 29, 2009 at 9:26 AM, Chris Jerdonek
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26568213&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;chris.jerdonek@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; On Sat, Nov 28, 2009,  Adam Barth wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hopefully, the script will improve over time, but it will
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; never be perfect.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Can you elaborate on this?  For example, are you saying there is a
&lt;br&gt;&amp;gt;&amp;gt; basic reason that the script will always have bugs?  Without knowing
&lt;br&gt;&amp;gt;&amp;gt; too much about the script, it seems like it wouldn't be too hard to at
&lt;br&gt;&amp;gt;&amp;gt; least make the false negatives go away.  Or are you simply saying that
&lt;br&gt;&amp;gt;&amp;gt; the guidelines and script will never fully capture what we mean by
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;correct style&amp;quot;?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Does this mean you're volunteering to remove all the false positives
&lt;br&gt;&amp;gt; and false negatives?  :)
&lt;/div&gt;&lt;br&gt;I was hoping to work on the script eventually, which is partly why I
&lt;br&gt;asked for elaboration.
&lt;br&gt;&lt;br&gt;All that I meant above is that one could potentially disable (for the
&lt;br&gt;bot) the style tests that report false violations, or else reduce
&lt;br&gt;their confidence score. &amp;nbsp;That way, if the style bot flags a patch, it
&lt;br&gt;is guaranteed to be meaningful without looking at the details of the
&lt;br&gt;report. &amp;nbsp;This can only be done, though, if the problems with the
&lt;br&gt;script are not so basic that they affect most or many of the tests.
&lt;br&gt;&lt;br&gt;(The reverse is not as straightforward, though. &amp;nbsp;It does not seem as
&lt;br&gt;easy to change the script -- in a useful way -- so that if it reports
&lt;br&gt;that a patch has met the guidelines, then the patch really meets the
&lt;br&gt;guidelines.)
&lt;br&gt;&lt;br&gt;&amp;gt; One basic reason the script isn't perfect is that it's doesn't have a
&lt;br&gt;&amp;gt; full C++ / Objective-C++ parser.
&lt;br&gt;&lt;br&gt;If we could go this route, would we prefer it?
&lt;br&gt;&lt;br&gt;--Chris
&lt;br&gt;_______________________________________________
&lt;br&gt;webkit-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26568213&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;webkit-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/style-queue-entering-beta-tp26551827p26568213.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26564579</id>
	<title>Platform API for Uniscribe/ComplexTextController?</title>
	<published>2009-11-29T10:27:07Z</published>
	<updated>2009-11-29T10:27:07Z</updated>
	<author>
		<name>Kevin Ollivier</name>
	</author>
	<content type="html">Hi all,
&lt;br&gt;&lt;br&gt;The wx port is starting to look at getting proper support for complex text, and one of the first places I started looking at was the Win and Mac port implementations. I noticed that the complex text code in FontWin.cpp and FontComplexTextMac.cpp is largely the same, passing the heavy lifting down to their respective complex text controllers, and I actually wondered if they could be merged if there were some tweaks to the APIs to make them compatible.
&lt;br&gt;&lt;br&gt;That led me to wonder if we couldn't make ComplexTextController one of our platform classes and have USE() defines to determine the implementation. Then we could move the drawComplexText, floatWidthForComplexText, and offsetForPositionForComplexText into Font.cpp guarded by that USE() define. The wx port can provide the native font handles the Win/Mac controllers need, so it'd really be great if we could just add these into our build to get complex text support working without having to implement the complex text methods differently for each platform. 
&lt;br&gt;&lt;br&gt;BTW, I actually already did get UniscribeController compiling, actually, but on Windows I had to have the build script copy it to platform/graphics/wx because MSVC implicitly puts the current directory first on the path, which was causing it to pick up platform/graphics/win/FontPlatformData.h instead of the wx one when compiling that file. :( So that's something else that would need to be addressed if ports can start sharing these files.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;Kevin
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;webkit-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26564579&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;webkit-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Platform-API-for-Uniscribe-ComplexTextController--tp26564579p26564579.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26564373</id>
	<title>Re: HTML Layers above plugin</title>
	<published>2009-11-29T10:07:22Z</published>
	<updated>2009-11-29T10:07:22Z</updated>
	<author>
		<name>Evan Martin-4</name>
	</author>
	<content type="html">On Sun, Nov 29, 2009 at 7:11 AM, Andre-John Mas &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26564373&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ajmas@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; I am currently investigating the possibility of using a web container for an HTPC system. As part of the design I am looking at is to use the multiple tab views to embed the necessary elements. One would concentrate on the menu and another on the embedded player (via plugin). For the view showing the plug-in I have two approaches that I am looking at, where is either work with with plug-in developers to add the necessary chrome needed to display the play various information or to somehow overlay 'controls' in HTML.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If I do create a layer with a z-index above the video plugin it will get obstructed by the plugin. On the other hand I am able to hide the layer with the plug-in without any issue. Is there are a way to draw HTML above the plugin? If not is there any technical reason why something like this could not be implemented?
&lt;br&gt;&lt;br&gt;This is a web development question and probably not appropriate for
&lt;br&gt;this list, but:
&lt;br&gt;- If the plugin is windowed, consulting your favorite search engine
&lt;br&gt;for [iframe shim] will put you on the right track.
&lt;br&gt;- If the plugin supports windowless mode, it layers like a normal HTML
&lt;br&gt;element. &amp;nbsp;E.g. see [flash wmode] for discussion of this for Flash.
&lt;br&gt;_______________________________________________
&lt;br&gt;webkit-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26564373&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;webkit-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/HTML-Layers-above-plugin-tp26563671p26564373.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26564056</id>
	<title>Re: style-queue entering beta</title>
	<published>2009-11-29T09:35:05Z</published>
	<updated>2009-11-29T09:35:05Z</updated>
	<author>
		<name>Adam Barth-3</name>
	</author>
	<content type="html">On Sun, Nov 29, 2009 at 9:26 AM, Chris Jerdonek
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26564056&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;chris.jerdonek@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; On Sat, Nov 28, 2009,  Adam Barth wrote:
&lt;br&gt;&amp;gt;&amp;gt; A1: Unfortunately, no.  First of all, check-webkit-style has false
&lt;br&gt;&amp;gt;&amp;gt; negatives.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; It seems like this answers the different question, &amp;quot;If the style-queue
&lt;br&gt;&amp;gt; complains, does that mean my patch has incorrect style?&amp;quot;
&lt;br&gt;&lt;br&gt;Yes, that too. &amp;nbsp;I would call that a false positive, but you're right
&lt;br&gt;that check-webkit-style probably has both kinds of bugs.
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt; Hopefully, the script will improve over time, but it will
&lt;br&gt;&amp;gt;&amp;gt; never be perfect.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Can you elaborate on this?  For example, are you saying there is a
&lt;br&gt;&amp;gt; basic reason that the script will always have bugs?  Without knowing
&lt;br&gt;&amp;gt; too much about the script, it seems like it wouldn't be too hard to at
&lt;br&gt;&amp;gt; least make the false negatives go away.  Or are you simply saying that
&lt;br&gt;&amp;gt; the guidelines and script will never fully capture what we mean by
&lt;br&gt;&amp;gt; &amp;quot;correct style&amp;quot;?
&lt;br&gt;&lt;br&gt;Does this mean you're volunteering to remove all the false positives
&lt;br&gt;and false negatives? &amp;nbsp;:)
&lt;br&gt;&lt;br&gt;One basic reason the script isn't perfect is that it's doesn't have a
&lt;br&gt;full C++ / Objective-C++ parser. &amp;nbsp;I think it uses regular expressions.
&lt;br&gt;&amp;nbsp;Anyway, I just wanted to set expectations that the tool might not be
&lt;br&gt;perfect.
&lt;br&gt;&lt;br&gt;Adam
&lt;br&gt;_______________________________________________
&lt;br&gt;webkit-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26564056&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;webkit-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/style-queue-entering-beta-tp26551827p26564056.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26563986</id>
	<title>Re: style-queue entering beta</title>
	<published>2009-11-29T09:26:49Z</published>
	<updated>2009-11-29T09:26:49Z</updated>
	<author>
		<name>Chris Jerdonek-3</name>
	</author>
	<content type="html">On Sat, Nov 28, 2009, &amp;nbsp;Adam Barth wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; One of the bots that Eric and I have been working on is about to come
&lt;br&gt;&amp;gt; online. &amp;nbsp;This bot is a &amp;quot;style bot&amp;quot; that runs check-webkit-style on
&lt;br&gt;&amp;gt; patches that have been nominated for review.
&lt;br&gt;&lt;br&gt;This seems like a good effort, thanks. &amp;nbsp;A couple minor comments below
&lt;br&gt;on the first question in your FAQ:
&lt;br&gt;&lt;br&gt;&amp;gt; == Frequently Asked Questions ==
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Q1: If the style-queue doesn't complain, does that mean my patch has
&lt;br&gt;&amp;gt; correct style?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; A1: Unfortunately, no.  First of all, check-webkit-style has false
&lt;br&gt;&amp;gt; negatives.
&lt;br&gt;&lt;br&gt;It seems like this answers the different question, &amp;quot;If the style-queue
&lt;br&gt;complains, does that mean my patch has incorrect style?&amp;quot;
&lt;br&gt;&lt;br&gt;&amp;gt; Hopefully, the script will improve over time, but it will
&lt;br&gt;&amp;gt; never be perfect.
&lt;br&gt;&lt;br&gt;Can you elaborate on this? &amp;nbsp;For example, are you saying there is a
&lt;br&gt;basic reason that the script will always have bugs? &amp;nbsp;Without knowing
&lt;br&gt;too much about the script, it seems like it wouldn't be too hard to at
&lt;br&gt;least make the false negatives go away. &amp;nbsp;Or are you simply saying that
&lt;br&gt;the guidelines and script will never fully capture what we mean by
&lt;br&gt;&amp;quot;correct style&amp;quot;?
&lt;br&gt;&lt;br&gt;&amp;gt; Second, the style-queue is only able to check
&lt;br&gt;&amp;gt; patches that successfully download and apply to top-of-tree. &amp;nbsp;If your
&lt;br&gt;&amp;gt; patch does not apply to top-of-tree (e.g., because it depends on
&lt;br&gt;&amp;gt; another patch), then style-queue won't say anything.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;--Chris
&lt;br&gt;_______________________________________________
&lt;br&gt;webkit-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26563986&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;webkit-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/style-queue-entering-beta-tp26551827p26563986.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26563669</id>
	<title>localStorage quota limit</title>
	<published>2009-11-29T08:38:21Z</published>
	<updated>2009-11-29T08:38:21Z</updated>
	<author>
		<name>William Edney</name>
	</author>
	<content type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body style=&quot;word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; &quot;&gt;All -&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I've been discussing the localStorage quota limit over on this bug with Jeremy Orlow:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;https://bugs.webkit.org/show_bug.cgi?id=31791&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://bugs.webkit.org/show_bug.cgi?id=31791&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;To recap from the discussions on that bug:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Jeremy has implemented the localStorage quota on the latest Webkit builds. This caused my usage of localStorage to fail, because as a JS programmer, I assumed that 5MB meant '5 million characters' of storage. This assumption holds true on Firefox 3.5.X+ and IE8, but fails on Webkit since it stores things into localStorage as UTF-16.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;One option we discussed on that bug was getting the spec folks to alter the spec in one of three ways:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;- specify the quota in terms of 'characters' (or Strings, or whatever) thereby abstracting away the encoding problem entirely.&lt;/div&gt;&lt;div&gt;- specify UTF-8 so that 'MB = characters'&lt;/div&gt;&lt;div&gt;- specify a JS API such that the encoding could be specified.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Jeremy wasn't too taken with any of these proposals, and in any case, they probably need to be taken up on the W3 group defining this stuff, not here.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;In any case, as&amp;nbsp;Jeremy states in Comment #5 of the bug report, &quot;the spec's mentioning of 5mb is really just an example&quot;. And when I filed this bug on Mozilla's Bugzilla tracker:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=461684&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://bugzilla.mozilla.org/show_bug.cgi?id=461684&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;another comment there points out the same thing. (Note that this bug was originally filed to see if the Mozilla guys would raise their quota to 10MB to match IE8 and, since they don't use double-byte encoding, I was really asking for '10 million characters' there :-)).&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Given that, an increase from 5MB to 10MB would 'solve my immediate problem'. And, without going back to the spec folks, I'm not sure that much more can be done here.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Jeremy wanted me to post to get the discussion started (and hopefully attain some consensus :-) ), so let's discuss :-).&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Thanks in advance!&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Cheers,&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;- Bill&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;webkit-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26563669&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;webkit-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/localStorage-quota-limit-tp26563669p26563669.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26563470</id>
	<title>Re: style-queue entering beta</title>
	<published>2009-11-29T08:26:00Z</published>
	<updated>2009-11-29T08:26:00Z</updated>
	<author>
		<name>Kenneth Christiansen</name>
	</author>
	<content type="html">Maybe in the case of failure, provide a link to further information?&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Kenneth&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Sun, Nov 29, 2009 at 3:44 AM, Maciej Stachowiak &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26563470&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mjs@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;
On Nov 28, 2009, at 10:53 AM, Adam Barth wrote:&lt;br&gt;
&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex&quot;&gt;
On Sat, Nov 28, 2009 at 10:21 AM, Maciej Stachowiak &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26563470&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mjs@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex&quot;&gt;
On Nov 28, 2009, at 2:21 AM, Adam Barth wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex&quot;&gt;
1) &amp;quot;Adding an extra flags is going to cause confusion.&amp;quot;  The&lt;br&gt;
style-queue does not add any flags to Bugzilla.  Instead of storing&lt;br&gt;
it&amp;#39;s state in Bugzilla flags (like commit-queue does), we built an&lt;br&gt;
AppEngine web service to hold the queue&amp;#39;s persistent state.  Instead&lt;br&gt;
of indicating style errors with a negative flag, the bot adds a&lt;br&gt;
comment to the bug.&lt;br&gt;
&lt;/blockquote&gt;
&lt;br&gt;
It does seem that flags are noisy in an unappealing way, but it would be&lt;br&gt;
much better (IMO) to store this information in the bugzilla database instead&lt;br&gt;
of externally. Is there any way we can do that?&lt;br&gt;
&lt;/blockquote&gt;
&lt;br&gt;
&gt;From an implementation point of view, either way is easy now that&lt;br&gt;
we&amp;#39;ve got the infrastructure built.  It&amp;#39;s a question of which you&amp;#39;d&lt;br&gt;
prefer.&lt;br&gt;
&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex&quot;&gt;
Could we make a flag that is&lt;br&gt;
hidden in the default UI, or use specially formatted comments that the bot&lt;br&gt;
knows how to recognize?&lt;br&gt;
&lt;/blockquote&gt;
&lt;br&gt;
&gt;From my point of view, a hidden flag could work.  We considered&lt;br&gt;
specially formatted comments, but that would make the bot more chatty.&lt;br&gt;
For example, if the style-queue has some internal error that prevents&lt;br&gt;
it from processing the patch, it wants to remember that, but it&lt;br&gt;
doesn&amp;#39;t want to spam the bug with that information.&lt;br&gt;
&lt;br&gt;
I&amp;#39;m not sure representing all the state in Bugzilla is necessary.  We&lt;br&gt;
should represent the &amp;quot;most interesting&amp;quot; state (e.g., pass / fail)&lt;br&gt;
there.  For the rest, we can have a dashboard similar to&lt;br&gt;
&lt;a href=&quot;http://build.webkit.org&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;build.webkit.org&lt;/a&gt; that shows the status of various patches before they&lt;br&gt;
are committed.  I&amp;#39;ve started sketching something rough here:&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://webkit-commit-queue.appspot.com/static/details.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://webkit-commit-queue.appspot.com/static/details.html&lt;/a&gt;&lt;br&gt;
&lt;/blockquote&gt;
&lt;br&gt;&lt;/div&gt;&lt;/div&gt;
Pass/fail status sounds fine to me. I agree that an error by the bot should not be highly visible in the bug, as that is not as useful to the review and submitter as Pass or Fail and Here&amp;#39;s the Mistakes.&lt;div class=&quot;im&quot;&gt;
&lt;br&gt;
&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex&quot;&gt;
&lt;br&gt;
You can imagine clicking those squares to see the full log of what&lt;br&gt;
happened.  For example, if the build failed on Qt, you might want to&lt;br&gt;
see the full output of build-webkit --qt, but we don&amp;#39;t need to post&lt;br&gt;
all that to Bugzilla.  The comment might just say:&lt;br&gt;
&lt;/blockquote&gt;
&lt;br&gt;&lt;/div&gt;
Looks like a decent design.&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;
&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex&quot;&gt;
&lt;br&gt;
Patch 86912 did not build on Qt.  Build log:&lt;br&gt;
&lt;a href=&quot;http://webkit-commit-queue.appspot.com/patch-status/build-queue-qt/86912/all&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://webkit-commit-queue.appspot.com/patch-status/build-queue-qt/86912/all&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
At a higher level, I&amp;#39;m sympathetic to Mark&amp;#39;s concerns about what the&lt;br&gt;
system will look like when we have a number of bots.  Bugzilla flags&lt;br&gt;
work well for receiving input from humans.  There are lots of choices&lt;br&gt;
for how to present output.  For example, another option is to have a&lt;br&gt;
bunch of colored squares next to each attachment that represent that&lt;br&gt;
patch&amp;#39;s row on the dashboard.&lt;br&gt;
&lt;br&gt;
Adam&lt;br&gt;
&lt;/blockquote&gt;
&lt;br&gt;
_______________________________________________&lt;br&gt;
webkit-dev mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26563470&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;webkit-dev@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&lt;/a&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Kenneth Rohde Christiansen&lt;br&gt;Technical Lead / Senior Software Engineer&lt;br&gt;Qt Labs Americas, Nokia Technology Institute, INdT&lt;br&gt;Phone  +55 81 8895 6002 / E-mail kenneth.christiansen at &lt;a href=&quot;http://openbossa.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;openbossa.org&lt;/a&gt;&lt;br&gt;

&lt;/div&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;webkit-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26563470&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;webkit-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/style-queue-entering-beta-tp26551827p26563470.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26563671</id>
	<title>HTML Layers above plugin</title>
	<published>2009-11-29T07:11:07Z</published>
	<updated>2009-11-29T07:11:07Z</updated>
	<author>
		<name>Andre-John Mas-4</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I am currently investigating the possibility of using a web container for an HTPC system. As part of the design I am looking at is to use the multiple tab views to embed the necessary elements. One would concentrate on the menu and another on the embedded player (via plugin). For the view showing the plug-in I have two approaches that I am looking at, where is either work with with plug-in developers to add the necessary chrome needed to display the play various information or to somehow overlay 'controls' in HTML.
&lt;br&gt;&lt;br&gt;If I do create a layer with a z-index above the video plugin it will get obstructed by the plugin. On the other hand I am able to hide the layer with the plug-in without any issue. Is there are a way to draw HTML above the plugin? If not is there any technical reason why something like this could not be implemented?
&lt;br&gt;&lt;br&gt;André-John
&lt;br&gt;_______________________________________________
&lt;br&gt;webkit-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26563671&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;webkit-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/HTML-Layers-above-plugin-tp26563671p26563671.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26559712</id>
	<title>Re: style-queue entering beta</title>
	<published>2009-11-28T22:44:52Z</published>
	<updated>2009-11-28T22:44:52Z</updated>
	<author>
		<name>Maciej Stachowiak</name>
	</author>
	<content type="html">&lt;br&gt;On Nov 28, 2009, at 10:53 AM, Adam Barth wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Sat, Nov 28, 2009 at 10:21 AM, Maciej Stachowiak &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26559712&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mjs@...&lt;/a&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; On Nov 28, 2009, at 2:21 AM, Adam Barth wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 1) &amp;quot;Adding an extra flags is going to cause confusion.&amp;quot; &amp;nbsp;The
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; style-queue does not add any flags to Bugzilla. &amp;nbsp;Instead of storing
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; it's state in Bugzilla flags (like commit-queue does), we built an
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; AppEngine web service to hold the queue's persistent state. &amp;nbsp;Instead
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; of indicating style errors with a negative flag, the bot adds a
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; comment to the bug.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; It does seem that flags are noisy in an unappealing way, but it &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; would be
&lt;br&gt;&amp;gt;&amp;gt; much better (IMO) to store this information in the bugzilla &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; database instead
&lt;br&gt;&amp;gt;&amp;gt; of externally. Is there any way we can do that?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; From an implementation point of view, either way is easy now that
&lt;br&gt;&amp;gt; we've got the infrastructure built. &amp;nbsp;It's a question of which you'd
&lt;br&gt;&amp;gt; prefer.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Could we make a flag that is
&lt;br&gt;&amp;gt;&amp;gt; hidden in the default UI, or use specially formatted comments that &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; the bot
&lt;br&gt;&amp;gt;&amp;gt; knows how to recognize?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; From my point of view, a hidden flag could work. &amp;nbsp;We considered
&lt;br&gt;&amp;gt; specially formatted comments, but that would make the bot more chatty.
&lt;br&gt;&amp;gt; For example, if the style-queue has some internal error that prevents
&lt;br&gt;&amp;gt; it from processing the patch, it wants to remember that, but it
&lt;br&gt;&amp;gt; doesn't want to spam the bug with that information.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm not sure representing all the state in Bugzilla is necessary. &amp;nbsp;We
&lt;br&gt;&amp;gt; should represent the &amp;quot;most interesting&amp;quot; state (e.g., pass / fail)
&lt;br&gt;&amp;gt; there. &amp;nbsp;For the rest, we can have a dashboard similar to
&lt;br&gt;&amp;gt; build.webkit.org that shows the status of various patches before they
&lt;br&gt;&amp;gt; are committed. &amp;nbsp;I've started sketching something rough here:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://webkit-commit-queue.appspot.com/static/details.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://webkit-commit-queue.appspot.com/static/details.html&lt;/a&gt;&lt;/div&gt;&lt;br&gt;Pass/fail status sounds fine to me. I agree that an error by the bot &amp;nbsp;
&lt;br&gt;should not be highly visible in the bug, as that is not as useful to &amp;nbsp;
&lt;br&gt;the review and submitter as Pass or Fail and Here's the Mistakes.
&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You can imagine clicking those squares to see the full log of what
&lt;br&gt;&amp;gt; happened. &amp;nbsp;For example, if the build failed on Qt, you might want to
&lt;br&gt;&amp;gt; see the full output of build-webkit --qt, but we don't need to post
&lt;br&gt;&amp;gt; all that to Bugzilla. &amp;nbsp;The comment might just say:
&lt;br&gt;&lt;br&gt;Looks like a decent design.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Patch 86912 did not build on Qt. &amp;nbsp;Build log:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://webkit-commit-queue.appspot.com/patch-status/build-queue-qt/86912/all&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://webkit-commit-queue.appspot.com/patch-status/build-queue-qt/86912/all&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; At a higher level, I'm sympathetic to Mark's concerns about what the
&lt;br&gt;&amp;gt; system will look like when we have a number of bots. &amp;nbsp;Bugzilla flags
&lt;br&gt;&amp;gt; work well for receiving input from humans. &amp;nbsp;There are lots of choices
&lt;br&gt;&amp;gt; for how to present output. &amp;nbsp;For example, another option is to have a
&lt;br&gt;&amp;gt; bunch of colored squares next to each attachment that represent that
&lt;br&gt;&amp;gt; patch's row on the dashboard.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Adam
&lt;/div&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;webkit-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26559712&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;webkit-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/style-queue-entering-beta-tp26551827p26559712.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26555887</id>
	<title>Re: style-queue entering beta</title>
	<published>2009-11-28T10:53:06Z</published>
	<updated>2009-11-28T10:53:06Z</updated>
	<author>
		<name>Adam Barth-3</name>
	</author>
	<content type="html">On Sat, Nov 28, 2009 at 10:21 AM, Maciej Stachowiak &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26555887&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mjs@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Nov 28, 2009, at 2:21 AM, Adam Barth wrote:
&lt;br&gt;&amp;gt;&amp;gt; 1) &amp;quot;Adding an extra flags is going to cause confusion.&amp;quot;  The
&lt;br&gt;&amp;gt;&amp;gt; style-queue does not add any flags to Bugzilla.  Instead of storing
&lt;br&gt;&amp;gt;&amp;gt; it's state in Bugzilla flags (like commit-queue does), we built an
&lt;br&gt;&amp;gt;&amp;gt; AppEngine web service to hold the queue's persistent state.  Instead
&lt;br&gt;&amp;gt;&amp;gt; of indicating style errors with a negative flag, the bot adds a
&lt;br&gt;&amp;gt;&amp;gt; comment to the bug.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; It does seem that flags are noisy in an unappealing way, but it would be
&lt;br&gt;&amp;gt; much better (IMO) to store this information in the bugzilla database instead
&lt;br&gt;&amp;gt; of externally. Is there any way we can do that?
&lt;/div&gt;&lt;br&gt;&amp;gt;From an implementation point of view, either way is easy now that
&lt;br&gt;we've got the infrastructure built. &amp;nbsp;It's a question of which you'd
&lt;br&gt;prefer.
&lt;br&gt;&lt;br&gt;&amp;gt; Could we make a flag that is
&lt;br&gt;&amp;gt; hidden in the default UI, or use specially formatted comments that the bot
&lt;br&gt;&amp;gt; knows how to recognize?
&lt;br&gt;&lt;br&gt;&amp;gt;From my point of view, a hidden flag could work. &amp;nbsp;We considered
&lt;br&gt;specially formatted comments, but that would make the bot more chatty.
&lt;br&gt;&amp;nbsp;For example, if the style-queue has some internal error that prevents
&lt;br&gt;it from processing the patch, it wants to remember that, but it
&lt;br&gt;doesn't want to spam the bug with that information.
&lt;br&gt;&lt;br&gt;I'm not sure representing all the state in Bugzilla is necessary. &amp;nbsp;We
&lt;br&gt;should represent the &amp;quot;most interesting&amp;quot; state (e.g., pass / fail)
&lt;br&gt;there. &amp;nbsp;For the rest, we can have a dashboard similar to
&lt;br&gt;build.webkit.org that shows the status of various patches before they
&lt;br&gt;are committed. &amp;nbsp;I've started sketching something rough here:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://webkit-commit-queue.appspot.com/static/details.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://webkit-commit-queue.appspot.com/static/details.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;You can imagine clicking those squares to see the full log of what
&lt;br&gt;happened. &amp;nbsp;For example, if the build failed on Qt, you might want to
&lt;br&gt;see the full output of build-webkit --qt, but we don't need to post
&lt;br&gt;all that to Bugzilla. &amp;nbsp;The comment might just say:
&lt;br&gt;&lt;br&gt;Patch 86912 did not build on Qt. &amp;nbsp;Build log:
&lt;br&gt;&lt;a href=&quot;http://webkit-commit-queue.appspot.com/patch-status/build-queue-qt/86912/all&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://webkit-commit-queue.appspot.com/patch-status/build-queue-qt/86912/all&lt;/a&gt;&lt;br&gt;&lt;br&gt;At a higher level, I'm sympathetic to Mark's concerns about what the
&lt;br&gt;system will look like when we have a number of bots. &amp;nbsp;Bugzilla flags
&lt;br&gt;work well for receiving input from humans. &amp;nbsp;There are lots of choices
&lt;br&gt;for how to present output. &amp;nbsp;For example, another option is to have a
&lt;br&gt;bunch of colored squares next to each attachment that represent that
&lt;br&gt;patch's row on the dashboard.
&lt;br&gt;&lt;br&gt;Adam
&lt;br&gt;_______________________________________________
&lt;br&gt;webkit-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26555887&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;webkit-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/style-queue-entering-beta-tp26551827p26555887.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26555613</id>
	<title>Re: style-queue entering beta</title>
	<published>2009-11-28T10:21:00Z</published>
	<updated>2009-11-28T10:21:00Z</updated>
	<author>
		<name>Maciej Stachowiak</name>
	</author>
	<content type="html">&lt;br&gt;Sounds like a good idea in general. Some comments below:
&lt;br&gt;&lt;br&gt;On Nov 28, 2009, at 2:21 AM, Adam Barth wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; One of the bots that Eric and I have been working on is about to come
&lt;br&gt;&amp;gt; online. &amp;nbsp;This bot is a &amp;quot;style bot&amp;quot; that runs check-webkit-style on
&lt;br&gt;&amp;gt; patches that have been nominated for review. &amp;nbsp;I'd like to ask your
&lt;br&gt;&amp;gt; patience while we work out the kinks.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You can skip the rest of this email if you're not interested in the
&lt;br&gt;&amp;gt; nitty gritty.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; == Summary ==
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The primary goal of the style-queue is to reduce review latency by (1)
&lt;br&gt;&amp;gt; giving immediate feedback to contributors and (2) making human
&lt;br&gt;&amp;gt; reviewer more efficient by relieving them of mechanical tasks (like
&lt;br&gt;&amp;gt; asking for tabs to be replaced with spaces).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The style-queue scans the set of patches that are pending-review for
&lt;br&gt;&amp;gt; new patches. &amp;nbsp;When it finds a new patch, the bot runs
&lt;br&gt;&amp;gt; check-webkit-style on the patch. &amp;nbsp;If check-webkit-style finds style
&lt;br&gt;&amp;gt; errors, the bot comments on the bug.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; == Social Contract ==
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The style-queue is purely informative. &amp;nbsp;You're free to ignore it's
&lt;br&gt;&amp;gt; comments. &amp;nbsp;Ideally, the bot should be silent unless it has something
&lt;br&gt;&amp;gt; interesting to say. &amp;nbsp;If we decide that style-queue is too chatty, we
&lt;br&gt;&amp;gt; can change check-webkit-style to report fewer errors.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; One corollary of this social contract is that the style-queue doesn't
&lt;br&gt;&amp;gt; inform you when your patch passes the style check (because most
&lt;br&gt;&amp;gt; patches should pass, right?). &amp;nbsp;We can re-visit this design choice
&lt;br&gt;&amp;gt; later if it turns out we really want to know when the check succeeds.
&lt;/div&gt;&lt;br&gt;To actually relieve reviewers of the burden of manual style review, it &amp;nbsp;
&lt;br&gt;seems like the bot would have to record when a patch passes the style &amp;nbsp;
&lt;br&gt;check. Otherwise, how can you tell whether a patch has passed the &amp;nbsp;
&lt;br&gt;check, or if the bot just hasn't run on it yet? Would anyone object to &amp;nbsp;
&lt;br&gt;seeing the information that a patch has passed an automated style &amp;nbsp;
&lt;br&gt;check in a comment?
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; == Response to Previous Feedback ==
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; When I floated this idea on webkit-dev previously (in the &amp;quot;bot-filled
&lt;br&gt;&amp;gt; future&amp;quot; thread), I got a bunch of useful feedback. &amp;nbsp;Here's how we
&lt;br&gt;&amp;gt; incorporated that feedback into the current design:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 1) &amp;quot;Adding an extra flags is going to cause confusion.&amp;quot; &amp;nbsp;The
&lt;br&gt;&amp;gt; style-queue does not add any flags to Bugzilla. &amp;nbsp;Instead of storing
&lt;br&gt;&amp;gt; it's state in Bugzilla flags (like commit-queue does), we built an
&lt;br&gt;&amp;gt; AppEngine web service to hold the queue's persistent state. &amp;nbsp;Instead
&lt;br&gt;&amp;gt; of indicating style errors with a negative flag, the bot adds a
&lt;br&gt;&amp;gt; comment to the bug.
&lt;/div&gt;&lt;br&gt;It does seem that flags are noisy in an unappealing way, but it would &amp;nbsp;
&lt;br&gt;be much better (IMO) to store this information in the bugzilla &amp;nbsp;
&lt;br&gt;database instead of externally. Is there any way we can do that? Could &amp;nbsp;
&lt;br&gt;we make a flag that is hidden in the default UI, or use specially &amp;nbsp;
&lt;br&gt;formatted comments that the bot knows how to recognize?
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 2) &amp;quot;What machines are going to be doing these tests, and on which
&lt;br&gt;&amp;gt; platforms?&amp;quot; &amp;nbsp;The style-queue runs on a machine in my apartment that
&lt;br&gt;&amp;gt; runs Mac OS X. &amp;nbsp;The style-queue is platform independent, so this is
&lt;br&gt;&amp;gt; less of an issue for style-queue than it is for a build-queue.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 3) &amp;quot;Which patches would this test?&amp;quot; &amp;nbsp;The style-queue tests any patch
&lt;br&gt;&amp;gt; marked &amp;quot;review?&amp;quot;. &amp;nbsp;This design avoids the need for additional flags or
&lt;br&gt;&amp;gt; indications that a patch should be run through the queue.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 4) &amp;quot;Running tests on an arbitrary patches [opens a security hole].&amp;quot;
&lt;br&gt;&amp;gt; Instead of running check-webkit-style from it's own working copy, the
&lt;br&gt;&amp;gt; style-queue runs check-webkit-style from a separate working copy.
&lt;br&gt;&amp;gt; While it's true you could haxor my machine by committing an evil copy
&lt;br&gt;&amp;gt; of check-webkit-style, I'm already running that risk whenever I type
&lt;br&gt;&amp;gt; &amp;quot;svn up&amp;quot;.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; == Frequently Asked Questions ==
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Q1: If the style-queue doesn't complain, does that mean my patch has
&lt;br&gt;&amp;gt; correct style?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; A1: Unfortunately, no. &amp;nbsp;First of all, check-webkit-style has false
&lt;br&gt;&amp;gt; negatives. &amp;nbsp;Hopefully, the script will improve over time, but it will
&lt;br&gt;&amp;gt; never be perfect. &amp;nbsp;Second, the style-queue is only able to check
&lt;br&gt;&amp;gt; patches that successfully download and apply to top-of-tree. &amp;nbsp;If your
&lt;br&gt;&amp;gt; patch does not apply to top-of-tree (e.g., because it depends on
&lt;br&gt;&amp;gt; another patch), then style-queue won't say anything.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Q2: How can I see whether style-queue processed my patch?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; A2: There isn't a great way to do this yet. &amp;nbsp;The data is stored in the
&lt;br&gt;&amp;gt; webkit-commit-queue.appspot.com web service, but we haven't built a
&lt;br&gt;&amp;gt; front-end for it yet. &amp;nbsp;If you have a strong stomach, you can look at
&lt;br&gt;&amp;gt; the endpoint the bot itself uses
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://webkit-commit-queue.appspot.com/patch-status/style-queue/12345&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://webkit-commit-queue.appspot.com/patch-status/style-queue/12345&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; where 12345 is the ID of your attachment. &amp;nbsp;If you'd like to have a
&lt;br&gt;&amp;gt; better status display, feel free to hack on
&lt;br&gt;&amp;gt; WebKitTools/QueueStatusServer and send me or Eric patches to review.
&lt;br&gt;&amp;gt; In the long term, there's no reason we can't have an awesome UI.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Q3: This bot is going to run amock! &amp;nbsp;How can I keep track of all it's
&lt;br&gt;&amp;gt; evil deeds?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; A3: If you want to see what the bots are doing, you can subscribe to
&lt;br&gt;&amp;gt; the following email list:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://groups.google.com/group/webkit-bot-watchers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/webkit-bot-watchers&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Whenever the bots touch a bug, they're supposed to add this address to
&lt;br&gt;&amp;gt; the CC list. &amp;nbsp;This functionality is very new, so we might not have
&lt;br&gt;&amp;gt; every case covered yet. &amp;nbsp;If you see the bot misbehaving, let me or
&lt;br&gt;&amp;gt; Eric know. &amp;nbsp;We'll correct the issue ASAP.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Q4: Checking style is fine and dandy, but I was hoping for a build- 
&lt;br&gt;&amp;gt; queue!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; A4: My next project is to get a build-queue working for Qt. &amp;nbsp;The
&lt;br&gt;&amp;gt; build-queue will share a lot of infrastructure with the style-queue,
&lt;br&gt;&amp;gt; but making the style-queue was easier because check-webkit-style is a
&lt;br&gt;&amp;gt; lot faster than build-webkit. &amp;nbsp;:)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Q5: When are you flipping the switch?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; A5: Either today or tomorrow, depending on when I find a stretch of
&lt;br&gt;&amp;gt; time to babysit the queue through whatever initial troubles it has.
&lt;br&gt;&amp;gt; My working copy of the style-queue is about five patches ahead of
&lt;br&gt;&amp;gt; trunk. &amp;nbsp;It would be nice to have those patches committed before
&lt;br&gt;&amp;gt; flipping the switch, but it's not necessary.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks for reading to the end, and I hope you find the style-queue &amp;nbsp;
&lt;br&gt;&amp;gt; useful.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Adam
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; webkit-dev mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26555613&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;webkit-dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&lt;/a&gt;&lt;/div&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;webkit-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26555613&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;webkit-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/style-queue-entering-beta-tp26551827p26555613.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26553149</id>
	<title>Why it is not possible to appendChild on elements created by DOMParser?</title>
	<published>2009-11-28T03:16:26Z</published>
	<updated>2009-11-28T03:16:26Z</updated>
	<author>
		<name>Alexander Shabanov</name>
	</author>
	<content type="html">Hi all,
&lt;br&gt;&lt;br&gt;Sorry for silly question but I think that it might be a nice feature to webkit.
&lt;br&gt;The following code works in Mozilla Firefox 3.5, but it does not work
&lt;br&gt;in webkit-based browsers:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var parser = new DOMParser();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var str = &amp;quot;&amp;lt;p&amp;gt;This is a test&amp;lt;/p&amp;gt;&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var doc = parser.parseFromString(str, &amp;quot;text/xml&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; document.body.appendChild(doc.documentElement.firstChild);
&lt;br&gt;&lt;br&gt;I found that specification to DOMParser does not guarantee that the
&lt;br&gt;result of DOMParser's parseFromX methods can
&lt;br&gt;be directly used in the original document.
&lt;br&gt;Nevertheless I believe that it would be quite a useful feature, at
&lt;br&gt;least it won't require JS code to create DOM-compliant content from
&lt;br&gt;the parsed one.
&lt;br&gt;May be I missed something and webkit offers a way of quick adaptation
&lt;br&gt;of the parsed content to the original DOM tree?
&lt;br&gt;Thanks in advance.
&lt;br&gt;&lt;br&gt;P.S.: even though Firefox provides such a feature, a style
&lt;br&gt;specification in the following code will take no effect:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var parser = new DOMParser();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var str = &amp;quot;&amp;lt;p style='color: red;'&amp;gt;This is a test&amp;lt;/p&amp;gt;&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var doc = parser.parseFromString(str, &amp;quot;text/xml&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; document.body.appendChild(doc.documentElement.firstChild);
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Best regards,
&lt;br&gt;&amp;nbsp; &amp;nbsp; Alexander Shabanov
&lt;br&gt;_______________________________________________
&lt;br&gt;webkit-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26553149&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;webkit-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Why-it-is-not-possible-to-appendChild-on-elements-created-by-DOMParser--tp26553149p26553149.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26551827</id>
	<title>style-queue entering beta</title>
	<published>2009-11-28T02:21:38Z</published>
	<updated>2009-11-28T02:21:38Z</updated>
	<author>
		<name>Adam Barth-3</name>
	</author>
	<content type="html">One of the bots that Eric and I have been working on is about to come
&lt;br&gt;online. &amp;nbsp;This bot is a &amp;quot;style bot&amp;quot; that runs check-webkit-style on
&lt;br&gt;patches that have been nominated for review. &amp;nbsp;I'd like to ask your
&lt;br&gt;patience while we work out the kinks.
&lt;br&gt;&lt;br&gt;You can skip the rest of this email if you're not interested in the
&lt;br&gt;nitty gritty.
&lt;br&gt;&lt;br&gt;== Summary ==
&lt;br&gt;&lt;br&gt;The primary goal of the style-queue is to reduce review latency by (1)
&lt;br&gt;giving immediate feedback to contributors and (2) making human
&lt;br&gt;reviewer more efficient by relieving them of mechanical tasks (like
&lt;br&gt;asking for tabs to be replaced with spaces).
&lt;br&gt;&lt;br&gt;The style-queue scans the set of patches that are pending-review for
&lt;br&gt;new patches. &amp;nbsp;When it finds a new patch, the bot runs
&lt;br&gt;check-webkit-style on the patch. &amp;nbsp;If check-webkit-style finds style
&lt;br&gt;errors, the bot comments on the bug.
&lt;br&gt;&lt;br&gt;== Social Contract ==
&lt;br&gt;&lt;br&gt;The style-queue is purely informative. &amp;nbsp;You're free to ignore it's
&lt;br&gt;comments. &amp;nbsp;Ideally, the bot should be silent unless it has something
&lt;br&gt;interesting to say. &amp;nbsp;If we decide that style-queue is too chatty, we
&lt;br&gt;can change check-webkit-style to report fewer errors.
&lt;br&gt;&lt;br&gt;One corollary of this social contract is that the style-queue doesn't
&lt;br&gt;inform you when your patch passes the style check (because most
&lt;br&gt;patches should pass, right?). &amp;nbsp;We can re-visit this design choice
&lt;br&gt;later if it turns out we really want to know when the check succeeds.
&lt;br&gt;&lt;br&gt;== Response to Previous Feedback ==
&lt;br&gt;&lt;br&gt;When I floated this idea on webkit-dev previously (in the &amp;quot;bot-filled
&lt;br&gt;future&amp;quot; thread), I got a bunch of useful feedback. &amp;nbsp;Here's how we
&lt;br&gt;incorporated that feedback into the current design:
&lt;br&gt;&lt;br&gt;1) &amp;quot;Adding an extra flags is going to cause confusion.&amp;quot; &amp;nbsp;The
&lt;br&gt;style-queue does not add any flags to Bugzilla. &amp;nbsp;Instead of storing
&lt;br&gt;it's state in Bugzilla flags (like commit-queue does), we built an
&lt;br&gt;AppEngine web service to hold the queue's persistent state. &amp;nbsp;Instead
&lt;br&gt;of indicating style errors with a negative flag, the bot adds a
&lt;br&gt;comment to the bug.
&lt;br&gt;&lt;br&gt;2) &amp;quot;What machines are going to be doing these tests, and on which
&lt;br&gt;platforms?&amp;quot; &amp;nbsp;The style-queue runs on a machine in my apartment that
&lt;br&gt;runs Mac OS X. &amp;nbsp;The style-queue is platform independent, so this is
&lt;br&gt;less of an issue for style-queue than it is for a build-queue.
&lt;br&gt;&lt;br&gt;3) &amp;quot;Which patches would this test?&amp;quot; &amp;nbsp;The style-queue tests any patch
&lt;br&gt;marked &amp;quot;review?&amp;quot;. &amp;nbsp;This design avoids the need for additional flags or
&lt;br&gt;indications that a patch should be run through the queue.
&lt;br&gt;&lt;br&gt;4) &amp;quot;Running tests on an arbitrary patches [opens a security hole].&amp;quot;
&lt;br&gt;Instead of running check-webkit-style from it's own working copy, the
&lt;br&gt;style-queue runs check-webkit-style from a separate working copy.
&lt;br&gt;While it's true you could haxor my machine by committing an evil copy
&lt;br&gt;of check-webkit-style, I'm already running that risk whenever I type
&lt;br&gt;&amp;quot;svn up&amp;quot;.
&lt;br&gt;&lt;br&gt;== Frequently Asked Questions ==
&lt;br&gt;&lt;br&gt;Q1: If the style-queue doesn't complain, does that mean my patch has
&lt;br&gt;correct style?
&lt;br&gt;&lt;br&gt;A1: Unfortunately, no. &amp;nbsp;First of all, check-webkit-style has false
&lt;br&gt;negatives. &amp;nbsp;Hopefully, the script will improve over time, but it will
&lt;br&gt;never be perfect. &amp;nbsp;Second, the style-queue is only able to check
&lt;br&gt;patches that successfully download and apply to top-of-tree. &amp;nbsp;If your
&lt;br&gt;patch does not apply to top-of-tree (e.g., because it depends on
&lt;br&gt;another patch), then style-queue won't say anything.
&lt;br&gt;&lt;br&gt;Q2: How can I see whether style-queue processed my patch?
&lt;br&gt;&lt;br&gt;A2: There isn't a great way to do this yet. &amp;nbsp;The data is stored in the
&lt;br&gt;webkit-commit-queue.appspot.com web service, but we haven't built a
&lt;br&gt;front-end for it yet. &amp;nbsp;If you have a strong stomach, you can look at
&lt;br&gt;the endpoint the bot itself uses
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://webkit-commit-queue.appspot.com/patch-status/style-queue/12345&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://webkit-commit-queue.appspot.com/patch-status/style-queue/12345&lt;/a&gt;&lt;br&gt;&lt;br&gt;where 12345 is the ID of your attachment. &amp;nbsp;If you'd like to have a
&lt;br&gt;better status display, feel free to hack on
&lt;br&gt;WebKitTools/QueueStatusServer and send me or Eric patches to review.
&lt;br&gt;In the long term, there's no reason we can't have an awesome UI.
&lt;br&gt;&lt;br&gt;Q3: This bot is going to run amock! &amp;nbsp;How can I keep track of all it's
&lt;br&gt;evil deeds?
&lt;br&gt;&lt;br&gt;A3: If you want to see what the bots are doing, you can subscribe to
&lt;br&gt;the following email list:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://groups.google.com/group/webkit-bot-watchers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/webkit-bot-watchers&lt;/a&gt;&lt;br&gt;&lt;br&gt;Whenever the bots touch a bug, they're supposed to add this address to
&lt;br&gt;the CC list. &amp;nbsp;This functionality is very new, so we might not have
&lt;br&gt;every case covered yet. &amp;nbsp;If you see the bot misbehaving, let me or
&lt;br&gt;Eric know. &amp;nbsp;We'll correct the issue ASAP.
&lt;br&gt;&lt;br&gt;Q4: Checking style is fine and dandy, but I was hoping for a build-queue!
&lt;br&gt;&lt;br&gt;A4: My next project is to get a build-queue working for Qt. &amp;nbsp;The
&lt;br&gt;build-queue will share a lot of infrastructure with the style-queue,
&lt;br&gt;but making the style-queue was easier because check-webkit-style is a
&lt;br&gt;lot faster than build-webkit. &amp;nbsp;:)
&lt;br&gt;&lt;br&gt;Q5: When are you flipping the switch?
&lt;br&gt;&lt;br&gt;A5: Either today or tomorrow, depending on when I find a stretch of
&lt;br&gt;time to babysit the queue through whatever initial troubles it has.
&lt;br&gt;My working copy of the style-queue is about five patches ahead of
&lt;br&gt;trunk. &amp;nbsp;It would be nice to have those patches committed before
&lt;br&gt;flipping the switch, but it's not necessary.
&lt;br&gt;&lt;br&gt;Thanks for reading to the end, and I hope you find the style-queue useful.
&lt;br&gt;&lt;br&gt;Adam
&lt;br&gt;_______________________________________________
&lt;br&gt;webkit-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26551827&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;webkit-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/style-queue-entering-beta-tp26551827p26551827.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26551158</id>
	<title>Why Page::setMainFrame use PassRefPtr type parameter?</title>
	<published>2009-11-28T00:09:48Z</published>
	<updated>2009-11-28T00:09:48Z</updated>
	<author>
		<name>Partin-巴丁</name>
	</author>
	<content type="html">&lt;div&gt;Look at this:void Page::setMainFrame(PassRefPtr&amp;lt;Frame&amp;gt; mainFrame).&lt;/div&gt;
&lt;div&gt;Why use PassRefPtr? Infact,change to following will work same:&lt;/div&gt;
&lt;div&gt;void Page::setMainFrame(Frame *mainFrame)&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;1).Look into the function source code:&lt;/div&gt;
&lt;div&gt;   m_mainFrame = mainFrame;   --&amp;gt; call &amp;quot;operator=(T* optr)&amp;quot;,reference count +1&lt;/div&gt;
&lt;div&gt;It mean that if change to &amp;quot;Frame *mainFrame&amp;quot; ,will call mainFrame-&amp;gt;ref();&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;2).Using &amp;quot;PassRefPtr&amp;lt;Frame&amp;gt; mainFrame&amp;quot;:&lt;/div&gt;
&lt;div&gt;   m_mainFrame = mainFrame; --&amp;gt; call &amp;quot;operator=(const PassRefPtr&amp;lt;T&amp;gt;&amp;amp; o)&amp;quot;,reference count no change&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;But,reference count was changed when the function is called:&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;    page-&amp;gt;setMainFrame(this);  --&amp;gt; call &amp;quot;PassRefPtr(T* ptr) : m_ptr(ptr) { if (ptr) ptr-&amp;gt;ref(); }&amp;quot;, reference count +1&lt;/div&gt;&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;So,The &amp;quot;PassRefPtr&amp;lt;Frame&amp;gt; mainFrame&amp;quot;  and the &amp;quot;Frame *mainFrame&amp;quot; cause same reference count.&lt;/div&gt;
&lt;div&gt;But use &amp;quot;PassRefPtr&amp;lt;Frame&amp;gt;&amp;quot; will call new operation!&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;webkit-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26551158&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;webkit-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Why-Page%3A%3AsetMainFrame-use-PassRefPtr-type-parameter--tp26551158p26551158.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26532837</id>
	<title>Re: GlobalScript in WebKit</title>
	<published>2009-11-26T09:44:20Z</published>
	<updated>2009-11-26T09:44:20Z</updated>
	<author>
		<name>Dmitry Titov-2</name>
	</author>
	<content type="html">&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; white-space: pre-wrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; &quot;&gt;What I meant was it would be nice, for the sake of discussion, to share the experience of real life applications that used SharedWorkers or inter-window communications for sharing of significant portions of code and data.

Google apps may be a partial example but it is a real life example of concrete issues with proposed solution that sounds pretty generic and useful for other web apps. It is only prudent to take their feedback rather then replace it with our own theories about future of the web.

No doubt this is a new mechanism and it&amp;#39;s good to question it, since it has costs even as experimental API. Gut feelings vary, some app devs say they need it to solve real issues, we dont hear from other app devs who were facing similar issues and solved it differently. Seems there is no strong argument to kill it nor bless it. Why don&amp;#39;t make it experimental and see? If it was possible to implement it in extension or plugin, we would run it as another Gears-like experiment, but it can not be done in a plugin...

I believe there could be good arguments that simply didn&amp;#39;t surface yet, and hope to hear them. 

Dmitry.&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Nov 25, 2009 at 10:16 PM, Peter Kasting &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26532837&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pkasting@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;
&lt;div class=&quot;im&quot;&gt;On Wed, Nov 25, 2009 at 9:41 PM, Dmitry Titov &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26532837&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dimich@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;/div&gt;&lt;div class=&quot;gmail_quote&quot;&gt;&lt;div class=&quot;im&quot;&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex&quot;&gt;
BTW, could you tell what&amp;#39;s the &amp;#39;course&amp;#39; that would be reverted?&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;Meaning, &amp;quot;before we decide that SharedWorkers and inter-window communication are insufficient, and a further proposal should be entertained by the standards community&amp;quot;.&lt;/div&gt;

&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;font color=&quot;#888888&quot;&gt;&lt;div&gt;PK &lt;/div&gt;&lt;/font&gt;&lt;/div&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;webkit-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26532837&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;webkit-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/GlobalScript-in-WebKit-tp26437931p26532837.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26524871</id>
	<title>Re: innerStaticHTML</title>
	<published>2009-11-25T22:30:01Z</published>
	<updated>2009-11-25T22:30:01Z</updated>
	<author>
		<name>Adam Barth-3</name>
	</author>
	<content type="html">On Wed, Nov 25, 2009 at 1:49 PM, Maciej Stachowiak &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26524871&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mjs@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; On Nov 25, 2009, at 1:33 PM, Adam Barth wrote:
&lt;br&gt;&amp;gt;&amp;gt; I don't have a complete design in mind.  I could try to write up a
&lt;br&gt;&amp;gt;&amp;gt; design document.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Sounds like we could use one given the potential complications.
&lt;br&gt;&lt;br&gt;I've sketched out a complete design here:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://docs.google.com/Doc?id=dd4p8wc4_12sm65qbk4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://docs.google.com/Doc?id=dd4p8wc4_12sm65qbk4&lt;/a&gt;&lt;br&gt;&lt;br&gt;I've given the participants in this thread write access so they can
&lt;br&gt;add notes / ideas. &amp;nbsp;If you'd like write access, let me know.
&lt;br&gt;&lt;br&gt;Adam
&lt;br&gt;_______________________________________________
&lt;br&gt;webkit-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26524871&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;webkit-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/innerStaticHTML-tp26506964p26524871.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26524790</id>
	<title>Re: GlobalScript in WebKit</title>
	<published>2009-11-25T22:16:21Z</published>
	<updated>2009-11-25T22:16:21Z</updated>
	<author>
		<name>Peter Kasting</name>
	</author>
	<content type="html">On Wed, Nov 25, 2009 at 9:41 PM, Dmitry Titov &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26524790&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dimich@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;
BTW, could you tell what&amp;#39;s the &amp;#39;course&amp;#39; that would be reverted?&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Meaning, &amp;quot;before we decide that SharedWorkers and inter-window communication are insufficient, and a further proposal should be entertained by the standards community&amp;quot;.&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;PK &lt;/div&gt;&lt;/div&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;webkit-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26524790&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;webkit-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/GlobalScript-in-WebKit-tp26437931p26524790.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26524605</id>
	<title>Re: GlobalScript in WebKit</title>
	<published>2009-11-25T21:41:46Z</published>
	<updated>2009-11-25T21:41:46Z</updated>
	<author>
		<name>Dmitry Titov-2</name>
	</author>
	<content type="html">Hi Sam!
&lt;br&gt;&lt;br&gt;Thanks a lot for sharing your perspective! I really wish your reply
&lt;br&gt;had, in addition to the statement of the opinion, an argument or just
&lt;br&gt;more explanation of why you think so. I think we covered SharedWorkers
&lt;br&gt;and inter-window communication in the previous discussions and in the
&lt;br&gt;design doc.
&lt;br&gt;&lt;br&gt;BTW, could you tell what's the 'course' that would be reverted?
&lt;br&gt;&lt;br&gt;Dmitry
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Wed, Nov 25, 2009 at 8:30 PM, Sam Weinig &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26524605&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sam.weinig@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Dmitry,
&lt;br&gt;&amp;gt; As I have noted to others on the Chrome team, I do not think this is good
&lt;br&gt;&amp;gt; idea and I don't think we should have it in WebKit.  It adds extra
&lt;br&gt;&amp;gt; complexity to WebKit and gives little beyond what is possible using
&lt;br&gt;&amp;gt; inter-window communication and SharedWorkers. I think we need to give more
&lt;br&gt;&amp;gt; time for large applications to adopt designs around workers before we
&lt;br&gt;&amp;gt; reverse course, at which point, we should again discuss this in the
&lt;br&gt;&amp;gt; standards community.
&lt;br&gt;&amp;gt; -Sam
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Thu, Nov 19, 2009 at 10:35 PM, Dmitry Titov &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26524605&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dimich@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Hi webkit!
&lt;br&gt;&amp;gt;&amp;gt; I'm starting to work on actual implementation of GlobalScript experimental
&lt;br&gt;&amp;gt;&amp;gt; API and started to post patches (hopefully in reviewable portions). There is
&lt;br&gt;&amp;gt;&amp;gt; an uber-bug which has plan of implementation.
&lt;br&gt;&amp;gt;&amp;gt; The current plan is to get it in under ENABLE_GLOBAL_SCRIPT, with both JSC
&lt;br&gt;&amp;gt;&amp;gt; and v8 bindings (first with JSC because at the moment JSC bindings are
&lt;br&gt;&amp;gt;&amp;gt; easier to work with and I'd wish WebKit not to have 1-engine-only features
&lt;br&gt;&amp;gt;&amp;gt; ever).
&lt;br&gt;&amp;gt;&amp;gt; I'd be glad to know if there are suggestions, ideas or concerns of any
&lt;br&gt;&amp;gt;&amp;gt; kind... For example, if there is no interest in JSC bindings, it can be hard
&lt;br&gt;&amp;gt;&amp;gt; to get them reviewed by someone who knows them well. It'd be better to know
&lt;br&gt;&amp;gt;&amp;gt; that earlier.
&lt;br&gt;&amp;gt;&amp;gt; Thanks!
&lt;br&gt;&amp;gt;&amp;gt; Dmitry
&lt;br&gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; webkit-dev mailing list
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26524605&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;webkit-dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;_______________________________________________
&lt;br&gt;webkit-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26524605&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;webkit-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/GlobalScript-in-WebKit-tp26437931p26524605.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26524231</id>
	<title>Re: GlobalScript in WebKit</title>
	<published>2009-11-25T20:30:59Z</published>
	<updated>2009-11-25T20:30:59Z</updated>
	<author>
		<name>Sam Weinig</name>
	</author>
	<content type="html">&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; &quot;&gt;Hi Dmitry,&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;As I have noted to others on the Chrome team, I do not think this is good idea and I don&amp;#39;t think we should have it in WebKit.  It adds extra complexity to WebKit and gives little beyond what is possible using inter-window communication and SharedWorkers. I think we need to give more time for large applications to adopt designs around workers before we reverse course, at which point, we should again discuss this in the standards community.&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;-Sam&lt;br&gt;&lt;/div&gt;&lt;/span&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Thu, Nov 19, 2009 at 10:35 PM, Dmitry Titov &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26524231&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dimich@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;
&lt;div&gt;Hi webkit!&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I&amp;#39;m starting to work on actual implementation of &lt;a href=&quot;http://docs.google.com/View?id=dxv3cth_2rnj9wffz&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;GlobalScript experimental API&lt;/a&gt; and started to post patches (hopefully in reviewable portions). There is an &lt;a href=&quot;https://bugs.webkit.org/show_bug.cgi?id=31317&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;uber-bug&lt;/a&gt; which has plan of implementation.&lt;/div&gt;

&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;The current plan is to get it in under ENABLE_GLOBAL_SCRIPT, with both JSC and v8 bindings (first with JSC because at the moment JSC bindings are easier to work with and I&amp;#39;d wish WebKit not to have 1-engine-only features ever).&lt;/div&gt;

&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I&amp;#39;d be glad to know if there are suggestions, ideas or concerns of any kind... For example, if there is no interest in JSC bindings, it can be hard to get them reviewed by someone who knows them well. It&amp;#39;d be better to know that earlier.&lt;/div&gt;

&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Thanks!&lt;/div&gt;&lt;div&gt;Dmitry&lt;/div&gt;
&lt;br&gt;_______________________________________________&lt;br&gt;
webkit-dev mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26524231&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;webkit-dev@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;webkit-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26524231&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;webkit-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/GlobalScript-in-WebKit-tp26437931p26524231.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26521032</id>
	<title>Re: innerStaticHTML</title>
	<published>2009-11-25T14:01:56Z</published>
	<updated>2009-11-25T14:01:56Z</updated>
	<author>
		<name>Maciej Stachowiak</name>
	</author>
	<content type="html">&lt;br&gt;On Nov 25, 2009, at 1:45 PM, Michal Zalewski wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt; The other way to skin this cat, by the way, is to implement the
&lt;br&gt;&amp;gt;&amp;gt; seamless attribute on iframes. &amp;nbsp;That gives you a similar sort of
&lt;br&gt;&amp;gt;&amp;gt; design using the @sandbox attribute and solves many of your above
&lt;br&gt;&amp;gt;&amp;gt; concerns, e.g. by creating a new namespace for @ids. &amp;nbsp;Maybe we should
&lt;br&gt;&amp;gt;&amp;gt; try that first or in parallel?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I would think that in practice, IFRAMEs would, at least
&lt;br&gt;&amp;gt; psychologically, be significantly less useful to web app developers.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This is due to the fact that frames are conceptually more difficult to
&lt;br&gt;&amp;gt; properly position and size to accommodate any dynamically inserted
&lt;br&gt;&amp;gt; text;
&lt;/div&gt;&lt;br&gt;Seamless iframes would address this first problem by participating in &amp;nbsp;
&lt;br&gt;the layout of the containing page.
&lt;br&gt;&lt;br&gt;&amp;gt; are more cumbersome to pre-populate with data on server-side
&lt;br&gt;&amp;gt; (extra HTTP roundtrips or opaque data: URLs). Also, are renderer
&lt;br&gt;&amp;gt; implementations actually ready to handle hundreds of seamless IFRAMEs
&lt;br&gt;&amp;gt; on a page with the performance footprint not exceeding that of spans
&lt;br&gt;&amp;gt; and divs?
&lt;br&gt;&lt;br&gt;But not these last two problems (though I think you can still &amp;nbsp;
&lt;br&gt;document.write() into a sandboxed seamless iframe, making it not much &amp;nbsp;
&lt;br&gt;less convenient than the staticInnerHTML solution).
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Maciej
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;webkit-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26521032&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;webkit-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/innerStaticHTML-tp26506964p26521032.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26520882</id>
	<title>Re: innerStaticHTML</title>
	<published>2009-11-25T13:49:39Z</published>
	<updated>2009-11-25T13:49:39Z</updated>
	<author>
		<name>Maciej Stachowiak</name>
	</author>
	<content type="html">&lt;br&gt;On Nov 25, 2009, at 1:33 PM, Adam Barth wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Wed, Nov 25, 2009 at 1:25 PM, Maciej Stachowiak &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26520882&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mjs@...&lt;/a&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; On Nov 25, 2009, at 12:34 PM, Adam Barth wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; On Wed, Nov 25, 2009 at 12:30 PM, Maciej Stachowiak &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26520882&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mjs@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; On Nov 25, 2009, at 6:05 AM, Adam Barth wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Maybe we should have a DOM API called
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; webkitJailChildren(&amp;quot;no-script-for-you&amp;quot;) on Node that prevents &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; future
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; children from running script. &amp;nbsp;Making it a DOM API prevents &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; authors
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; from trying to turn the feature on with markup.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Interesting idea. This seems potentially trickier to implement &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; than just
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; innerStaticHTML, since nearly every method that mutates the DOM &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; will have
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; check jail status. innerStaticHTML could be limited in scope to &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; only
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; operations that happen as part of parsing.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Instead of checking every DOM mutation, we could just walk the &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; parent
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; pointers before executing a script to see if an ancestor is jailed.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I don't have a complete design in mind. &amp;nbsp;I could try to write up a
&lt;br&gt;&amp;gt; design document.
&lt;/div&gt;&lt;br&gt;Sounds like we could use one given the potential complications.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; A few thoughts:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 1) Presumably we'd want to block instantiation of plugins and Java &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; applets
&lt;br&gt;&amp;gt;&amp;gt; too, or the scripting restriction becomes toothless. Perhaps also &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; iframes,
&lt;br&gt;&amp;gt;&amp;gt; unless the scripting restriction is intended to propagate across &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; frame
&lt;br&gt;&amp;gt;&amp;gt; boundaries.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Yes. &amp;nbsp;Also the &amp;lt;base&amp;gt; element. &amp;nbsp;Essentially, all the same APIs that
&lt;br&gt;&amp;gt; are currently restricted by the XSSAuditor.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 2) Capturing all points at which script execution occurs and &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; tracing them
&lt;br&gt;&amp;gt;&amp;gt; back to the originating element may be tricky. javascript: URIs are &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; one
&lt;br&gt;&amp;gt;&amp;gt; potentially subtle example. By the time the JavaScript for those gets
&lt;br&gt;&amp;gt;&amp;gt; executed, I believe we no longer know the originating element, the &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; way the
&lt;br&gt;&amp;gt;&amp;gt; code is currently structured.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The way I would do this is to teach HTMLAnchorElement and friends not
&lt;br&gt;&amp;gt; to hand off JavaScript URLs to FrameLoader if their parent is jailed.
&lt;br&gt;&amp;gt; I'm not sure how many such interception points we'd need.
&lt;/div&gt;&lt;br&gt;Not sure either. Two others I can think of are SVGAElement and &amp;nbsp;
&lt;br&gt;HTMLFormElement.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 3) It seems like the rule &amp;quot;don't execute JS&amp;quot; might not be quite &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; what is
&lt;br&gt;&amp;gt;&amp;gt; desired, since it would (presumably) prevent the parent itself from &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; using
&lt;br&gt;&amp;gt;&amp;gt; event listeners on nodes in the jail. IMO the best treatment for &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; event
&lt;br&gt;&amp;gt;&amp;gt; listeners would be to prevent them from being created by &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; attributes, rather
&lt;br&gt;&amp;gt;&amp;gt; than to prevent them from executing.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Agreed. &amp;nbsp;We'd want to stop inline event listeners from being created
&lt;br&gt;&amp;gt; on jailed nodes.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 4) Do we need to strip or rename id, name and class values to prevent
&lt;br&gt;&amp;gt;&amp;gt; interference with the containing page's use of getElementById() and &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; such?
&lt;br&gt;&amp;gt;&amp;gt; Caja does.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I think this is an order of magnitude less important that direct
&lt;br&gt;&amp;gt; script execution. &amp;nbsp;There are going to be advanced use cases for which
&lt;br&gt;&amp;gt; Caja is the right answer.
&lt;/div&gt;&lt;br&gt;Caja wants to let you actually run script in the jail without &amp;nbsp;
&lt;br&gt;interfering with the containing page - I definitely don't think we &amp;nbsp;
&lt;br&gt;should target that. But preventing the content from interfering with &amp;nbsp;
&lt;br&gt;the containing page seems in-scope. I agree this particular threat is &amp;nbsp;
&lt;br&gt;less risky than actual script execution.
&lt;br&gt;&lt;br&gt;&amp;gt; The other way to skin this cat, by the way, is to implement the
&lt;br&gt;&amp;gt; seamless attribute on iframes. &amp;nbsp;That gives you a similar sort of
&lt;br&gt;&amp;gt; design using the @sandbox attribute and solves many of your above
&lt;br&gt;&amp;gt; concerns, e.g. by creating a new namespace for @ids. &amp;nbsp;Maybe we should
&lt;br&gt;&amp;gt; try that first or in parallel?
&lt;br&gt;&lt;br&gt;Indeed, it can cover some similar use cases. I don't know if it's good &amp;nbsp;
&lt;br&gt;for comment sections - one iframe per comment would be quite &amp;nbsp;
&lt;br&gt;heavyweight. If there is any active content *around* each comment &amp;nbsp;
&lt;br&gt;(like edit or reply buttons) then you might not be able to use one for &amp;nbsp;
&lt;br&gt;all of them. In such a case I think innerStaticHTML (or moral &amp;nbsp;
&lt;br&gt;equivalent via jailed nodes) would be a more suitable solution. If you &amp;nbsp;
&lt;br&gt;have only a small number of untrusted content regions then seamless &amp;nbsp;
&lt;br&gt;iframes could be a good solution and it might be easier to be really &amp;nbsp;
&lt;br&gt;confident of the implementation (since all cross-frame access of any &amp;nbsp;
&lt;br&gt;kind is already doing a security check, and turning off scripting or &amp;nbsp;
&lt;br&gt;plugins wholesale for a frame can be done in a very localized way). &amp;nbsp;
&lt;br&gt;OTOH it would require render tree expertise to implement the layout &amp;nbsp;
&lt;br&gt;aspects.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Maciej
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;webkit-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26520882&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;webkit-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/innerStaticHTML-tp26506964p26520882.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26520834</id>
	<title>Re: innerStaticHTML</title>
	<published>2009-11-25T13:45:33Z</published>
	<updated>2009-11-25T13:45:33Z</updated>
	<author>
		<name>Michal Zalewski-4</name>
	</author>
	<content type="html">&amp;gt; The other way to skin this cat, by the way, is to implement the
&lt;br&gt;&amp;gt; seamless attribute on iframes.  That gives you a similar sort of
&lt;br&gt;&amp;gt; design using the @sandbox attribute and solves many of your above
&lt;br&gt;&amp;gt; concerns, e.g. by creating a new namespace for @ids.  Maybe we should
&lt;br&gt;&amp;gt; try that first or in parallel?
&lt;br&gt;&lt;br&gt;I would think that in practice, IFRAMEs would, at least
&lt;br&gt;psychologically, be significantly less useful to web app developers.
&lt;br&gt;&lt;br&gt;This is due to the fact that frames are conceptually more difficult to
&lt;br&gt;properly position and size to accommodate any dynamically inserted
&lt;br&gt;text; are more cumbersome to pre-populate with data on server-side
&lt;br&gt;(extra HTTP roundtrips or opaque data: URLs). Also, are renderer
&lt;br&gt;implementations actually ready to handle hundreds of seamless IFRAMEs
&lt;br&gt;on a page with the performance footprint not exceeding that of spans
&lt;br&gt;and divs?
&lt;br&gt;&lt;br&gt;/mz
&lt;br&gt;_______________________________________________
&lt;br&gt;webkit-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26520834&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;webkit-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/innerStaticHTML-tp26506964p26520834.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26520683</id>
	<title>Re: innerStaticHTML</title>
	<published>2009-11-25T13:33:35Z</published>
	<updated>2009-11-25T13:33:35Z</updated>
	<author>
		<name>Adam Barth-3</name>
	</author>
	<content type="html">On Wed, Nov 25, 2009 at 1:25 PM, Maciej Stachowiak &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26520683&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mjs@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Nov 25, 2009, at 12:34 PM, Adam Barth wrote:
&lt;br&gt;&amp;gt;&amp;gt; On Wed, Nov 25, 2009 at 12:30 PM, Maciej Stachowiak &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26520683&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mjs@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; On Nov 25, 2009, at 6:05 AM, Adam Barth wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Maybe we should have a DOM API called
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; webkitJailChildren(&amp;quot;no-script-for-you&amp;quot;) on Node that prevents future
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; children from running script.  Making it a DOM API prevents authors
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; from trying to turn the feature on with markup.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Interesting idea. This seems potentially trickier to implement than just
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; innerStaticHTML, since nearly every method that mutates the DOM will have
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; check jail status. innerStaticHTML could be limited in scope to only
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; operations that happen as part of parsing.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Instead of checking every DOM mutation, we could just walk the parent
&lt;br&gt;&amp;gt;&amp;gt; pointers before executing a script to see if an ancestor is jailed.
&lt;/div&gt;&lt;br&gt;I don't have a complete design in mind. &amp;nbsp;I could try to write up a
&lt;br&gt;design document.
&lt;br&gt;&lt;br&gt;&amp;gt; A few thoughts:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 1) Presumably we'd want to block instantiation of plugins and Java applets
&lt;br&gt;&amp;gt; too, or the scripting restriction becomes toothless. Perhaps also iframes,
&lt;br&gt;&amp;gt; unless the scripting restriction is intended to propagate across frame
&lt;br&gt;&amp;gt; boundaries.
&lt;br&gt;&lt;br&gt;Yes. &amp;nbsp;Also the &amp;lt;base&amp;gt; element. &amp;nbsp;Essentially, all the same APIs that
&lt;br&gt;are currently restricted by the XSSAuditor.
&lt;br&gt;&lt;br&gt;&amp;gt; 2) Capturing all points at which script execution occurs and tracing them
&lt;br&gt;&amp;gt; back to the originating element may be tricky. javascript: URIs are one
&lt;br&gt;&amp;gt; potentially subtle example. By the time the JavaScript for those gets
&lt;br&gt;&amp;gt; executed, I believe we no longer know the originating element, the way the
&lt;br&gt;&amp;gt; code is currently structured.
&lt;br&gt;&lt;br&gt;The way I would do this is to teach HTMLAnchorElement and friends not
&lt;br&gt;to hand off JavaScript URLs to FrameLoader if their parent is jailed.
&lt;br&gt;I'm not sure how many such interception points we'd need.
&lt;br&gt;&lt;br&gt;&amp;gt; 3) It seems like the rule &amp;quot;don't execute JS&amp;quot; might not be quite what is
&lt;br&gt;&amp;gt; desired, since it would (presumably) prevent the parent itself from using
&lt;br&gt;&amp;gt; event listeners on nodes in the jail. IMO the best treatment for event
&lt;br&gt;&amp;gt; listeners would be to prevent them from being created by attributes, rather
&lt;br&gt;&amp;gt; than to prevent them from executing.
&lt;br&gt;&lt;br&gt;Agreed. &amp;nbsp;We'd want to stop inline event listeners from being created
&lt;br&gt;on jailed nodes.
&lt;br&gt;&lt;br&gt;&amp;gt; 4) Do we need to strip or rename id, name and class values to prevent
&lt;br&gt;&amp;gt; interference with the containing page's use of getElementById() and such?
&lt;br&gt;&amp;gt; Caja does.
&lt;br&gt;&lt;br&gt;I think this is an order of magnitude less important that direct
&lt;br&gt;script execution. &amp;nbsp;There are going to be advanced use cases for which
&lt;br&gt;Caja is the right answer.
&lt;br&gt;&lt;br&gt;The other way to skin this cat, by the way, is to implement the
&lt;br&gt;seamless attribute on iframes. &amp;nbsp;That gives you a similar sort of
&lt;br&gt;design using the @sandbox attribute and solves many of your above
&lt;br&gt;concerns, e.g. by creating a new namespace for @ids. &amp;nbsp;Maybe we should
&lt;br&gt;try that first or in parallel?
&lt;br&gt;&lt;br&gt;Adam
&lt;br&gt;_______________________________________________
&lt;br&gt;webkit-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26520683&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;webkit-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/innerStaticHTML-tp26506964p26520683.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26520570</id>
	<title>Re: innerStaticHTML</title>
	<published>2009-11-25T13:25:30Z</published>
	<updated>2009-11-25T13:25:30Z</updated>
	<author>
		<name>Maciej Stachowiak</name>
	</author>
	<content type="html">&lt;br&gt;On Nov 25, 2009, at 12:34 PM, Adam Barth wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Wed, Nov 25, 2009 at 12:30 PM, Maciej Stachowiak &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26520570&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mjs@...&lt;/a&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; On Nov 25, 2009, at 6:05 AM, Adam Barth wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Maybe we should have a DOM API called
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; webkitJailChildren(&amp;quot;no-script-for-you&amp;quot;) on Node that prevents future
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; children from running script. &amp;nbsp;Making it a DOM API prevents authors
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; from trying to turn the feature on with markup.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Interesting idea. This seems potentially trickier to implement than &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; just
&lt;br&gt;&amp;gt;&amp;gt; innerStaticHTML, since nearly every method that mutates the DOM &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; will have to
&lt;br&gt;&amp;gt;&amp;gt; check jail status. innerStaticHTML could be limited in scope to only
&lt;br&gt;&amp;gt;&amp;gt; operations that happen as part of parsing.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Instead of checking every DOM mutation, we could just walk the parent
&lt;br&gt;&amp;gt; pointers before executing a script to see if an ancestor is jailed.
&lt;/div&gt;&lt;br&gt;&lt;br&gt;A few thoughts:
&lt;br&gt;&lt;br&gt;1) Presumably we'd want to block instantiation of plugins and Java &amp;nbsp;
&lt;br&gt;applets too, or the scripting restriction becomes toothless. Perhaps &amp;nbsp;
&lt;br&gt;also iframes, unless the scripting restriction is intended to &amp;nbsp;
&lt;br&gt;propagate across frame boundaries.
&lt;br&gt;&lt;br&gt;2) Capturing all points at which script execution occurs and tracing &amp;nbsp;
&lt;br&gt;them back to the originating element may be tricky. javascript: URIs &amp;nbsp;
&lt;br&gt;are one potentially subtle example. By the time the JavaScript for &amp;nbsp;
&lt;br&gt;those gets executed, I believe we no longer know the originating &amp;nbsp;
&lt;br&gt;element, the way the code is currently structured.
&lt;br&gt;&lt;br&gt;3) It seems like the rule &amp;quot;don't execute JS&amp;quot; might not be quite what &amp;nbsp;
&lt;br&gt;is desired, since it would (presumably) prevent the parent itself from &amp;nbsp;
&lt;br&gt;using event listeners on nodes in the jail. IMO the best treatment for &amp;nbsp;
&lt;br&gt;event listeners would be to prevent them from being created by &amp;nbsp;
&lt;br&gt;attributes, rather than to prevent them from executing.
&lt;br&gt;&lt;br&gt;4) Do we need to strip or rename id, name and class values to prevent &amp;nbsp;
&lt;br&gt;interference with the containing page's use of getElementById() and &amp;nbsp;
&lt;br&gt;such? Caja does.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Maciej
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;webkit-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26520570&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;webkit-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/innerStaticHTML-tp26506964p26520570.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26519845</id>
	<title>Re: innerStaticHTML</title>
	<published>2009-11-25T12:34:24Z</published>
	<updated>2009-11-25T12:34:24Z</updated>
	<author>
		<name>Adam Barth-3</name>
	</author>
	<content type="html">On Wed, Nov 25, 2009 at 12:30 PM, Maciej Stachowiak &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26519845&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mjs@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Nov 25, 2009, at 6:05 AM, Adam Barth wrote:
&lt;br&gt;&amp;gt; &amp;gt; Maybe we should have a DOM API called
&lt;br&gt;&amp;gt; &amp;gt; webkitJailChildren(&amp;quot;no-script-for-you&amp;quot;) on Node that prevents future
&lt;br&gt;&amp;gt; &amp;gt; children from running script.  Making it a DOM API prevents authors
&lt;br&gt;&amp;gt; &amp;gt; from trying to turn the feature on with markup.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Interesting idea. This seems potentially trickier to implement than just
&lt;br&gt;&amp;gt; innerStaticHTML, since nearly every method that mutates the DOM will have to
&lt;br&gt;&amp;gt; check jail status. innerStaticHTML could be limited in scope to only
&lt;br&gt;&amp;gt; operations that happen as part of parsing.
&lt;/div&gt;&lt;br&gt;Instead of checking every DOM mutation, we could just walk the parent
&lt;br&gt;pointers before executing a script to see if an ancestor is jailed.
&lt;br&gt;&lt;br&gt;Adam
&lt;br&gt;_______________________________________________
&lt;br&gt;webkit-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26519845&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;webkit-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/innerStaticHTML-tp26506964p26519845.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26519799</id>
	<title>Re: innerStaticHTML</title>
	<published>2009-11-25T12:30:58Z</published>
	<updated>2009-11-25T12:30:58Z</updated>
	<author>
		<name>Maciej Stachowiak</name>
	</author>
	<content type="html">&lt;html&gt;&lt;body style=&quot;word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; &quot;&gt;&lt;br&gt;&lt;div&gt;&lt;div&gt;On Nov 25, 2009, at 6:05 AM, Adam Barth wrote:&lt;/div&gt;&lt;br class=&quot;Apple-interchange-newline&quot;&gt;&lt;blockquote type=&quot;cite&quot;&gt;&lt;div&gt;On Tue, Nov 24, 2009 at 11:21 PM, Maciej Stachowiak &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26519799&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mjs@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&lt;blockquote type=&quot;cite&quot;&gt;If we tie it to an element or attribute, people may be tempted to just do it&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote type=&quot;cite&quot;&gt;in markup, which would be insecure.&lt;br&gt;&lt;/blockquote&gt;&lt;br&gt;Maybe we should have a DOM API called&lt;br&gt;webkitJailChildren(&quot;no-script-for-you&quot;) on Node that prevents future&lt;br&gt;children from running script. &amp;nbsp;Making it a DOM API prevents authors&lt;br&gt;from trying to turn the feature on with markup.&lt;br&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Interesting idea. This seems potentially trickier to implement than just innerStaticHTML, since nearly every method that mutates the DOM will have to check jail status. innerStaticHTML could be limited in scope to only operations that happen as part of parsing.&lt;/div&gt;&lt;br&gt;&lt;blockquote type=&quot;cite&quot;&gt;&lt;div&gt;On Tue, Nov 24, 2009 at 11:27 PM, Michal Zalewski &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26519799&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lcamtuf@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&lt;blockquote type=&quot;cite&quot;&gt;&amp;lt;span secure_mode=&quot;$random_server_generated_nonce&quot;&amp;gt;&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote type=&quot;cite&quot;&gt;...unsanitized user content...&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote type=&quot;cite&quot;&gt;&amp;lt;/span secure_mode=&quot;$random_server_generated_nonce&quot;&amp;gt;&lt;br&gt;&lt;/blockquote&gt;&lt;br&gt;I'd rather not go this route in our initial implementation. &amp;nbsp;I think&lt;br&gt;we should target the use case of a web site receiving an untrusted&lt;br&gt;string via cross-origin XMLHttpRequest or postMessage.&lt;font class=&quot;Apple-style-span&quot; color=&quot;#000000&quot;&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#144FAE&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;One obvious likely use case is for sites that wish to sanitize user-generated content, for example comment sections of blogs. innerStaticHTML is actually decent for that use case. Not quite as nice as markup, but I'm wary of introducing parser complexity to defend against hostile content that tries to prematurely close the jail.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Regards,&lt;/div&gt;&lt;div&gt;Maciej&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;webkit-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26519799&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;webkit-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/innerStaticHTML-tp26506964p26519799.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26519704</id>
	<title>ImageLoader class</title>
	<published>2009-11-25T12:15:04Z</published>
	<updated>2009-11-25T12:15:04Z</updated>
	<author>
		<name>Sergiy Byelozyorov</name>
	</author>
	<content type="html">Hello,&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I am writing my own class using ImageLoader. Can somebody, please, help me with these questions:&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;How do I know that the image was loaded already? Can I set up callback somehow?&lt;/li&gt;
&lt;li&gt;What should functions sourceURI() and dispatchLoadEvent() do?&lt;/li&gt;&lt;li&gt;What is pixel format for m_imageLoader.image()-&amp;gt;image()-&amp;gt;data()-&amp;gt;data()? Is this the right way to access loaded image raw pixel data?&lt;/li&gt;
&lt;li&gt;How can I handle animations (e.g. GIF files)? How do I know when the next image in the animation suquence is ready? Another callback?&lt;/li&gt;&lt;li&gt;Which image formats are supported? Can I add my own, like HDR?&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;
Thank you.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;div&gt;Sergiy&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;webkit-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26519704&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;webkit-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ImageLoader-class-tp26519704p26519704.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26518309</id>
	<title>Re: Why are some layout tests renamed with a suffix of -disabled?</title>
	<published>2009-11-25T10:53:43Z</published>
	<updated>2009-11-25T10:53:43Z</updated>
	<author>
		<name>Darin Fisher-3</name>
	</author>
	<content type="html">&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Nov 25, 2009 at 10:44 AM, Dan Bernstein &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26518309&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mitz@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;
&lt;div style=&quot;word-wrap:break-word&quot;&gt;&lt;br&gt;&lt;div&gt;&lt;div class=&quot;im&quot;&gt;&lt;div&gt;On Nov 25, 2009, at 10:38 AM, Darin Fisher wrote:&lt;/div&gt;&lt;br&gt;&lt;blockquote type=&quot;cite&quot;&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Nov 25, 2009 at 10:35 AM, Dan Bernstein &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26518309&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mitz@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex&quot;&gt;
&lt;div&gt;&lt;br&gt;
On Nov 25, 2009, at 9:55 AM, Darin Fisher wrote:&lt;br&gt;
&lt;br&gt;
&amp;gt; Why are some layout tests renamed with a suffix of -disabled?  Why aren&amp;#39;t such tests simply added to the skipped list?  Is -disabled simply the old way?&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;Usually a test is disabled, with a bug filed to re-enable it, when a WebKit bug makes it impossible to run the test (e.g. it crashes DumpRenderTree) or makes the test produce different results on each run (this can also be a bug in the test). The skipped lists are platform-specific, so they are not a good way to deal with such situations.&lt;/blockquote&gt;

&lt;/div&gt;&lt;br&gt;&lt;div&gt;My concern is that some tests may pass on some ports but not others.&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;For such cases, the skipped list is the way to go.&lt;/div&gt;&lt;div class=&quot;im&quot;&gt;&lt;br&gt;&lt;blockquote type=&quot;cite&quot;&gt;
&lt;div&gt;If the tests are -disabled, then it prevents them from being run on ports where the tests function properly.&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;I see now that I didn’t make myself clear. By “WebKit bug” above I meant a bug that affects all ports and platforms (maybe I should have said “a core WebKit bug” or “a WebCore bug” :-) ).&lt;/div&gt;
&lt;div class=&quot;im&quot;&gt;&lt;br&gt;&lt;blockquote type=&quot;cite&quot;&gt;&lt;div&gt;Since skipped lists prevent the test from being executed, doesn&amp;#39;t it solve the problem of disabling a test for ports that can&amp;#39;t handle it?  What am I missing? :-)&lt;/div&gt;
&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;The “tests that crash/hang/behave unpredictably on all ports” part.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;There aren’t many -disabled tests, and I think it’s a good idea to audit them and make sure that (a) they can’t be re-enabled (b) they can’t just be skipped on some platforms and run on others and (c) there’s a bug filed on re-enabling them (or fixing the reason why they can’t be enabled).&lt;/div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;This makes sense now.  Thanks for clarifying.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;-Darin&lt;/div&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;webkit-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26518309&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;webkit-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Why-are-some-layout-tests-renamed-with-a-suffix-of--disabled--tp26517423p26518309.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26518147</id>
	<title>Re: Why are some layout tests renamed with a suffix of -disabled?</title>
	<published>2009-11-25T10:44:05Z</published>
	<updated>2009-11-25T10:44:05Z</updated>
	<author>
		<name>Dan Bernstein</name>
	</author>
	<content type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body style=&quot;word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; &quot;&gt;&lt;br&gt;&lt;div&gt;&lt;div&gt;On Nov 25, 2009, at 10:38 AM, Darin Fisher wrote:&lt;/div&gt;&lt;br class=&quot;Apple-interchange-newline&quot;&gt;&lt;blockquote type=&quot;cite&quot;&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Nov 25, 2009 at 10:35 AM, Dan Bernstein &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26518147&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mitz@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;
&lt;div class=&quot;im&quot;&gt;&lt;br&gt;
On Nov 25, 2009, at 9:55 AM, Darin Fisher wrote:&lt;br&gt;
&lt;br&gt;
&amp;gt; Why are some layout tests renamed with a suffix of -disabled? &amp;nbsp;Why aren't such tests simply added to the skipped list? &amp;nbsp;Is -disabled simply the old way?&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;Usually a test is disabled, with a bug filed to re-enable it, when a WebKit bug makes it impossible to run the test (e.g. it crashes DumpRenderTree) or makes the test produce different results on each run (this can also be a bug in the test). The skipped lists are platform-specific, so they are not a good way to deal with such situations.&lt;/blockquote&gt;
&lt;/div&gt;&lt;br&gt;&lt;div&gt;My concern is that some tests may pass on some ports but not others.&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;For such cases, the skipped list is the way to go.&lt;/div&gt;&lt;br&gt;&lt;blockquote type=&quot;cite&quot;&gt;&lt;div&gt;If the tests are -disabled, then it prevents them from being run on ports where the tests function properly.&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I see now that I didn’t make myself clear. By “WebKit bug” above I meant a bug that affects all ports and platforms (maybe I should have said “a core WebKit bug” or “a WebCore bug” :-) ).&lt;/div&gt;&lt;br&gt;&lt;blockquote type=&quot;cite&quot;&gt;&lt;div&gt;Since skipped lists prevent the test from being executed, doesn't it solve the problem of disabling a test for ports that can't handle it? &amp;nbsp;What am I missing? :-)&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;The “tests that crash/hang/behave unpredictably on all ports” part.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;There aren’t many -disabled tests, and I think it’s a good idea to audit them and make sure that (a) they can’t be re-enabled (b) they can’t just be skipped on some platforms and run on others and (c) there’s a bug filed on re-enabling them (or fixing the reason why they can’t be enabled).&lt;/div&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;webkit-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26518147&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;webkit-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Why-are-some-layout-tests-renamed-with-a-suffix-of--disabled--tp26517423p26518147.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26518058</id>
	<title>Re: Why are some layout tests renamed with a suffix of -disabled?</title>
	<published>2009-11-25T10:38:15Z</published>
	<updated>2009-11-25T10:38:15Z</updated>
	<author>
		<name>Darin Fisher-3</name>
	</author>
	<content type="html">&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Nov 25, 2009 at 10:35 AM, Dan Bernstein &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26518058&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mitz@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;
&lt;div class=&quot;im&quot;&gt;&lt;br&gt;
On Nov 25, 2009, at 9:55 AM, Darin Fisher wrote:&lt;br&gt;
&lt;br&gt;
&amp;gt; Why are some layout tests renamed with a suffix of -disabled?  Why aren&amp;#39;t such tests simply added to the skipped list?  Is -disabled simply the old way?&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;Usually a test is disabled, with a bug filed to re-enable it, when a WebKit bug makes it impossible to run the test (e.g. it crashes DumpRenderTree) or makes the test produce different results on each run (this can also be a bug in the test). The skipped lists are platform-specific, so they are not a good way to deal with such situations.&lt;/blockquote&gt;
&lt;/div&gt;&lt;br&gt;&lt;div&gt;My concern is that some tests may pass on some ports but not others.  If the tests are -disabled, then it prevents them from being run on ports where the tests function properly.  Since skipped lists prevent the test from being executed, doesn&amp;#39;t it solve the problem of disabling a test for ports that can&amp;#39;t handle it?  What am I missing? :-)&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;-Darin&lt;/div&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;webkit-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26518058&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;webkit-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Why-are-some-layout-tests-renamed-with-a-suffix-of--disabled--tp26517423p26518058.html" />
</entry>

</feed>
