<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.mozilla.org/index.php?action=history&amp;feed=atom&amp;title=DocShell%2FIRC_Logs</id>
	<title>DocShell/IRC Logs - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.mozilla.org/index.php?action=history&amp;feed=atom&amp;title=DocShell%2FIRC_Logs"/>
	<link rel="alternate" type="text/html" href="https://wiki.mozilla.org/index.php?title=DocShell/IRC_Logs&amp;action=history"/>
	<updated>2026-12-05T01:48:56Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>https://wiki.mozilla.org/index.php?title=DocShell/IRC_Logs&amp;diff=1073999&amp;oldid=prev</id>
		<title>GPHemsley: GPHemsley moved page DocShell:IRC Logs to DocShell/IRC Logs without leaving a redirect</title>
		<link rel="alternate" type="text/html" href="https://wiki.mozilla.org/index.php?title=DocShell/IRC_Logs&amp;diff=1073999&amp;oldid=prev"/>
		<updated>2015-05-12T01:41:46Z</updated>

		<summary type="html">&lt;p&gt;GPHemsley moved page &lt;a href=&quot;/index.php?title=DocShell:IRC_Logs&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;DocShell:IRC Logs (page does not exist)&quot;&gt;DocShell:IRC Logs&lt;/a&gt; to &lt;a href=&quot;/DocShell/IRC_Logs&quot; title=&quot;DocShell/IRC Logs&quot;&gt;DocShell/IRC Logs&lt;/a&gt; without leaving a redirect&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 01:41, 12 May 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>GPHemsley</name></author>
	</entry>
	<entry>
		<id>https://wiki.mozilla.org/index.php?title=DocShell/IRC_Logs&amp;diff=19553&amp;oldid=prev</id>
		<title>Rgmnetid: alignment and line-wrapping</title>
		<link rel="alternate" type="text/html" href="https://wiki.mozilla.org/index.php?title=DocShell/IRC_Logs&amp;diff=19553&amp;oldid=prev"/>
		<updated>2004-12-07T06:42:37Z</updated>

		<summary type="html">&lt;p&gt;alignment and line-wrapping&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= DocShell IRC Logs =&lt;br /&gt;
&lt;br /&gt;
This page contains some IRC logs of discussions concerning docshell development.&lt;br /&gt;
Some of the mentioned plans have now been implemented.&lt;br /&gt;
&lt;br /&gt;
== DocShell/DocLoader relationship: 2004-09-22 23:07 +0200 ==&lt;br /&gt;
 Sep 22 23:07:35 --&amp;gt;    Sie schreiben nun in #docloader&lt;br /&gt;
 Sep 22 23:08:22 --&amp;gt;    bz (~bzbarsky@adsl-68-77-24-238.dsl.emhril.ameritech.net) hat #docloader&lt;br /&gt;
                 betreten&lt;br /&gt;
 Sep 22 23:08:23 &amp;lt;bz&amp;gt;    ok&lt;br /&gt;
 Sep 22 23:08:29 &amp;lt;darin&amp;gt; what are the major issues we need to deal with?  or can we just punt since&lt;br /&gt;
                         this is like not a public interface?&lt;br /&gt;
 Sep 22 23:08:39 &amp;lt;bz&amp;gt;    Like I said, I may need to go soon&lt;br /&gt;
 Sep 22 23:08:43 &amp;lt;darin&amp;gt; is it not enough to just widdle away the interface over time?&lt;br /&gt;
 Sep 22 23:08:44 &amp;lt;bz&amp;gt;    but I&amp;#039;m not sure when, so... ;)&lt;br /&gt;
 Sep 22 23:08:50 &amp;lt;biesi&amp;gt; so firstly...&lt;br /&gt;
 Sep 22 23:08:50 &amp;lt;darin&amp;gt; ok.. no problem&lt;br /&gt;
 Sep 22 23:08:55 &amp;lt;biesi&amp;gt; why can&amp;#039;t docshell send this progress stuff?&lt;br /&gt;
 Sep 22 23:08:58 &amp;lt;darin&amp;gt; just wanted to hear the ideas that you guys have&lt;br /&gt;
 Sep 22 23:09:00 &amp;lt;bz&amp;gt;    that was my question.  ;)&lt;br /&gt;
 Sep 22 23:09:06 &amp;lt;bz&amp;gt;    that is, biesi&amp;#039;s question.&lt;br /&gt;
 Sep 22 23:09:19 &amp;lt;darin&amp;gt; so.. why isn&amp;#039;t the docloader the docshell?&lt;br /&gt;
 Sep 22 23:09:27 &amp;lt;bz&amp;gt;    Hesitant as I am to pile more crap on docshell&lt;br /&gt;
 Sep 22 23:09:40 &amp;lt;darin&amp;gt; well.. there&amp;#039;s all the documentopeninfo stuff..&lt;br /&gt;
 Sep 22 23:09:41 &amp;lt;bz&amp;gt;    What we have now are two isomorphic trees that can&amp;#039;t exist without each other&lt;br /&gt;
 Sep 22 23:09:49 &amp;lt;biesi&amp;gt; documentopeninfo is unrelated to docloader, isn&amp;#039;t it?&lt;br /&gt;
 Sep 22 23:09:54 &amp;lt;darin&amp;gt; right right&lt;br /&gt;
 Sep 22 23:09:58 * darin got confused for a minute&lt;br /&gt;
 Sep 22 23:10:34 &amp;lt;darin&amp;gt; docshell is the nsIInterfaceRequestor, so he can be the nsIProgressEventSink&lt;br /&gt;
                         and the nsISecurityEventSink&lt;br /&gt;
 Sep 22 23:10:38 &amp;lt;bz&amp;gt;    Also note that nsIDocumentLoaderFactory has nothing to do with this&lt;br /&gt;
 Sep 22 23:10:45 &amp;lt;darin&amp;gt; right&lt;br /&gt;
 Sep 22 23:10:47 &amp;lt;bz&amp;gt;    in spite of name.&lt;br /&gt;
 Sep 22 23:10:49 &amp;lt;bz&amp;gt;    ok.&lt;br /&gt;
 Sep 22 23:11:00 &amp;lt;darin&amp;gt; is it correct for docshell to also be a nsIWebProgress?&lt;br /&gt;
 Sep 22 23:11:01 &amp;lt;bz&amp;gt;    So is my claim that docshell always has a docloader correct?&lt;br /&gt;
 Sep 22 23:11:11 &amp;lt;darin&amp;gt; it would seem to be true&lt;br /&gt;
 Sep 22 23:11:18 &amp;lt;darin&amp;gt; i wonder about the webprogress parent child relationship&lt;br /&gt;
 Sep 22 23:11:24 &amp;lt;darin&amp;gt; does it correspond 1-1 to docshell tree&lt;br /&gt;
 Sep 22 23:11:50 &amp;lt;bz&amp;gt;    you mean docloader?&lt;br /&gt;
 Sep 22 23:12:00 &amp;lt;bz&amp;gt;    nsIWebProgress has no such relationships&lt;br /&gt;
 Sep 22 23:12:08 &amp;lt;darin&amp;gt; right&lt;br /&gt;
 Sep 22 23:12:17 &amp;lt;darin&amp;gt; well... actually&lt;br /&gt;
 Sep 22 23:12:18 &amp;lt;biesi&amp;gt; well, there&amp;#039;s also the docloader service&lt;br /&gt;
 Sep 22 23:12:25 &amp;lt;biesi&amp;gt; which is, I think, parent of all other docloaders&lt;br /&gt;
 Sep 22 23:12:29 &amp;lt;bz&amp;gt;    right.&lt;br /&gt;
 Sep 22 23:12:31 &amp;lt;biesi&amp;gt; so the trees are not quite isomorphic&lt;br /&gt;
 Sep 22 23:12:36 &amp;lt;darin&amp;gt; nsIWebProgressListener and nsIWebProgress implies a nsIWebProgress tree&lt;br /&gt;
 Sep 22 23:12:46 &amp;lt;bz&amp;gt;    The question is whether anyone but URILoader uses the service&lt;br /&gt;
 Sep 22 23:13:07 &amp;lt;darin&amp;gt; the docloader service is used to attach a nsIWebProgressListener to observe&lt;br /&gt;
                         all events in the system&lt;br /&gt;
 Sep 22 23:13:18 &amp;lt;darin&amp;gt; there&amp;#039;s plenty of code that depends on that&lt;br /&gt;
 Sep 22 23:13:41 &amp;lt;biesi&amp;gt; yeah. but that&amp;#039;s via nsIWebProgress&lt;br /&gt;
 Sep 22 23:13:47 &amp;lt;darin&amp;gt; true&lt;br /&gt;
 Sep 22 23:14:09 &amp;lt;darin&amp;gt; so assuming we aren&amp;#039;t rocking the world too badly, then there will need to&lt;br /&gt;
                         be a root nsIWebProgress impl&lt;br /&gt;
 Sep 22 23:14:10 &amp;lt;bz&amp;gt;    http://lxr.mozilla.org/seamonkey/ident?i=NS_DOCUMENTLOADER_SERVICE_CONTRACTID&lt;br /&gt;
 Sep 22 23:14:15 &amp;lt;bz&amp;gt;    OK, we have some people relying on that...&lt;br /&gt;
 Sep 22 23:14:25 &amp;lt;biesi&amp;gt; er, we aren&amp;#039;t the only ones&lt;br /&gt;
 Sep 22 23:14:44 &amp;lt;darin&amp;gt; i think the ClassID is used in some places too&lt;br /&gt;
 Sep 22 23:14:51 &amp;lt;darin&amp;gt; right, extensions!&lt;br /&gt;
 Sep 22 23:15:00 &amp;lt;biesi&amp;gt; the classid? that totally sucks&lt;br /&gt;
 Sep 22 23:15:06 &amp;lt;biesi&amp;gt; arg&lt;br /&gt;
 Sep 22 23:15:12 &amp;lt;bz&amp;gt;    if it&amp;#039;s in our code, we can fix it&lt;br /&gt;
 Sep 22 23:15:18 &amp;lt;bz&amp;gt;    would extensions assume nsIDocumentLoader?&lt;br /&gt;
 Sep 22 23:15:19 &amp;lt;darin&amp;gt; i know of an example in our code&lt;br /&gt;
 Sep 22 23:15:24 &amp;lt;bz&amp;gt;    Or just get it as an nsIWebProgress?&lt;br /&gt;
 Sep 22 23:15:28 &amp;lt;darin&amp;gt; no.. extensions should not need nsIDocumentLoader&lt;br /&gt;
 Sep 22 23:15:32 &amp;lt;biesi&amp;gt; they would likely want webprogress&lt;br /&gt;
 Sep 22 23:15:35 &amp;lt;darin&amp;gt; right&lt;br /&gt;
 Sep 22 23:15:38 * bz _hopes_ extensions would not need the class id&lt;br /&gt;
 Sep 22 23:15:39 &amp;lt;biesi&amp;gt; since they just want to register as listener&lt;br /&gt;
 Sep 22 23:15:41 &amp;lt;bz&amp;gt;    so we can have a real service&lt;br /&gt;
 Sep 22 23:15:58 &amp;lt;darin&amp;gt; let&amp;#039;s assume that we can kill the ClassID&lt;br /&gt;
 Sep 22 23:16:01 &amp;lt;bz&amp;gt;    that  &amp;quot;root&amp;quot; docloaders (aka docshells) register with&lt;br /&gt;
 Sep 22 23:16:03 &amp;lt;bz&amp;gt;    if desired&lt;br /&gt;
 Sep 22 23:16:15 &amp;lt;biesi&amp;gt; does it need a list of children?&lt;br /&gt;
 Sep 22 23:16:48 &amp;lt;bz&amp;gt;    makes total progress stuff work, no?&lt;br /&gt;
 Sep 22 23:16:51 &amp;lt;bz&amp;gt;    Otherwise, how to do it?&lt;br /&gt;
 Sep 22 23:17:08 &amp;lt;darin&amp;gt; nsIDocumentLoader::Stop trickles down to the children&lt;br /&gt;
 Sep 22 23:17:28 &amp;lt;biesi&amp;gt; Stop can likely be killed&lt;br /&gt;
 Sep 22 23:17:29 &amp;lt;bz&amp;gt;    whereas webnavigation::stop does not?&lt;br /&gt;
 Sep 22 23:17:30 &amp;lt;biesi&amp;gt; use the loadgroup&lt;br /&gt;
 Sep 22 23:17:33 &amp;lt;darin&amp;gt; IsBusy also depends on the childlist chain&lt;br /&gt;
 Sep 22 23:17:38 &amp;lt;darin&amp;gt; right&lt;br /&gt;
 Sep 22 23:17:39 &amp;lt;biesi&amp;gt; same for isbusy&lt;br /&gt;
 Sep 22 23:17:49 &amp;lt;darin&amp;gt; wait.. there is one loadgroup for each webprogress right?&lt;br /&gt;
 Sep 22 23:17:51 &amp;lt;bz&amp;gt;    isbusy is dead once that patch gets darin&amp;#039;s sr&lt;br /&gt;
 Sep 22 23:17:55 &amp;lt;biesi&amp;gt; hmm, maxtotalprogress can be an issue...&lt;br /&gt;
 Sep 22 23:17:55 &amp;lt;darin&amp;gt; ok&lt;br /&gt;
 Sep 22 23:18:00 &amp;lt;bz&amp;gt;    darin: there&amp;#039;s one loadgroup per docloader, yes.&lt;br /&gt;
 Sep 22 23:18:06 &amp;lt;biesi&amp;gt; ah, yeah...&lt;br /&gt;
 Sep 22 23:18:13 &amp;lt;bz&amp;gt;    darin: with the loadgroups in a tree too, which is fine.&lt;br /&gt;
 Sep 22 23:18:15 &amp;lt;darin&amp;gt; so you&amp;#039;d have to have a tree of loadgroups&lt;br /&gt;
 Sep 22 23:18:15 &amp;lt;biesi&amp;gt; are the child loadgroups elements of the parent loadgroup?&lt;br /&gt;
 Sep 22 23:18:22 &amp;lt;bz&amp;gt;    darin: you already do, no?&lt;br /&gt;
 Sep 22 23:18:23 &amp;lt;darin&amp;gt; no, but they could be&lt;br /&gt;
 Sep 22 23:18:28 &amp;lt;bz&amp;gt;    oh, they&amp;#039;re not?&lt;br /&gt;
 Sep 22 23:18:33 &amp;lt;darin&amp;gt; i don&amp;#039;t think so&lt;br /&gt;
 Sep 22 23:18:33 &amp;lt;biesi&amp;gt; so then a cancel() on the top could kill all loads&lt;br /&gt;
 Sep 22 23:18:37 &amp;lt;darin&amp;gt; right&lt;br /&gt;
 Sep 22 23:18:38 * bz sorta assumed that would be the simple way to implement a lot of this stuff.&lt;br /&gt;
 Sep 22 23:18:57 &amp;lt;darin&amp;gt; when i made nsILoadGroup inherit from nsIRequest, that was something in the&lt;br /&gt;
                         back of my mind&lt;br /&gt;
 Sep 22 23:19:04 &amp;lt;darin&amp;gt; i don&amp;#039;t think it ever got implemented though&lt;br /&gt;
 Sep 22 23:19:12 &amp;lt;darin&amp;gt; because we have docloader::stop walk the childlist&lt;br /&gt;
 Sep 22 23:19:23 &amp;lt;darin&amp;gt; which calls cancel on each loadgorup&lt;br /&gt;
 Sep 22 23:19:30 &amp;lt;bz&amp;gt;    Right.&lt;br /&gt;
 Sep 22 23:19:33 &amp;lt;darin&amp;gt; we could get rid of that if the loadgroups were in a common loadgroup&lt;br /&gt;
 Sep 22 23:19:36 &amp;lt;bz&amp;gt;    So maybe that should be the first step?&lt;br /&gt;
 Sep 22 23:19:51 &amp;lt;bz&amp;gt;    put loadgroups in the parents, modify docloader to not do the child walk in&lt;br /&gt;
                         stop?&lt;br /&gt;
 Sep 22 23:20:00 &amp;lt;bz&amp;gt;    This is if we want to do incremental betterment here.&lt;br /&gt;
 Sep 22 23:20:09 &amp;lt;bz&amp;gt;    I think this change is a good one no matter what else we do with docloader.&lt;br /&gt;
 Sep 22 23:20:12 &amp;lt;biesi&amp;gt; well, if 0th step is check my patch in ;)&lt;br /&gt;
 Sep 22 23:20:31 &amp;lt;biesi&amp;gt; yeah, that first step sounds like a good idea&lt;br /&gt;
 Sep 22 23:20:40 &amp;lt;bz&amp;gt;    biesi: get darin to sr.  ;)&lt;br /&gt;
 Sep 22 23:20:45 &amp;lt;biesi&amp;gt; you r&amp;#039;d?&lt;br /&gt;
 Sep 22 23:20:47 &amp;lt;bz&amp;gt;    yep&lt;br /&gt;
 Sep 22 23:20:54 &amp;lt;bz&amp;gt;    back when I first pinged you in Mozilla&lt;br /&gt;
 Sep 22 23:20:58 &amp;lt;biesi&amp;gt; ohh :)&lt;br /&gt;
 Sep 22 23:21:25 * biesi looks at the darin: superreview+ in the bug&lt;br /&gt;
 Sep 22 23:21:31 &amp;lt;darin&amp;gt; i will sr&lt;br /&gt;
 Sep 22 23:21:48 &amp;lt;biesi&amp;gt; it looks like you did already&lt;br /&gt;
 Sep 22 23:21:52 &amp;lt;darin&amp;gt; haven&amp;#039;t had a chance to read bugmail yet today :(&lt;br /&gt;
 Sep 22 23:21:53 &amp;lt;biesi&amp;gt; but feel free to re-sr :)&lt;br /&gt;
 Sep 22 23:22:02 &amp;lt;darin&amp;gt; oh.. hmm.&lt;br /&gt;
 Sep 22 23:22:18 &amp;lt;biesi&amp;gt; (long ago, on v1 of the patch)&lt;br /&gt;
 Sep 22 23:22:22 &amp;lt;darin&amp;gt; oh, right&lt;br /&gt;
 Sep 22 23:22:25 &amp;lt;darin&amp;gt; which bug is this?&lt;br /&gt;
 Sep 22 23:22:30 &amp;lt;biesi&amp;gt; https://bugzilla.mozilla.org/show_bug.cgi?id=234257&lt;br /&gt;
 Sep 22 23:22:37 * biesi goes to figure out if he promised any changes to bz&lt;br /&gt;
 Sep 22 23:22:43 &amp;lt;bz&amp;gt;    not that I recall.&lt;br /&gt;
 Sep 22 23:22:59 &amp;lt;bz&amp;gt;    So there is the question of what our goal is&lt;br /&gt;
 Sep 22 23:23:10 &amp;lt;bz&amp;gt;    I think we&amp;#039;re aiming to reduce the number of interfaces floating about&lt;br /&gt;
 Sep 22 23:23:18 &amp;lt;bz&amp;gt;    and reduce the number of &amp;quot;global&amp;quot; objects involved.&lt;br /&gt;
 Sep 22 23:23:33 &amp;lt;bz&amp;gt;    Esp. since that makes ref-cycle-avoidance easier.&lt;br /&gt;
 Sep 22 23:23:38 &amp;lt;biesi&amp;gt; yeah&lt;br /&gt;
 Sep 22 23:24:12 &amp;lt;bz&amp;gt;    So possible impl plan right now is:&lt;br /&gt;
 Sep 22 23:24:20 &amp;lt;bz&amp;gt;    1)  Move docloader methods into docshell&lt;br /&gt;
 Sep 22 23:24:48 &amp;lt;bz&amp;gt;    2)  Make the &amp;quot;docloader service&amp;quot; (with same contractid?) a real service&lt;br /&gt;
                         that root docshells register with and report progress to&lt;br /&gt;
 Sep 22 23:25:00 &amp;lt;bz&amp;gt;    and make it implement nsIWebProgress.&lt;br /&gt;
 Sep 22 23:25:22 &amp;lt;bz&amp;gt;    This service is the one thing that makes me not so happy about this... :(&lt;br /&gt;
 Sep 22 23:25:25 &amp;lt;biesi&amp;gt; I think you don&amp;#039;t need the &amp;quot;register with&amp;quot; part&lt;br /&gt;
 Sep 22 23:25:39 &amp;lt;bz&amp;gt;    oh, because no need to know about kids?&lt;br /&gt;
 Sep 22 23:25:44 &amp;lt;biesi&amp;gt; oh wait&lt;br /&gt;
 Sep 22 23:25:50 &amp;lt;biesi&amp;gt; there&amp;#039;s still the maxtotalprogress issue&lt;br /&gt;
 Sep 22 23:28:02 &amp;lt;biesi&amp;gt; currently, nsdocloader asks the children by calling an nsDocLoaderImpl fcn on&lt;br /&gt;
                         them...&lt;br /&gt;
 Sep 22 23:28:11 &amp;lt;bz&amp;gt;    yeah&lt;br /&gt;
 Sep 22 23:28:34 &amp;lt;bz&amp;gt;    But all that does is add up mMaxSelfProgress over them all&lt;br /&gt;
 Sep 22 23:29:14 &amp;lt;biesi&amp;gt; but if you distribute that over two classes (docshell + the service) that&amp;#039;s&lt;br /&gt;
                         not so easy&lt;br /&gt;
 Sep 22 23:29:36 &amp;lt;bz&amp;gt;    well, can&amp;#039;t you keep a running total of mMaxSelfProgress&amp;#039;s over all kids?&lt;br /&gt;
 Sep 22 23:29:44 &amp;lt;bz&amp;gt;    Based on past OnProgress() notifications?&lt;br /&gt;
 Sep 22 23:29:54 * bz agrees that this is the one hard part&lt;br /&gt;
 Sep 22 23:30:06 &amp;lt;biesi&amp;gt; hmm&lt;br /&gt;
 Sep 22 23:30:32 &amp;lt;biesi&amp;gt; that&amp;#039;s an interesting idea...&lt;br /&gt;
 Sep 22 23:35:29 &amp;lt;biesi&amp;gt; so each docshell keeps an (weak?) nsIWebProgressListener* mParent pointer,&lt;br /&gt;
                         and the toplevel docshells have one to the service&lt;br /&gt;
 Sep 22 23:36:28 &amp;lt;biesi&amp;gt; hmm, do chrome docshells currently report progress? would it improve&lt;br /&gt;
                         Tp/Txul not to?&lt;br /&gt;
 Sep 22 23:36:57 &amp;lt;bz&amp;gt;    docshells could just not have this pointer at all.&lt;br /&gt;
 Sep 22 23:37:05 * darin catches up with the backlog&lt;br /&gt;
 Sep 22 23:37:06 &amp;lt;bz&amp;gt;    and QI mParent as needed, and if mParent is null getService&lt;br /&gt;
 Sep 22 23:37:52 &amp;lt;biesi&amp;gt; I liked the thought of avoiding that checks, but sure, that works&lt;br /&gt;
 Sep 22 23:38:02 &amp;lt;biesi&amp;gt; but be careful, progress is reported a lot&lt;br /&gt;
 Sep 22 23:38:07 &amp;lt;biesi&amp;gt; during pageload&lt;br /&gt;
 Sep 22 23:38:15 &amp;lt;bz&amp;gt;    hmmm...&lt;br /&gt;
 Sep 22 23:38:44 &amp;lt;bz&amp;gt;    one sec&lt;br /&gt;
 Sep 22 23:38:46 &amp;lt;bz&amp;gt;    reading code&lt;br /&gt;
 Sep 22 23:38:46 &amp;lt;darin&amp;gt;        so who&amp;#039;s going to be cutting these patches? ;-)&lt;br /&gt;
 Sep 22 23:39:26 &amp;lt;bz&amp;gt;    http://lxr.mozilla.org/seamonkey/source/docshell/base/nsDocShell.h#432&lt;br /&gt;
 Sep 22 23:39:33 &amp;lt;bz&amp;gt;    432     nsIDocShellTreeItem *      mParent;  // Weak Reference&lt;br /&gt;
 Sep 22 23:39:48 &amp;lt;bz&amp;gt;    There&amp;#039;s no reason that can&amp;#039;t be a nsDocShell*&lt;br /&gt;
 Sep 22 23:39:55 &amp;lt;bz&amp;gt;    and then if mParent is non-null, we just call it.&lt;br /&gt;
 Sep 22 23:40:08 &amp;lt;bz&amp;gt;    if it&amp;#039;s null, we have a class static (cleaned up on shutdown) pointing to&lt;br /&gt;
                         the service&lt;br /&gt;
 Sep 22 23:40:12 &amp;lt;bz&amp;gt;    fast, and all&lt;br /&gt;
 Sep 22 23:40:21 &amp;lt;bz&amp;gt;    darin: well, that&amp;#039;s a good question.&lt;br /&gt;
 Sep 22 23:40:27 &amp;lt;bz&amp;gt;    darin: biesi or I, sounds like... ;)&lt;br /&gt;
 Sep 22 23:40:38 &amp;lt;bz&amp;gt;    darin: assuming we come to an agreement about general direction&lt;br /&gt;
 Sep 22 23:40:55 &amp;lt;biesi&amp;gt; bz, that&amp;#039;d work&lt;br /&gt;
 Sep 22 23:41:46 &amp;lt;biesi&amp;gt; so docshell would be an iwebprogresslistener an iprogresseventsink?&lt;br /&gt;
 Sep 22 23:42:51 &amp;lt;biesi&amp;gt; er, _and_ an iprogresseventsink&lt;br /&gt;
 Sep 22 23:44:12 &amp;lt;darin&amp;gt; biesi: so, why does your patch need that call to SetLoadGroup?&lt;br /&gt;
 Sep 22 23:44:21 * darin doesn&amp;#039;t see a SetLoadGroup being removed&lt;br /&gt;
 Sep 22 23:44:47 &amp;lt;biesi&amp;gt; the removed setloadgroup was part of NS_NewChannel, looks like&lt;br /&gt;
 Sep 22 23:44:52 &amp;lt;darin&amp;gt; oh.. ok&lt;br /&gt;
 Sep 22 23:47:42 &amp;lt;darin&amp;gt; sr marked in the bug&lt;br /&gt;
 Sep 22 23:47:53 * biesi notices something...&lt;br /&gt;
 Sep 22 23:48:03 &amp;lt;biesi&amp;gt; is it possible that it&amp;#039;s not actually the docloader that&amp;#039;s set as&lt;br /&gt;
                         notificationcallback?&lt;br /&gt;
 Sep 22 23:52:59 &amp;lt;darin&amp;gt; it is the docshell, no?&lt;br /&gt;
 Sep 22 23:53:15 &amp;lt;darin&amp;gt; line 4552 of nsDocShell.cpp&lt;br /&gt;
 Sep 22 23:53:38 &amp;lt;darin&amp;gt; oh, hmm.. that&amp;#039;s interesting&lt;br /&gt;
 Sep 22 23:53:42 &amp;lt;darin&amp;gt; maybe a bug even&lt;br /&gt;
 Sep 22 23:53:53 &amp;lt;darin&amp;gt; in the other place we set an InterfaceRequestorProxy as the notification&lt;br /&gt;
                         callbacks&lt;br /&gt;
 Sep 22 23:54:05 &amp;lt;darin&amp;gt; oh, but that&amp;#039;s for the loadgroup&lt;br /&gt;
 Sep 22 23:55:11 &amp;lt;biesi&amp;gt;        http://lxr.mozilla.org/seamonkey/source/docshell/base/nsDocShell.cpp#5485&lt;br /&gt;
 Sep 22 23:55:24 &amp;lt;biesi&amp;gt; is that a good idea?&lt;br /&gt;
 Sep 22 23:55:57 &amp;lt;biesi&amp;gt; it means each caller of nsIURILoader::Open has to forward progresseventsink&lt;br /&gt;
                         requests to the docloader&lt;br /&gt;
 Sep 22 23:56:06 &amp;lt;biesi&amp;gt; assuming he wants stuff to behave correctly&lt;br /&gt;
 Sep 22 23:56:50 &amp;lt;darin&amp;gt; right&lt;br /&gt;
 Sep 22 23:56:53 &amp;lt;darin&amp;gt; it&amp;#039;s not ideal really&lt;br /&gt;
 Sep 22 23:57:02 &amp;lt;darin&amp;gt; oh wait&lt;br /&gt;
 Sep 22 23:57:31 &amp;lt;darin&amp;gt; nsDocShell::GetInterface returns the docloader for nsIProgressEventSink, no?&lt;br /&gt;
 Sep 22 23:57:42 &amp;lt;biesi&amp;gt; yes, docshell does&lt;br /&gt;
 Sep 22 23:58:07 &amp;lt;biesi&amp;gt; what about the others?&lt;br /&gt;
 Sep 22 23:58:17 &amp;lt;darin&amp;gt; are there other callers of nsIURILoader::open ?&lt;br /&gt;
 Sep 22 23:58:27 &amp;lt;biesi&amp;gt; yeah&lt;br /&gt;
 Sep 22 23:58:35 &amp;lt;biesi&amp;gt; xremote, some mailnews stuff&lt;br /&gt;
 Sep 22 23:58:56 &amp;lt;darin&amp;gt; oh yeah.. true&lt;br /&gt;
 Sep 22 23:59:00 * darin lxr&amp;#039;s and finds lots&lt;br /&gt;
 Sep 23 00:00:09 &amp;lt;darin&amp;gt; hmm.. actually not that many&lt;br /&gt;
 Sep 23 00:00:18 &amp;lt;darin&amp;gt; most references to nsIURILoader are for registering content listeners&lt;br /&gt;
 Sep 23 00:00:26 &amp;lt;darin&amp;gt; but yeah.. xremote and nsURLFetcher (what is that for?)&lt;br /&gt;
 Sep 23 00:01:01 * bz has to go&lt;br /&gt;
 Sep 23 00:01:05 * biesi has no idea what urlfetcher does&lt;br /&gt;
 Sep 23 00:01:07 &amp;lt;bz&amp;gt;    email me the log, please?&lt;br /&gt;
 Sep 23 00:01:16 &amp;lt;biesi&amp;gt; the rest of it, or all?&lt;br /&gt;
 Sep 23 00:07:25 &amp;lt;biesi&amp;gt; darin, so what do you think about setting the docloader as&lt;br /&gt;
                         notificationcallbacks?&lt;br /&gt;
 Sep 23 00:08:05 &amp;lt;darin&amp;gt; setting the docloader to be the notification callbacks for the channel?&lt;br /&gt;
 Sep 23 00:08:09 &amp;lt;biesi&amp;gt; yes&lt;br /&gt;
 Sep 23 00:08:14 &amp;lt;darin&amp;gt; (because it is already the notification callbacks for the loadgroup)&lt;br /&gt;
 Sep 23 00:08:26 &amp;lt;biesi&amp;gt; oh&lt;br /&gt;
 Sep 23 00:08:36 &amp;lt;darin&amp;gt; but we use the notification callbacks to get to the docshell&lt;br /&gt;
 Sep 23 00:08:36 &amp;lt;biesi&amp;gt; hmm, then that may not be needed&lt;br /&gt;
 Sep 23 00:08:39 &amp;lt;darin&amp;gt; see nsCookiePermission.cpp&lt;br /&gt;
 Sep 23 00:08:53 &amp;lt;darin&amp;gt; can we just make the docshell skip nsIProgressEventSink ? ;-)&lt;br /&gt;
 Sep 23 00:08:55 &amp;lt;darin&amp;gt; etc.&lt;br /&gt;
 Sep 23 00:08:59 &amp;lt;biesi&amp;gt; that sounds like a good idea&lt;br /&gt;
 Sep 23 00:09:12 &amp;lt;biesi&amp;gt; because the code it has for that is somewhat sucky :)&lt;br /&gt;
 Sep 23 00:09:18 &amp;lt;darin&amp;gt; so long as all of the channels do the right thing ;-)&lt;br /&gt;
 Sep 23 00:09:52 &amp;lt;biesi&amp;gt; they better! :)&lt;br /&gt;
 Sep 23 00:09:55 &amp;lt;darin&amp;gt; we should probably write a common routine (stick it in nsNetUtil.h) for&lt;br /&gt;
                         querying notification callbacks on a channel&lt;br /&gt;
 Sep 23 00:10:10 &amp;lt;biesi&amp;gt; yeah&lt;br /&gt;
 Sep 23 00:10:17 &amp;lt;darin&amp;gt; they don&amp;#039;t&lt;br /&gt;
 Sep 23 00:10:23 * darin points to nsFileChannel.cpp&lt;br /&gt;
 Sep 23 00:10:27 &amp;lt;biesi&amp;gt; eww&lt;br /&gt;
 Sep 23 00:10:33 &amp;lt;darin&amp;gt; so.. we&amp;#039;d need to patch that ;-)&lt;br /&gt;
 Sep 23 00:10:41 &amp;lt;biesi&amp;gt; then there&amp;#039;s externalprotocolchannel (sp) which I filed a bug about...&lt;br /&gt;
 Sep 23 00:10:46 * darin blames himself for not being strict about that&lt;br /&gt;
 Sep 23 00:12:38 &amp;lt;biesi&amp;gt; hmm, ftpchannel too, if I&amp;#039;m interpreting grep correctly...&lt;br /&gt;
 Sep 23 00:13:47 &amp;lt;biesi&amp;gt; !!! not even HTTP gets it right&lt;br /&gt;
 Sep 23 00:13:53 &amp;lt;biesi&amp;gt; nsHttpChannel::SetNotificationCallbacks(nsIInterfaceRequestor *callbacks)&lt;br /&gt;
 Sep 23 00:13:53 &amp;lt;biesi&amp;gt; {&lt;br /&gt;
 Sep 23 00:13:53 &amp;lt;biesi&amp;gt;     mCallbacks = callbacks;&lt;br /&gt;
 Sep 23 00:13:53 &amp;lt;biesi&amp;gt;&lt;br /&gt;
 Sep 23 00:13:53 &amp;lt;biesi&amp;gt;     mHttpEventSink = do_GetInterface(mCallbacks);&lt;br /&gt;
 Sep 23 00:13:53 &amp;lt;biesi&amp;gt;     mProgressSink = do_GetInterface(mCallbacks);&lt;br /&gt;
 Sep 23 00:14:23 &amp;lt;darin&amp;gt; yikes&lt;br /&gt;
 Sep 23 00:14:40 &amp;lt;darin&amp;gt; http gets it right only for nsIPrompt, nsIAuthPrompt,&lt;br /&gt;
                         nsIAuthPromptProvider, etc.&lt;br /&gt;
 Sep 23 00:14:48 &amp;lt;darin&amp;gt; ugh.. i suck :(&lt;br /&gt;
 Sep 23 00:15:00 * darin files a bu&lt;br /&gt;
 Sep 23 00:15:01 &amp;lt;darin&amp;gt; bug&lt;br /&gt;
 Sep 23 00:16:07 &amp;lt;biesi&amp;gt; yeah, http is the &amp;quot;best&amp;quot; of the channels at this ;)&lt;br /&gt;
 Sep 23 00:16:22 &amp;lt;biesi&amp;gt; the rest totally suck&lt;br /&gt;
 Sep 23 00:17:47 &amp;lt;darin&amp;gt; https://bugzilla.mozilla.org/show_bug.cgi?id=261083&lt;br /&gt;
 Sep 23 00:18:16 &amp;lt;biesi&amp;gt; good&lt;br /&gt;
 Sep 23 00:19:03 * biesi goes to reassign his review comments bug to him, because it looks like it&lt;br /&gt;
                 won&amp;#039;t get fixed otherwise...&lt;br /&gt;
 Sep 23 00:20:15 &amp;lt;darin&amp;gt; to me?&lt;br /&gt;
 Sep 23 00:20:26 &amp;lt;biesi&amp;gt; no, to me&lt;br /&gt;
 Sep 23 00:20:31 &amp;lt;biesi&amp;gt; unless you want it :)&lt;br /&gt;
 Sep 23 00:20:58 &amp;lt;darin&amp;gt; you can have it :)&lt;br /&gt;
 Sep 23 00:21:22 &amp;lt;biesi&amp;gt; thought so :)&lt;br /&gt;
 Sep 23 00:23:58 &amp;lt;biesi&amp;gt; hmm, extensions/datetime and finger get it wrong too&lt;br /&gt;
 Sep 23 00:24:06 * biesi wonders about mailnews&lt;br /&gt;
 Sep 23 00:25:22 &amp;lt;biesi&amp;gt; well, hardly surprising, it does too&lt;br /&gt;
 Sep 23 00:25:35 &amp;lt;darin&amp;gt; ;-)&lt;br /&gt;
 Sep 23 00:26:25 * darin starts cutting a patch&lt;br /&gt;
 Sep 23 00:32:00 * biesi goes to file bugs to remove progresseventsink from docshell::Getinterface,&lt;br /&gt;
                 and to put loadgroups into parent loadgroups&lt;br /&gt;
 Sep 23 00:33:02 &amp;lt;darin&amp;gt; ok&lt;br /&gt;
 Sep 23 00:54:44 &amp;lt;darin&amp;gt; there are some issues with making this change to always query the loadgroup&lt;br /&gt;
 Sep 23 00:55:02 &amp;lt;darin&amp;gt; whereas today we would query the notification callbacks when they are set,&lt;br /&gt;
                         we cannot do that now... b/c the loadgroup may not be set&lt;br /&gt;
 Sep 23 00:55:10 &amp;lt;darin&amp;gt; we need to defer all of that until AsyncOpen / Open gets called&lt;br /&gt;
 Sep 23 00:55:55 &amp;lt;biesi&amp;gt; hm?&lt;br /&gt;
 Sep 23 00:56:00 &amp;lt;biesi&amp;gt; oh, true :/&lt;br /&gt;
 Sep 23 00:56:36 &amp;lt;darin&amp;gt; yeah.. not a problem really&lt;br /&gt;
 Sep 23 00:56:58 &amp;lt;darin&amp;gt; i&amp;#039;ll just add code to the top of AsyncOpen (and in some cases Open) that&lt;br /&gt;
                         configures things like mProgressSink, etc.&lt;br /&gt;
 Sep 23 00:57:05 &amp;lt;biesi&amp;gt; ah, yeah, true&lt;br /&gt;
 Sep 23 00:57:52 * darin notices that he&amp;#039;s practically eliminating all calls to do_GetInterface from&lt;br /&gt;
                 necko&lt;br /&gt;
 Sep 23 01:04:33 &amp;lt;darin&amp;gt; man ftp is a mess&lt;br /&gt;
 Sep 23 01:05:06 * darin decides to get rid of all the useless mutex locking in ftp as well&lt;br /&gt;
 Sep 23 01:23:20 &amp;lt;--    bz hat sich getrennt (Ping timeout: 378 seconds)&lt;br /&gt;
