Skip to content

Browser API: implement iframe.zoom() #8547

Closed

Description

@paulrouget

So I believe the right way to implement that is, from the iframe, send a constellation message with the subpage id, from constellation, get the scrip chan, send a zoom message, and in script_task.rs, handle the zoom message.

Then, I'm not sure when to perform the actual zooming. Should we append an event to the window and handle it ScriptTask::handle_msgs?

If so, could we imagine instead using the resize event (which uses the same path) and add an extra parameter for the zoom value?

/cc @glennw

Activity

  1. added
    A-content/dom
    on Nov 16, 2015
  2. self-assigned this
    on Nov 17, 2015
  3. added
    C-assigned
    on Nov 17, 2015
  4. mbrubeck commented on Nov 17, 2015

    @mbrubeck
    Contributor

    This will also need new code in the compositor to set the zoom of an iframe. Currently it only knows how to zoom the top-level window.

  5. added a commit that references this issue on Nov 17, 2015
  6. paulrouget commented on Feb 25, 2016

    @paulrouget
    ContributorAuthor

    @mbrubeck any update on this?

  7. removed their assignment
    on Feb 25, 2016
  8. mbrubeck commented on Feb 25, 2016

    @mbrubeck
    Contributor

    No, sorry. Unassigning myself for now, but I'll try to get back to this soon if someone else doesn't fix it in the meantime.

  9. removed
    C-assigned
    on Feb 25, 2016
  10. mason-larobina commented on Jul 2, 2016

    @mason-larobina

    Zooming the top-level window has unexpected results on my machine (though it could be a poor interaction with my window manager).

    2016-07-02-140011_3200x1800_scrot

  11. jdm commented on Jul 2, 2016

    @jdm
    Member

    @mason-larobina Could you file a new issue for that? This one is tracking a DOM API for use in browser.html that has not been implemented yet.

  12. mason-larobina commented on Jul 2, 2016

    @mason-larobina

    Done #12187

    (Just to check, did you mean a servo or bhtml issue?)

  13. jdm commented on Jul 2, 2016

    @jdm
    Member

    I meant servo. Thanks!

  14. paulrouget commented on Oct 5, 2017

    @paulrouget
    ContributorAuthor

    We shipped the first alpha of browserhtml we are planning to move away from the Browser API. Closing.

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/domA-gfx/compositing

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions