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
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?
Activity
paulrouget commentedon Nov 16, 2015
https://github.com/paulrouget/mozBrowserAPI/blob/master/BrowserAPI.md#the-zoom-method
mbrubeck commentedon Nov 17, 2015
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.
WIP: Implement iframe.zoom()
paulrouget commentedon Feb 25, 2016
@mbrubeck any update on this?
mbrubeck commentedon Feb 25, 2016
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.
mason-larobina commentedon Jul 2, 2016
Zooming the top-level window has unexpected results on my machine (though it could be a poor interaction with my window manager).
jdm commentedon Jul 2, 2016
@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.
mason-larobina commentedon Jul 2, 2016
Done #12187
(Just to check, did you mean a servo or bhtml issue?)
jdm commentedon Jul 2, 2016
I meant servo. Thanks!
paulrouget commentedon Oct 5, 2017
We shipped the first alpha of browserhtml we are planning to move away from the Browser API. Closing.