Bug 188750

Summary: [WebGL] Contexts are not updated when display configuration changed.
Product: WebKit Reporter: Per Arne Vollan <pvollan>
Component: WebGLAssignee: Per Arne Vollan <pvollan>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, commit-queue, dino, ews-watchlist, graouts, justin_fan, kondapallykalyan, rniwa, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
bfulgham: review+, ews-watchlist: commit-queue-
Patch
ews-watchlist: commit-queue-
Archive of layout-test-results from ews102 for mac-sierra
none
Archive of layout-test-results from ews106 for mac-sierra-wk2
none
Archive of layout-test-results from ews125 for ios-simulator-wk2
none
Archive of layout-test-results from ews105 for mac-sierra-wk2
none
Patch
none
Patch
none
Patch none

Per Arne Vollan
Reported 2018-08-20 11:16:19 PDT
Calling CGDisplayRegisterReconfigurationCallback in GraphicsContext3DManager::addContext returns kCGErrorSuccess when WindowServer access is blocked in the WebContent process, but the callback function is never called. We should register the callback function in the UI process, and send a message to the WebContent process when the display configuration changed.
Attachments
Patch (22.50 KB, patch)
2018-08-20 14:10 PDT, Per Arne Vollan
no flags
Patch (26.48 KB, patch)
2018-08-20 16:41 PDT, Per Arne Vollan
bfulgham: review+
ews-watchlist: commit-queue-
Patch (27.52 KB, patch)
2018-08-20 17:46 PDT, Per Arne Vollan
ews-watchlist: commit-queue-
Archive of layout-test-results from ews102 for mac-sierra (2.48 MB, application/zip)
2018-08-20 18:12 PDT, EWS Watchlist
no flags
Archive of layout-test-results from ews106 for mac-sierra-wk2 (2.99 MB, application/zip)
2018-08-20 18:48 PDT, EWS Watchlist
no flags
Archive of layout-test-results from ews125 for ios-simulator-wk2 (23.34 MB, application/zip)
2018-08-20 18:50 PDT, EWS Watchlist
no flags
Archive of layout-test-results from ews105 for mac-sierra-wk2 (2.84 MB, application/zip)
2018-08-20 21:28 PDT, EWS Watchlist
no flags
Patch (27.45 KB, patch)
2018-08-21 08:36 PDT, Per Arne Vollan
no flags
Patch (27.99 KB, patch)
2018-08-21 09:10 PDT, Per Arne Vollan
no flags
Patch (28.04 KB, patch)
2018-08-21 09:37 PDT, Per Arne Vollan
no flags
Per Arne Vollan
Comment 1 2018-08-20 14:10:53 PDT
Per Arne Vollan
Comment 2 2018-08-20 16:41:48 PDT
Brent Fulgham
Comment 3 2018-08-20 16:46:28 PDT
Comment on attachment 347567 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=347567&action=review Looks like a good change. r=me (but please confirm EWS is happy). > Source/WebCore/platform/graphics/GraphicsContext3DManager.h:28 > +#include <WebCore/Timer.h> Do we need to prefix this with WebCore when building in WebCore? Or is this header accessed outside WebCore? > Source/WebCore/platform/graphics/GraphicsContext3DManager.h:71 > + Please remove this whitespace-only change.
Brent Fulgham
Comment 4 2018-08-20 16:46:57 PDT
Comment on attachment 347567 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=347567&action=review > Source/WebCore/ChangeLog:4 > + https://bugs.webkit.org/show_bug.cgi?id=188750 Is there a radar associated with this?
Radar WebKit Bug Importer
Comment 5 2018-08-20 16:49:18 PDT
Per Arne Vollan
Comment 6 2018-08-20 16:52:08 PDT
(In reply to Brent Fulgham from comment #3) > Comment on attachment 347567 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=347567&action=review > > Looks like a good change. r=me (but please confirm EWS is happy). > > > Source/WebCore/platform/graphics/GraphicsContext3DManager.h:28 > > +#include <WebCore/Timer.h> > > Do we need to prefix this with WebCore when building in WebCore? Or is this > header accessed outside WebCore? Yes, this file is now accessed from WebKit. > > > Source/WebCore/platform/graphics/GraphicsContext3DManager.h:71 > > + > > Please remove this whitespace-only change. Will do. I will also create a radar. Thanks for reviewing!
Per Arne Vollan
Comment 7 2018-08-20 17:46:10 PDT
Simon Fraser (smfr)
Comment 8 2018-08-20 17:57:31 PDT
Comment on attachment 347587 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=347587&action=review > Source/WebCore/platform/graphics/GraphicsContext3DManager.h:28 > +#include <WebCore/Timer.h> I think this should just be "#include "Timer". > Source/WebKit/UIProcess/API/C/mac/WKMockDisplay.h:35 > + WK_EXPORT void WKSendDisplayConfigurationChangedMessageForTesting(WKContextRef); No indenting here.
EWS Watchlist
Comment 9 2018-08-20 18:12:36 PDT
Comment on attachment 347567 [details] Patch Attachment 347567 [details] did not pass mac-ews (mac): Output: https://webkit-queues.webkit.org/results/8924002 New failing tests: fast/canvas/webgl/context-update-on-display-configuration.html
EWS Watchlist
Comment 10 2018-08-20 18:12:38 PDT
Created attachment 347589 [details] Archive of layout-test-results from ews102 for mac-sierra The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews102 Port: mac-sierra Platform: Mac OS X 10.12.6
EWS Watchlist
Comment 11 2018-08-20 18:48:06 PDT
Comment on attachment 347567 [details] Patch Attachment 347567 [details] did not pass mac-wk2-ews (mac-wk2): Output: https://webkit-queues.webkit.org/results/8924280 New failing tests: fast/canvas/webgl/context-update-on-display-configuration.html
EWS Watchlist
Comment 12 2018-08-20 18:48:09 PDT
Created attachment 347594 [details] Archive of layout-test-results from ews106 for mac-sierra-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews106 Port: mac-sierra-wk2 Platform: Mac OS X 10.12.6
EWS Watchlist
Comment 13 2018-08-20 18:50:07 PDT
Comment on attachment 347567 [details] Patch Attachment 347567 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: https://webkit-queues.webkit.org/results/8924003 New failing tests: fast/canvas/webgl/context-update-on-display-configuration.html
EWS Watchlist
Comment 14 2018-08-20 18:50:09 PDT
Created attachment 347596 [details] Archive of layout-test-results from ews125 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews125 Port: ios-simulator-wk2 Platform: Mac OS X 10.13.4
Per Arne Vollan
Comment 15 2018-08-20 20:49:41 PDT
(In reply to Simon Fraser (smfr) from comment #8) > Comment on attachment 347587 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=347587&action=review > > > Source/WebCore/platform/graphics/GraphicsContext3DManager.h:28 > > +#include <WebCore/Timer.h> > > I think this should just be "#include "Timer". > > > Source/WebKit/UIProcess/API/C/mac/WKMockDisplay.h:35 > > + WK_EXPORT void WKSendDisplayConfigurationChangedMessageForTesting(WKContextRef); > > No indenting here. Thanks for reviewing! I will update the patch.
EWS Watchlist
Comment 16 2018-08-20 21:28:21 PDT
Comment on attachment 347587 [details] Patch Attachment 347587 [details] did not pass mac-wk2-ews (mac-wk2): Output: https://webkit-queues.webkit.org/results/8926046 New failing tests: fast/canvas/webgl/context-update-on-display-configuration.html
EWS Watchlist
Comment 17 2018-08-20 21:28:23 PDT
Created attachment 347608 [details] Archive of layout-test-results from ews105 for mac-sierra-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews105 Port: mac-sierra-wk2 Platform: Mac OS X 10.12.6
Per Arne Vollan
Comment 18 2018-08-21 08:36:50 PDT
Per Arne Vollan
Comment 19 2018-08-21 09:10:54 PDT
Per Arne Vollan
Comment 20 2018-08-21 09:37:16 PDT
WebKit Commit Bot
Comment 21 2018-08-21 11:04:55 PDT
Comment on attachment 347650 [details] Patch Clearing flags on attachment: 347650 Committed r235125: <https://trac.webkit.org/changeset/235125>
Ryosuke Niwa
Comment 22 2018-08-21 19:04:14 PDT
Note You need to log in before you can comment on or make changes to this bug.