Bug 1494197 [wpt PR 13212] - Simplify "WouldTaintOrigin" concept in media/blink,...
commitde7d74394be641e44bb164773c388bcc6cc64b4b
authorYutaka Hirano <yhirano@chromium.org>
Thu, 11 Oct 2018 10:03:57 +0000 (11 10:03 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Fri, 12 Oct 2018 16:44:51 +0000 (12 16:44 +0000)
treeb5bf1af2571580a5b5f1836a6533700b6b9d8427
parentc5e4516e5fc11c4209b638bbc99ea5e2212b067a
Bug 1494197 [wpt PR 13212] - Simplify "WouldTaintOrigin" concept in media/blink, a=testonly

Automatic update from web-platform-testsSimplify "WouldTaintOrigin" concept in media/blink

Currently WebMediaPlayer has three predicates:
 - DidGetOpaqueResponseFromServiceWorker
 - HasSingleSecurityOrigin
 - DidPassCORSAccessCheck
. These are used to determine whether the response body is available
for scripts. They are known to be confusing, and actually
MediaElementAudioSourceHandler::WouldTaintOrigin misuses them.

This CL merges the three predicates to one, WouldTaintOrigin, to remove
the confusion. Now the "response type" concept is available and we
don't need a custom CORS check, so this CL removes
BaseAudioContext::WouldTaintOrigin. This CL also renames
URLData::has_opaque_data_ and its (direct and indirect) data accessors
to match the spec.

Bug: 849942, 875153
Change-Id: I6acf50169d7445c4ff614e80ac606f79ee577d2a
Reviewed-on: https://chromium-review.googlesource.com/c/1238098
Reviewed-by: Fredrik Hubinette <hubbe@chromium.org>
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Reviewed-by: Raymond Toy <rtoy@chromium.org>
Commit-Queue: Yutaka Hirano <yhirano@chromium.org>
Cr-Commit-Position: refs/heads/master@{#598258}

--

wpt-commits: 881c8c12d323f8805b6ddeed7e5d7425b5f5af1f
wpt-pr: 13212
testing/web-platform/tests/service-workers/service-worker/fetch-audio-tainting.https.html [new file with mode: 0644]