Re: [chromium-dev] How can I tell if a Renderer process finishes loading a page

2010-01-11 Thread Brett Wilson
On Mon, Jan 11, 2010 at 12:59 AM, hap 497  wrote:
> Thank you.
>
> But when I load www.cnn.com, I see something strange:
> First the throbber is spinning, and then the cnn fave icon is shown
> and then the throbber is spinning again, and then fave icon is shown.
> And then the fave icon stays.
>
> Can you please help me understand under what situation will cause this
> to happen? I don't think it is caused by frame set. This is because I
> tried http://java.sun.com/j2se/1.5.0/docs/api/index.html, the throbber
> stops after each frame in frame set is loaded.

I don't think anybody is able to answer this type of question off the
top of their head.

RenderView::didStartLoading / didStopLoading correspond to the
throbber starting and stopping in the renderer, I'd trace back form
there.

Brett
-- 
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev

Re: [chromium-dev] How can I tell if a Renderer process finishes loading a page

2010-01-11 Thread hap 497
Thank you.

But when I load www.cnn.com, I see something strange:
First the throbber is spinning, and then the cnn fave icon is shown
and then the throbber is spinning again, and then fave icon is shown.
And then the fave icon stays.

Can you please help me understand under what situation will cause this
to happen? I don't think it is caused by frame set. This is because I
tried http://java.sun.com/j2se/1.5.0/docs/api/index.html, the throbber
stops after each frame in frame set is loaded.


On Sat, Jan 9, 2010 at 10:11 AM, Peter Kasting  wrote:
> On Sat, Jan 9, 2010 at 12:15 AM, hap 497  wrote:
>>
>> So how does renderer process knows the whole page is loaded completely
>> and tell the browser process to stop the spinning icons and shows the
>> favicon of the page?
>
> Sounds like you should start by looking in the browser for what controls the
> throbber and backtrack from there.  You want the NavigationController class.
> PK
-- 
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev

Re: [chromium-dev] How can I tell if a Renderer process finishes loading a page

2010-01-09 Thread Peter Kasting
On Sat, Jan 9, 2010 at 12:15 AM, hap 497  wrote:

> So how does renderer process knows the whole page is loaded completely
> and tell the browser process to stop the spinning icons and shows the
> favicon of the page?


Sounds like you should start by looking in the browser for what controls the
throbber and backtrack from there.  You want the NavigationController class.

PK
-- 
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev

[chromium-dev] How can I tell if a Renderer process finishes loading a page

2010-01-09 Thread hap 497
In chromium, it has 2 parts: browser process and renderer process?

How does the renderer process know the page is finished loading (all
css/js are loaded, all images, and all frames/iframes are loaded?
I have tried setting up breakpoints in RenderView::didFinishLoad(),
but for a page with frameset of 3 frames (e.g.
http://java.sun.com/j2se/1.5.0/docs/api/index.html) I see
RenderView::didFinishLoad() get called multiple times.

So how does renderer process knows the whole page is loaded completely
and tell the browser process to stop the spinning icons and shows the
favicon of the page?

Thank you.
-- 
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev