RESOLVED FIXED Bug 225578
[WebXR] Allow WebXR to be tested on PLATFORM(COCOA)
https://bugs.webkit.org/show_bug.cgi?id=225578
Summary [WebXR] Allow WebXR to be tested on PLATFORM(COCOA)
Dean Jackson
Reported 2021-05-09 01:58:16 PDT
[WebXR] Allow WebXR to be tested on PLATFORM(COCOA)
Attachments
Patch (17.51 KB, patch)
2021-05-09 02:08 PDT, Dean Jackson
no flags
Patch (17.51 KB, patch)
2021-05-09 11:42 PDT, Dean Jackson
ews-feeder: commit-queue-
Patch (18.48 KB, patch)
2021-05-09 12:05 PDT, Dean Jackson
no flags
EWS test (19.20 KB, patch)
2021-05-09 12:21 PDT, Dean Jackson
no flags
Patch (19.11 KB, patch)
2021-05-09 18:29 PDT, Dean Jackson
no flags
Patch (24.83 KB, patch)
2021-05-10 19:52 PDT, Dean Jackson
sam: review+
ews-feeder: commit-queue-
EWS test (24.17 KB, patch)
2021-05-11 15:31 PDT, Dean Jackson
ews-feeder: commit-queue-
EWS test 2 (26.52 KB, patch)
2021-05-12 12:51 PDT, Dean Jackson
ews-feeder: commit-queue-
EWS test 3 (27.47 KB, patch)
2021-05-12 16:11 PDT, Dean Jackson
ews-feeder: commit-queue-
EWS test 4 (33.09 KB, patch)
2021-05-13 12:44 PDT, Dean Jackson
no flags
Radar WebKit Bug Importer
Comment 1 2021-05-09 01:58:48 PDT
Dean Jackson
Comment 2 2021-05-09 02:08:42 PDT Comment hidden (obsolete)
Dean Jackson
Comment 3 2021-05-09 11:42:59 PDT Comment hidden (obsolete)
Dean Jackson
Comment 4 2021-05-09 12:05:49 PDT
Dean Jackson
Comment 5 2021-05-09 12:21:30 PDT
Created attachment 428133 [details] EWS test
Sam Weinig
Comment 6 2021-05-09 14:36:42 PDT
Comment on attachment 428133 [details] EWS test View in context: https://bugs.webkit.org/attachment.cgi?id=428133&action=review > Source/WebCore/platform/xr/cocoa/PlatformXRCocoa.mm:29 > #if ENABLE(WEBXR) && PLATFORM(COCOA) We should probably add a new ENABLE() for the dummy implementation. Doesn't have to be cocoa specific. For cocoa platforms it can be defined if HAVE(WEBXR_INTERNALS) is false.
Dean Jackson
Comment 7 2021-05-09 18:29:38 PDT
Dean Jackson
Comment 8 2021-05-09 18:31:42 PDT
(In reply to Sam Weinig from comment #6) > Comment on attachment 428133 [details] > EWS test > > View in context: > https://bugs.webkit.org/attachment.cgi?id=428133&action=review > > > Source/WebCore/platform/xr/cocoa/PlatformXRCocoa.mm:29 > > #if ENABLE(WEBXR) && PLATFORM(COCOA) > > We should probably add a new ENABLE() for the dummy implementation. Doesn't > have to be cocoa specific. > > For cocoa platforms it can be defined if HAVE(WEBXR_INTERNALS) is false. What do you suggest? I didn't want to put extra tests everywhere.
Sam Weinig
Comment 9 2021-05-09 18:38:38 PDT
Comment on attachment 428148 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=428148&action=review > Source/WTF/wtf/PlatformEnableCocoa.h:602 > +#if !defined(ENABLE_WEBXR) && !PLATFORM(WATCHOS) && !PLATFORM(APPLETV) If possible, I'd prefer we enabled this everywhere, with the dummy implementation so we don't require more per-platform tests or skips.
Sam Weinig
Comment 10 2021-05-09 18:39:27 PDT
(In reply to Dean Jackson from comment #8) > (In reply to Sam Weinig from comment #6) > > Comment on attachment 428133 [details] > > EWS test > > > > View in context: > > https://bugs.webkit.org/attachment.cgi?id=428133&action=review > > > > > Source/WebCore/platform/xr/cocoa/PlatformXRCocoa.mm:29 > > > #if ENABLE(WEBXR) && PLATFORM(COCOA) > > > > We should probably add a new ENABLE() for the dummy implementation. Doesn't > > have to be cocoa specific. > > > > For cocoa platforms it can be defined if HAVE(WEBXR_INTERNALS) is false. > > What do you suggest? I'm not sure what you are asking here, sorry. What do I suggest for what?
Dean Jackson
Comment 11 2021-05-09 19:09:11 PDT
(In reply to Sam Weinig from comment #10) > (In reply to Dean Jackson from comment #8) > > (In reply to Sam Weinig from comment #6) > > > Comment on attachment 428133 [details] > > > EWS test > > > > > > View in context: > > > https://bugs.webkit.org/attachment.cgi?id=428133&action=review > > > > > > > Source/WebCore/platform/xr/cocoa/PlatformXRCocoa.mm:29 > > > > #if ENABLE(WEBXR) && PLATFORM(COCOA) > > > > > > We should probably add a new ENABLE() for the dummy implementation. Doesn't > > > have to be cocoa specific. > > > > > > For cocoa platforms it can be defined if HAVE(WEBXR_INTERNALS) is false. > > > > What do you suggest? > > I'm not sure what you are asking here, sorry. What do I suggest for what? What do you suggest for ENABLE_DUMMY_WEBXR? If it was something like that, wouldn't that mean we'd have to change a lot of #if ENABLE(WEBXR) to #if ENABLE(WEBXR) || ENABLE(DUMMY_WEBXR) ? Or, do you think we'd keep ENABLE_WEBXR and have a USE_DUMMY_WEBXR to represent the platform bit that is missing?
Dean Jackson
Comment 12 2021-05-09 19:09:28 PDT
(In reply to Sam Weinig from comment #9) > Comment on attachment 428148 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=428148&action=review > > > Source/WTF/wtf/PlatformEnableCocoa.h:602 > > +#if !defined(ENABLE_WEBXR) && !PLATFORM(WATCHOS) && !PLATFORM(APPLETV) > > If possible, I'd prefer we enabled this everywhere, with the dummy > implementation so we don't require more per-platform tests or skips. πŸ‘
Sam Weinig
Comment 13 2021-05-09 20:13:16 PDT
(In reply to Dean Jackson from comment #11) > (In reply to Sam Weinig from comment #10) > > (In reply to Dean Jackson from comment #8) > > > (In reply to Sam Weinig from comment #6) > > > > Comment on attachment 428133 [details] > > > > EWS test > > > > > > > > View in context: > > > > https://bugs.webkit.org/attachment.cgi?id=428133&action=review > > > > > > > > > Source/WebCore/platform/xr/cocoa/PlatformXRCocoa.mm:29 > > > > > #if ENABLE(WEBXR) && PLATFORM(COCOA) > > > > > > > > We should probably add a new ENABLE() for the dummy implementation. Doesn't > > > > have to be cocoa specific. > > > > > > > > For cocoa platforms it can be defined if HAVE(WEBXR_INTERNALS) is false. > > > > > > What do you suggest? > > > > I'm not sure what you are asking here, sorry. What do I suggest for what? > > What do you suggest for ENABLE_DUMMY_WEBXR? > > If it was something like that, wouldn't that mean we'd have to change a lot > of > > #if ENABLE(WEBXR) > > to > > #if ENABLE(WEBXR) || ENABLE(DUMMY_WEBXR) > ? > > Or, do you think we'd keep ENABLE_WEBXR > and have a USE_DUMMY_WEBXR to represent the platform bit that is missing? The latter.
Dean Jackson
Comment 14 2021-05-10 19:52:41 PDT
EWS Watchlist
Comment 15 2021-05-10 19:53:49 PDT
This patch modifies the imported WPT tests. Please ensure that any changes on the tests (not coming from a WPT import) are exported to WPT. Please see https://trac.webkit.org/wiki/WPTExportProcess
Sam Weinig
Comment 16 2021-05-10 20:10:49 PDT
Comment on attachment 428239 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=428239&action=review > LayoutTests/imported/w3c/web-platform-tests/webxr/xrViewport_valid.https.html:21 > + console.log(pose.views); Probably don’t want to land this.
Ada Chan
Comment 17 2021-05-10 20:51:25 PDT
Comment on attachment 428239 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=428239&action=review > Source/WTF/wtf/PlatformUse.h:325 > +#if !defined(HAVE_WEBXR_INTERNALS) && !HAVE(WEBXR_INTERNALS) Would #if !HAVE(WEBXR_INTERNALS) be enough?
Dean Jackson
Comment 18 2021-05-11 15:31:35 PDT
Created attachment 428317 [details] EWS test
Dean Jackson
Comment 19 2021-05-12 12:51:45 PDT
Created attachment 428404 [details] EWS test 2
Dean Jackson
Comment 20 2021-05-12 16:11:22 PDT
Created attachment 428429 [details] EWS test 3
Dean Jackson
Comment 21 2021-05-12 17:37:36 PDT
Clearly something strange happens with the tests. I'll need to debug it before this can be enabled.
Dean Jackson
Comment 22 2021-05-13 12:44:34 PDT
Created attachment 428547 [details] EWS test 4
Dean Jackson
Comment 23 2021-05-13 16:02:01 PDT
By grabthar's hammer, it looks like this latest patch is passing. I wonder if it will be flakey.
Dean Jackson
Comment 24 2021-05-13 17:54:26 PDT
Lauro Moura
Comment 25 2021-05-13 20:33:41 PDT
Tests skipped in GTK in r277478 (Only WPE has it enabled).
Truitt Savell
Comment 26 2021-05-14 16:44:29 PDT
This test imported/w3c/web-platform-tests/webxr/xrViewerPose_views_sameObject.https.html is flaky after being enabled history: https://results.webkit.org/?suite=layout-tests&test=imported%2Fw3c%2Fweb-platform-tests%2Fwebxr%2FxrViewerPose_views_sameObject.https.html
Note You need to log in before you can comment on or make changes to this bug.