fune/testing/web-platform/tests/urlpattern/urlpattern.any.js
Ben Kelly 94152800c7 Bug 1717087 [wpt PR 29420] - URLPattern: Remove [SecureContext] requirement., a=testonly
Automatic update from web-platform-tests
URLPattern: Remove [SecureContext] requirement.

Many new, powerful APIs require [SecureContext] as a carrot for
developers to adopt https.  This is effective because its not possible
for sites to otherwise provide the features provided by those APIs.

In this case, however, URLPattern can largely be polyfilled in
javascript.  Restricting the API to [SecureContext] offers no leverage
to convince developers to adopt https because they can simply include
the polyfill.  Instead, the negatives of this restriction simply
accrue to the user who must pay the cost of downloading and executing
the additional javascript resources.

Therefore this CL removes the [SecureContext] requirement as its not
effective for this API.

Bug: 1141510
Change-Id: I2714a9292d9002c49ee9b09a6ca12b26cff63614
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2968793
Reviewed-by: Jeremy Roman <jbroman@chromium.org>
Commit-Queue: Ben Kelly <wanderview@chromium.org>
Cr-Commit-Position: refs/heads/master@{#893634}

--

wpt-commits: 5769c1a8e58edae508d48827b519c5a127dedff4
wpt-pr: 29420
2021-06-26 22:33:04 +00:00

2 lines
75 B
JavaScript

// META: global=window,worker
// META: script=resources/urlpatterntests.js