WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
165913
[WebCrypto] WebInspector should indicate webkitSubtle is deprecated
https://bugs.webkit.org/show_bug.cgi?id=165913
Summary
[WebCrypto] WebInspector should indicate webkitSubtle is deprecated
Jiewen Tan
Reported
2016-12-15 12:35:37 PST
Since the new subtle code is completed, we should probably emit a WebInspector console log message indicating that “webkitSubtle” is deprecated.
Attachments
Patch
(63.63 KB, patch)
2017-02-10 18:18 PST
,
Jiewen Tan
no flags
Details
Formatted Diff
Diff
Patch
(42.60 KB, patch)
2017-02-13 11:25 PST
,
Jiewen Tan
joepeck
: review+
buildbot
: commit-queue-
Details
Formatted Diff
Diff
Archive of layout-test-results from ews102 for mac-elcapitan
(723.67 KB, application/zip)
2017-02-13 12:26 PST
,
Build Bot
no flags
Details
Archive of layout-test-results from ews107 for mac-elcapitan-wk2
(854.36 KB, application/zip)
2017-02-13 12:31 PST
,
Build Bot
no flags
Details
Archive of layout-test-results from ews117 for mac-elcapitan
(1.49 MB, application/zip)
2017-02-13 12:38 PST
,
Build Bot
no flags
Details
Archive of layout-test-results from ews124 for ios-simulator-wk2
(831.96 KB, application/zip)
2017-02-13 12:41 PST
,
Build Bot
no flags
Details
Patch for landing
(43.36 KB, patch)
2017-02-13 13:55 PST
,
Jiewen Tan
no flags
Details
Formatted Diff
Diff
Show Obsolete
(5)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2017-02-10 18:14:58 PST
<
rdar://problem/30477222
>
Jiewen Tan
Comment 2
2017-02-10 18:18:02 PST
Created
attachment 301231
[details]
Patch
Joseph Pecoraro
Comment 3
2017-02-10 19:12:40 PST
Comment on
attachment 301231
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=301231&action=review
r=me
> Source/WebCore/bindings/js/JSWebKitSubtleCryptoCustom.cpp:130 > +static void addDeprecationWarningToConsole(ExecState& state) > +{ > + scriptExecutionContextFromExecState(&state)->addConsoleMessage(MessageSource::JS, MessageLevel::Warning, ASCIILiteral("WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.")); > +}
Can we instead just warn once if somebody accesses global.webkitSubtleCrypto? Essentially in, Crypto::webkitSubtle(). Then it will be very easy to warn a single time per-page that accesses it.
Joseph Pecoraro
Comment 4
2017-02-10 19:13:18 PST
> r=me
Err, no review given my question.
Jiewen Tan
Comment 5
2017-02-13 10:52:02 PST
Comment on
attachment 301231
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=301231&action=review
>> Source/WebCore/bindings/js/JSWebKitSubtleCryptoCustom.cpp:130 >> +} > > Can we instead just warn once if somebody accesses global.webkitSubtleCrypto? > > Essentially in, Crypto::webkitSubtle(). Then it will be very easy to warn a single time per-page that accesses it.
Sure. My bad. I was thinking webkitSubtle only before. Actually, I should put the check on crypto.
Jiewen Tan
Comment 6
2017-02-13 11:25:12 PST
Created
attachment 301363
[details]
Patch
Build Bot
Comment 7
2017-02-13 12:26:49 PST
Comment on
attachment 301363
[details]
Patch
Attachment 301363
[details]
did not pass mac-ews (mac): Output:
http://webkit-queues.webkit.org/results/3079082
New failing tests: fast/dom/Window/property-access-on-cached-window-after-frame-removed.html
Build Bot
Comment 8
2017-02-13 12:26:53 PST
Created
attachment 301373
[details]
Archive of layout-test-results from ews102 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews102 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Build Bot
Comment 9
2017-02-13 12:31:47 PST
Comment on
attachment 301363
[details]
Patch
Attachment 301363
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://webkit-queues.webkit.org/results/3079087
New failing tests: fast/dom/Window/property-access-on-cached-window-after-frame-removed.html
Build Bot
Comment 10
2017-02-13 12:31:50 PST
Created
attachment 301374
[details]
Archive of layout-test-results from ews107 for mac-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews107 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Build Bot
Comment 11
2017-02-13 12:38:30 PST
Comment on
attachment 301363
[details]
Patch
Attachment 301363
[details]
did not pass mac-debug-ews (mac): Output:
http://webkit-queues.webkit.org/results/3079083
New failing tests: fast/dom/Window/property-access-on-cached-window-after-frame-removed.html
Build Bot
Comment 12
2017-02-13 12:38:33 PST
Created
attachment 301376
[details]
Archive of layout-test-results from ews117 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews117 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Build Bot
Comment 13
2017-02-13 12:41:23 PST
Comment on
attachment 301363
[details]
Patch
Attachment 301363
[details]
did not pass ios-sim-ews (ios-simulator-wk2): Output:
http://webkit-queues.webkit.org/results/3079096
New failing tests: fast/dom/Window/property-access-on-cached-window-after-frame-removed.html
Build Bot
Comment 14
2017-02-13 12:41:27 PST
Created
attachment 301377
[details]
Archive of layout-test-results from ews124 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews124 Port: ios-simulator-wk2 Platform: Mac OS X 10.11.6
Joseph Pecoraro
Comment 15
2017-02-13 12:56:05 PST
Comment on
attachment 301363
[details]
Patch r=me, though you should rebaseline the other test
Jiewen Tan
Comment 16
2017-02-13 13:55:46 PST
Created
attachment 301387
[details]
Patch for landing
WebKit Commit Bot
Comment 17
2017-02-13 17:08:43 PST
Comment on
attachment 301387
[details]
Patch for landing Clearing flags on attachment: 301387 Committed
r212261
: <
http://trac.webkit.org/changeset/212261
>
Yury Strozhevsky
Comment 18
2017-04-06 02:37:51 PDT
Hello! Can someone solved the bug make a comment in this bug?
https://bugs.webkit.org/show_bug.cgi?id=170446
The bug I was mentioned has title "Exception when trying to get self.crypto.webkitSubtle in WebWorker" and Alexey Proskuryakov was closing the bug two times with remarks "not a bug at all". But I do hope we should have only a warning in console during accesing webkitSubtle, not an exception. Thank you in advance.
Jiewen Tan
Comment 19
2017-04-06 10:48:53 PDT
(In reply to Yury Strozhevsky from
comment #18
)
> Hello! > > Can someone solved the bug make a comment in this bug? >
https://bugs.webkit.org/show_bug.cgi?id=170446
> > The bug I was mentioned has title "Exception when trying to get > self.crypto.webkitSubtle in WebWorker" and Alexey Proskuryakov was closing > the bug two times with remarks "not a bug at all". But I do hope we should > have only a warning in console during accesing webkitSubtle, not an > exception. > > Thank you in advance.
Hi Yuri, regarding to your specific problem, the issue is that we didn't support webkitSubtle in workers from the very beginning. Therefore, you get an exception. There is nothing to do with this deprecation. If you call webkitSubtle in the main document instead of workers, you should get a warning and no exceptions.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug