Bug 110807

Summary: Page::m_isInWindow is uninitialized
Product: WebKit Reporter: Tim Horton <thorton>
Component: WebCore Misc.Assignee: Tim Horton <thorton>
Status: RESOLVED FIXED    
Severity: Normal CC: andersca, simon.fraser
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
patch
none
sad patch simon.fraser: review+

Tim Horton
Reported 2013-02-25 14:41:40 PST
Should be false by default, we'll get put into a window later.
Attachments
patch (1.09 KB, patch)
2013-02-25 14:43 PST, Tim Horton
no flags
sad patch (1.09 KB, patch)
2013-02-25 15:25 PST, Tim Horton
simon.fraser: review+
Tim Horton
Comment 1 2013-02-25 14:43:09 PST
Tim Horton
Comment 2 2013-02-25 14:45:27 PST
Comment on attachment 190132 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=190132&action=review > Source/WebCore/page/Page.cpp:164 > , m_isOnscreen(true) Hmm, that's odd.
Simon Fraser (smfr)
Comment 3 2013-02-25 14:46:31 PST
Comment on attachment 190132 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=190132&action=review >> Source/WebCore/page/Page.cpp:164 >> , m_isOnscreen(true) > > Hmm, that's odd. Should we change this?
Tim Horton
Comment 4 2013-02-25 15:02:59 PST
I think we should. A Page shouldn't be onscreen (or in-window) by default - until it's added to a platform view/window/etc. Any ports that see fallout from such a change should probably make sure that they're calling setIsInWindow/willMoveOffscreen/didMoveOnscreen at the appropriate times...
Tim Horton
Comment 5 2013-02-25 15:25:23 PST
Ugh, none of the other ports bother to update onscreen or in-window state. Instead of implementing this for all the ports, I'm going to (unfortunately) match m_isOnscreen and default to true. WK2 sets it to the correct value very quickly anyway, so this isn't a big deal.
Tim Horton
Comment 6 2013-02-25 15:25:46 PST
Created attachment 190141 [details] sad patch
Simon Fraser (smfr)
Comment 7 2013-02-25 15:28:09 PST
Comment on attachment 190141 [details] sad patch r=me but please justify your odd choice more in the Changelog.
Tim Horton
Comment 8 2013-02-25 15:37:23 PST
Note You need to log in before you can comment on or make changes to this bug.