You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Filing this for reference. It's not a high-priority problem for us at the moment, but in order to support an accurate progress bar in Browser.html, we'll need to add the MozBrowserLoadProgressChange event to Servo. This event is part of the MozBrowser API.
Edit: we want to support mozbrowserconnected. See #9382 (comment).
Firing a mozbrowserprogresschange event might be too expensive though.
What we actually want is a new event (mozbrowserconnected?) between mozbrowserloadstart and mozbrowserloadend that tells us when the server has been successfully reached.
Maybe something fired in ScriptThread::load.
@gordonbrander Can you confirm? Or if we really want a mozbrowserprogresschange event, maybe we can find a way to send this information in a more efficient way.
What we actually want is a new event (mozbrowserconnected?) between mozbrowserloadstart and mozbrowserloadend that tells us when the server has been successfully reached.
Maybe something fired in ScriptThread::load.
@paulrouget I think mozbrowserconnected is enough. What info would progress event actually be giving us? My understanding is the browser doesn't know the actual payload size so any percentage must be faked?
Activity
shssoichiro commentedon Jan 23, 2016
I began looking into this. Is
MozBrowserLoadProgressChangean entirely new event in the MozBrowser API? It doesn't appear to be documented.If it is new, I presume there should be a progress percentage accessible via
event.details.progressor similar?paulrouget commentedon Jan 23, 2016
This has been backed out from Gecko. You can find the details here: https://bugzilla.mozilla.org/show_bug.cgi?id=1125713
Firing a
mozbrowserprogresschangeevent might be too expensive though.What we actually want is a new event (
mozbrowserconnected?) betweenmozbrowserloadstartandmozbrowserloadendthat tells us when the server has been successfully reached.Maybe something fired in
ScriptThread::load.@gordonbrander Can you confirm? Or if we really want a
mozbrowserprogresschangeevent, maybe we can find a way to send this information in a more efficient way.gordonbrander commentedon Jan 23, 2016
@paulrouget I think mozbrowserconnected is enough. What info would progress event actually be giving us? My understanding is the browser doesn't know the actual payload size so any percentage must be faked?
paulrouget commentedon Jan 25, 2016
Right.
So let's go for
mozbrowserconnected.[-]Add support for MozBrowserLoadProgressChange[/-][+]Add support for mozbrowserconnected[/+]Auto merge of #9740 - paulrouget:mozbrowserconnected, r=jdm
Auto merge of #9740 - paulrouget:mozbrowserconnected, r=jdm
servo: Merge #9740 - Support Browser API event mozbrowserconnected (f…
servo: Merge #9740 - Support Browser API event mozbrowserconnected (f…
servo: Merge #9740 - Support Browser API event mozbrowserconnected (f…