Skip to content

Add support for mozbrowserconnected #9382

Closed

Description

@gordonbrander

cc @paulrouget

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).

Activity

  1. added
    A-content/dom
    on Jan 19, 2016
  2. shssoichiro commented on Jan 23, 2016

    @shssoichiro

    I began looking into this. Is MozBrowserLoadProgressChange an 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.progress or similar?

  3. paulrouget commented on Jan 23, 2016

    @paulrouget
    Contributor

    This has been backed out from Gecko. You can find the details here: https://bugzilla.mozilla.org/show_bug.cgi?id=1125713

    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.

  4. gordonbrander commented on Jan 23, 2016

    @gordonbrander
    Author

    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?

  5. paulrouget commented on Jan 25, 2016

    @paulrouget
    Contributor

    My understanding is the browser doesn't know the actual payload size so any percentage must be faked?

    Right.

    So let's go for mozbrowserconnected.

  6. changed the title [-]Add support for MozBrowserLoadProgressChange[/-] [+]Add support for mozbrowserconnected[/+] on Jan 25, 2016
  7. added 2 commits that reference this issue on Feb 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-content/dom

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions