NEW187492
WebGL contexts unable to detect correct display upon first WebProcess creation
https://bugs.webkit.org/show_bug.cgi?id=187492
Summary WebGL contexts unable to detect correct display upon first WebProcess creation
Justin Fan
Reported 2018-07-09 16:58:07 PDT
WebGL contexts unable to detect correct display upon first WebProcess creation
Attachments
Patch (7.06 KB, patch)
2018-07-09 17:13 PDT, Justin Fan
no flags
Justin Fan
Comment 1 2018-07-09 17:13:23 PDT
Tim Horton
Comment 2 2018-07-09 18:21:50 PDT
Comment on attachment 344642 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=344642&action=review > Source/WebKit/Shared/WebPageCreationParameters.h:142 > + uint32_t displayID; Shouldn’t this be a PlatformDisplayID?
Simon Fraser (smfr)
Comment 3 2018-07-09 18:23:03 PDT
Comment on attachment 344642 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=344642&action=review > Source/WebKit/UIProcess/WebPageProxy.cpp:6192 > + parameters.displayID = mainScreenDisplayID(); But this might not be the screen that at the window is on.
Tim Horton
Comment 4 2018-07-09 18:25:19 PDT
Comment on attachment 344642 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=344642&action=review >> Source/WebKit/UIProcess/WebPageProxy.cpp:6192 >> + parameters.displayID = mainScreenDisplayID(); > > But this might not be the screen that at the window is on. Get it from pageClient instead! There’s a nontrivial chance we have a parented view at this point.
Tim Horton
Comment 5 2018-07-09 18:26:00 PDT
Comment on attachment 344642 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=344642&action=review > Source/WebCore/ChangeLog:6 > + __ up here > Source/WebCore/ChangeLog:15 > + Reviewed by NOBODY (OOPS!). What’s this doing all the way down here? Should be ^^.
Justin Fan
Comment 6 2018-07-09 21:15:12 PDT
Justin Fan
Comment 7 2018-07-09 21:46:55 PDT
Comment on attachment 344642 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=344642&action=review >> Source/WebKit/Shared/WebPageCreationParameters.h:142 >> + uint32_t displayID; > > Shouldn’t this be a PlatformDisplayID? It's a using alias for uint32_t in PlatformScreen.h; should I bring in PlatformScreen.h or re-alias it in this header? >>> Source/WebKit/UIProcess/WebPageProxy.cpp:6192 >>> + parameters.displayID = mainScreenDisplayID(); >> >> But this might not be the screen that at the window is on. > > Get it from pageClient instead! There’s a nontrivial chance we have a parented view at this point. Will try!
Note You need to log in before you can comment on or make changes to this bug.