RESOLVED FIXED 215607
Add support for TransformStream
https://bugs.webkit.org/show_bug.cgi?id=215607
Summary Add support for TransformStream
youenn fablet
Reported 2020-08-18 08:27:36 PDT
Add support for TransformStream
Attachments
Patch (162.99 KB, patch)
2020-08-18 08:39 PDT, youenn fablet
no flags
Patch (173.83 KB, patch)
2020-08-18 10:32 PDT, youenn fablet
no flags
Patch (163.21 KB, patch)
2020-08-26 01:38 PDT, youenn fablet
no flags
youenn fablet
Comment 1 2020-08-18 08:39:40 PDT
EWS Watchlist
Comment 2 2020-08-18 08:40:26 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
youenn fablet
Comment 3 2020-08-18 10:32:50 PDT
Sam Weinig
Comment 4 2020-08-18 11:01:07 PDT
Comment on attachment 406791 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=406791&action=review > Source/WebCore/page/RuntimeEnabledFeatures.h:296 > + void setTransformStreamAPIEnabled(bool isEnabled) { m_isTransformStreamAPIEnabled = isEnabled; } > + bool transformStreamAPIEnabled() const { return m_isTransformStreamAPIEnabled; } Unless this truly needs to be on the singleton, please use a Setting rather than a global RuntimeEnabledFeature.
youenn fablet
Comment 5 2020-08-18 11:17:48 PDT
(In reply to Sam Weinig from comment #4) > Comment on attachment 406791 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=406791&action=review > > > Source/WebCore/page/RuntimeEnabledFeatures.h:296 > > + void setTransformStreamAPIEnabled(bool isEnabled) { m_isTransformStreamAPIEnabled = isEnabled; } > > + bool transformStreamAPIEnabled() const { return m_isTransformStreamAPIEnabled; } > > Unless this truly needs to be on the singleton, please use a Setting rather > than a global RuntimeEnabledFeature. TransformStream are exposed to Workers, using a setting would require some additional work.
Sam Weinig
Comment 6 2020-08-18 11:21:05 PDT
(In reply to youenn fablet from comment #5) > (In reply to Sam Weinig from comment #4) > > Comment on attachment 406791 [details] > > Patch > > > > View in context: > > https://bugs.webkit.org/attachment.cgi?id=406791&action=review > > > > > Source/WebCore/page/RuntimeEnabledFeatures.h:296 > > > + void setTransformStreamAPIEnabled(bool isEnabled) { m_isTransformStreamAPIEnabled = isEnabled; } > > > + bool transformStreamAPIEnabled() const { return m_isTransformStreamAPIEnabled; } > > > > Unless this truly needs to be on the singleton, please use a Setting rather > > than a global RuntimeEnabledFeature. > > TransformStream are exposed to Workers, using a setting would require some > additional work. ok.
Alex Christensen
Comment 7 2020-08-19 09:02:10 PDT
Comment on attachment 406791 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=406791&action=review > LayoutTests/imported/w3c/web-platform-tests/streams/transform-streams/reentrant-strategies.any.js:319 > +// }, 'writer.abort() inside size() should work'); Why are we commenting all this out?
youenn fablet
Comment 8 2020-08-20 09:14:00 PDT
(In reply to Alex Christensen from comment #7) > Comment on attachment 406791 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=406791&action=review > > > LayoutTests/imported/w3c/web-platform-tests/streams/transform-streams/reentrant-strategies.any.js:319 > > +// }, 'writer.abort() inside size() should work'); > > Why are we commenting all this out? Ah, right, I forgot to undo these changes. Tests passes but I will reupload a patch with tests enabled.
youenn fablet
Comment 9 2020-08-24 23:59:26 PDT
ping review
Radar WebKit Bug Importer
Comment 10 2020-08-25 08:28:13 PDT
Alex Christensen
Comment 11 2020-08-25 12:18:45 PDT
Comment on attachment 406791 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=406791&action=review > Source/WebCore/Modules/streams/TransformStream.idl:2 > + * Copyright (C) 2015 Canon Inc. Is this correct? Was this implemented in 2015? > LayoutTests/imported/w3c/web-platform-tests/streams/transform-streams/reentrant-strategies.any.js:41 > +// promise_test(() => { This needs to not be commented out.
youenn fablet
Comment 12 2020-08-26 01:38:41 PDT
youenn fablet
Comment 13 2020-08-27 02:41:04 PDT
Test failures are crashes that do not seem related to this patch
EWS
Comment 14 2020-08-27 03:00:25 PDT
Committed r266228: <https://trac.webkit.org/changeset/266228> All reviewed patches have been landed. Closing bug and clearing flags on attachment 407282 [details].
Brent Fulgham
Comment 15 2022-08-02 14:08:05 PDT
*** Bug 151599 has been marked as a duplicate of this bug. ***
Note You need to log in before you can comment on or make changes to this bug.