Automatic update from web-platform-tests Migrate credential-management WPTs to JS modules Update the credential-management WPTs to use JS modules, including for Mojo JS bindings. This also refactors the supporting modules to isolate individual tests from any browser-specific details. Bug: 1004256 Change-Id: If5428dbd4f371fdc92c62da2a2378e8221c5c658 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2472201 Reviewed-by: Michael Moss <mmoss@chromium.org> Reviewed-by: Robert Ma <robertma@chromium.org> Commit-Queue: Ken Rockot <rockot@google.com> Cr-Commit-Position: refs/heads/master@{#817715} -- wpt-commits: 490a85a94c653a7097195506cb54fed7df909921 wpt-pr: 26120
6 lines
280 B
JavaScript
6 lines
280 B
JavaScript
/* Whether the browser is Chromium-based with MojoJS enabled */
|
|
export const isChromiumBased = 'MojoInterfaceInterceptor' in self;
|
|
|
|
/* Whether the browser is WebKit-based with internal test-only API enabled */
|
|
export const isWebKitBased = !isChromiumBased && 'internals' in self;
|