Repository navigation
script: Make URL.revokeObjectURL work for sandboxed iframe - #45417
Conversation
Signed-off-by: Euclid Ye <[email protected]>
Signed-off-by: Euclid Ye <[email protected]>
|
I removed one extra line servo/tests/wpt/tests/FileAPI/url/resources/fetch-tests.js Lines 43 to 50 in 0b44a17 Per spec:
parsing then says: resolving the blob URL step 3: But with "exclude fragment flag set", we should not care about fragment? |
Seems the problem is, step 7 is still using the |
Signed-off-by: Euclid Ye <[email protected]>
Spec never said anything about if the origin should match.
We remove this check. We were failing
tests\wpt\tests\FileAPI\url\sandboxed-iframe.htmlas the sandboxed iframehas opaque origin and we never successfully revoke the blob.
Testing: Existing tests passing for sandboxed iframe.
Revoke blob URL after creating Request, will fetchnow fails correctly. It was wrongly passing,as we didn't revoke the URL.
Spec says "Requests that were started before the url was revoked should still succeed.",
which we never implemented correctly.
Part of #10778