[Webkit-unassigned] [Bug 143678] javascript window.open window size

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 1 18:38:39 PDT 2017


--- Comment #10 from Chris Dumez <cdumez at apple.com> ---
(In reply to Tim Horton from comment #9)
> (In reply to Tim Horton from comment #8)
> > (In reply to Chris Dumez from comment #7)
> > > Page::setTopContentInset() gets called *after* we set the new Window size
> > > unfortunately.
> > 
> > Where is the size set? You might be able to reorder it, because TCI is sent
> > in WebProcessCreationParameters, so it's not like we don't have it.
> WebPageCreationParameters, whatever.

The logic for setting the new window size is in:
RefPtr<Frame> createWindow(Frame& openerFrame, Frame& lookupFrame, const FrameLoadRequest& request, const WindowFeatures& features, bool& created) inside FrameLoader.cpp.

We first call chrome().createWindow() to create the Window.
Then we compute the height we want.
Finally we call chrome().setWindowRect().

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170502/2a2dc5fa/attachment.html>

More information about the webkit-unassigned mailing list