&lt;br /&gt;
== Concrete plans: 2004-10-18 18:10 -0600 ==&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;bz&amp;gt; biesi: I had a scary thought just now..&lt;br /&gt;
 * biesi checks whether this container is indeed the docshell&lt;br /&gt;
 &amp;lt;bz&amp;gt;    biesi: What we _really_ want is for every docshell to be a docloader,&lt;br /&gt;
 right?&lt;br /&gt;
 &amp;lt;bz&amp;gt;    biesi: but not all docloaders will be docshells?&lt;br /&gt;
 &amp;lt;biesi&amp;gt; bz, only one docloader won&amp;#039;t be a docshell, right?&lt;br /&gt;
 &amp;lt;bz&amp;gt;    biesi: right&lt;br /&gt;
 &amp;lt;bz&amp;gt;    biesi: the point is, perhaps docshell should just inherit from&lt;br /&gt;
 docloader...&lt;br /&gt;
 &amp;lt;bz&amp;gt;    biesi: and you can get back and forth with getinterface as needed&lt;br /&gt;
 &amp;lt;bz&amp;gt;    biesi: that is, CallGetI to get from docloader to docshell&lt;br /&gt;
 &amp;lt;bz&amp;gt;    biesi: nothing needed in the other direction&lt;br /&gt;
 &amp;lt;biesi&amp;gt; bz, like class nsDocShell : public nsDocLoaderImpl?&lt;br /&gt;
 &amp;lt;bz&amp;gt;    biesi yes&lt;br /&gt;
 &amp;lt;bz&amp;gt;    biesi: with fixes to QI appropriately and all that&lt;br /&gt;
 &amp;lt;biesi&amp;gt; that&amp;#039;s an interesting idea&lt;br /&gt;
 &amp;lt;biesi&amp;gt; dso-wise it works&lt;br /&gt;
 &amp;lt;bz&amp;gt;    biesi: right&lt;br /&gt;
 &amp;lt;biesi&amp;gt; bz, that may be the best solution&lt;/div&gt;</summary>
		<author><name>Rgmnetid</name></author>
	</entry>
</feed>