[ServiceWorker] Forbid reusing resource if requests have different credentials mode
This CL is to fix the root cause for failures of service worker wpt tests. The test loads an url for an Image object with 'anonymous' crossOrigin property at line227 of fetch-canvas-tainting-iframe.html, succeeds in loading without tainting, and then it loads the url again for another Image object with 'use-credentials' crossOrigin property at line234, this is expected to result in loading error, but currently it results in success. The root cause is that Memory Cache is reusing the first time's response for the second time resource request, although these two requests have different credentials mode. BUG=735883 TEST=blink_tests external/wpt/service-workers/service-worker/fetch-canvas-tainting.https.html external/wpt/service-workers/service-worker/fetch-canvas-tainting-cache.https.html Change-Id: I9acdcf3811b6dcd5ea2ffe858ec35f51f7f2cc3f Reviewed-on: https://chromium-review.googlesource.com/567690Reviewed-by:Tsuyoshi Horo <horo@chromium.org> Reviewed-by:
Takeshi Yoshino <tyoshino@chromium.org> Commit-Queue: Han Leon <leon.han@intel.com> Cr-Commit-Position: refs/heads/master@{#486697}
Showing
Please register or sign in to comment