Bug 117116

Summary: [WK2][CoordinatedGraphics]: Use a properly initialized WebPage when creating a PageClient
Product: WebKit Reporter: Sergio Correia (qrwteyrutiyoup) <sergio>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: cmarcelo, commit-queue, luiz, noam, simon.fraser, thorton, zeno
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

Description Sergio Correia (qrwteyrutiyoup) 2013-06-01 21:51:00 PDT
[WK2][CG]: Use a properly initialized WebPage when creating a PageClient
Comment 1 Sergio Correia (qrwteyrutiyoup) 2013-06-01 21:55:20 PDT
Created attachment 203501 [details]
Patch
Comment 2 Darin Adler 2013-06-01 23:38:56 PDT
Comment on attachment 203501 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=203501&action=review

> Source/WebKit2/UIProcess/CoordinatedGraphics/WebView.cpp:53
> +    m_page = context->createWebPage(this, pageGroup);

Needs a comment so someone doesn’t just move it back. Such as:

    // Need to call createWebPage after other data members, specifically m_visible, are initialized.
Comment 3 Sergio Correia (qrwteyrutiyoup) 2013-06-01 23:48:17 PDT
Created attachment 203505 [details]
Patch

Added comment as requested by Darin.
Comment 4 Tim Horton 2013-06-02 00:37:53 PDT
Comment on attachment 203505 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=203505&action=review

> Source/WebKit2/ChangeLog:3
> +        [WK2][CG]: Use a properly initialized WebPage when creating a PageClient

Oh, maybe we can use something other than [CG] in titles for Coordinated Graphics, since we already use that for CoreGraphics?
Comment 5 Sergio Correia (qrwteyrutiyoup) 2013-06-02 00:41:28 PDT
(In reply to comment #4)
> (From update of attachment 203505 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=203505&action=review
> 
> > Source/WebKit2/ChangeLog:3
> > +        [WK2][CG]: Use a properly initialized WebPage when creating a PageClient
> 
> Oh, maybe we can use something other than [CG] in titles for Coordinated Graphics, since we already use that for CoreGraphics?

My bad, I wasn't aware CG was already used for CoreGraphics. 

Would you like me to update the bug title (and the commit message/changleog) to use CoordinatedGraphics instead?
Comment 6 Tim Horton 2013-06-02 00:50:04 PDT
(In reply to comment #5)
> (In reply to comment #4)
> > (From update of attachment 203505 [details] [details])
> > View in context: https://bugs.webkit.org/attachment.cgi?id=203505&action=review
> > 
> > > Source/WebKit2/ChangeLog:3
> > > +        [WK2][CG]: Use a properly initialized WebPage when creating a PageClient
> > 
> > Oh, maybe we can use something other than [CG] in titles for Coordinated Graphics, since we already use that for CoreGraphics?
> 
> My bad, I wasn't aware CG was already used for CoreGraphics. 
> 
> Would you like me to update the bug title (and the commit message/changleog) to use CoordinatedGraphics instead?

Sure :)
Comment 7 Sergio Correia (qrwteyrutiyoup) 2013-06-02 00:56:53 PDT
Created attachment 203509 [details]
Patch

Changed [CG] tag to [CoordinatedGraphics], as requested by Tim, as the former refers to CoreGraphics.
Comment 8 Tim Horton 2013-06-02 01:05:26 PDT
Comment on attachment 203509 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=203509&action=review

> Source/WebKit2/ChangeLog:42
> +        Here's the relevant valgrind trace for reference:
> +
> +        Conditional jump or move depends on uninitialised value(s)
> +            at 0x65A35A4: WebKit::WebPageProxy::WebPageProxy(WebKit::PageClient*,
> +                          WTF::PassRefPtr<WebKit::WebProcessProxy>,
> +                          WebKit::WebPageGroup*, unsigned long) (WebPageProxy.cpp:322)
> +            by 0x65A2BA2: WebKit::WebPageProxy::create(WebKit::PageClient*,
> +                          WTF::PassRefPtr<WebKit::WebProcessProxy>,
> +                          WebKit::WebPageGroup*, unsigned long) (WebPageProxy.cpp:233)
> +            by 0x65E94BB: WebKit::WebProcessProxy::createWebPage(WebKit::PageClient*,
> +                          WebKit::WebContext*, WebKit::WebPageGroup*)
> +                          (WebProcessProxy.cpp:172)
> +            by 0x6570957: WebKit::WebContext::createWebPage(WebKit::PageClient*,
> +                          WebKit::WebPageGroup*, WebKit::WebPageProxy*)
> +                          (WebContext.cpp:735)
> +            by 0x67673E3: WebKit::WebView::WebView(WebKit::WebContext*,
> +                          WebKit::WebPageGroup*) (WebView.cpp:52)
> +            by 0x6775F18: WebKit::WebViewEfl::WebViewEfl(WebKit::WebContext*,
> +                          WebKit::WebPageGroup*) (WebViewEfl.cpp:54)
> +            by 0x6775EB4: WebKit::WebView::create(WebKit::WebContext*,
> +                          WebKit::WebPageGroup*) (WebViewEfl.cpp:49)
> +            by 0x673E13D: WKViewCreate (WKView.cpp:33)
> +            by 0x6763ECE: EWKViewCreate (ewk_view.cpp:92)

This is a bit excessive for the changelog, I think, but it's fine.
Comment 9 Sergio Correia (qrwteyrutiyoup) 2013-06-02 01:09:42 PDT
(In reply to comment #8)
> (From update of attachment 203509 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=203509&action=review
> 
[snip]
> 
> This is a bit excessive for the changelog, I think, but it's fine.

Alright, I will keep that in mind :)
Thanks!
Comment 10 WebKit Commit Bot 2013-06-02 01:33:04 PDT
Comment on attachment 203509 [details]
Patch

Clearing flags on attachment: 203509

Committed r151081: <http://trac.webkit.org/changeset/151081>
Comment 11 WebKit Commit Bot 2013-06-02 01:33:07 PDT
All reviewed patches have been landed.  Closing bug.