Skip to content

Commit

Permalink
Bug 1805756 [wpt PR 37511] - Add a runtime enabled feature for remova…
Browse files Browse the repository at this point in the history
…l of data: URL in SVGUseElement, a=testonly

Automatic update from web-platform-tests
Add a runtime enabled feature for removal of data: URL in SVGUseElement

This CL adds a runtime enabled feature and WPT for removal of data: URLs
in in SVGUseElement.
See: w3c/svgwg#901

But: 1300195
Change-Id: Ieab699fc167b254c65b92ed811756404dcc7c575
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4104249
Reviewed-by: Mike West <[email protected]>
Commit-Queue: Jun Kokatsu <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1090945}

--

wpt-commits: fe30ab22c3088be330f87cb77ce5d584e6823e21
wpt-pr: 37511
  • Loading branch information
shhnjk authored and moz-wptsync-bot committed Jan 18, 2023
1 parent 21a5374 commit 68a566e
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 2 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
promise_test(t => {
const svg = document.querySelector('svg');
const use = newUseElement();
const watcher = expectEvents(t, use, ['load']);
const watcher = expectEvents(t, use, ['error']);
const url = getUrl('existing-data');
svg.appendChild(use).setAttribute('href', url);
return watcher;
Expand Down Expand Up @@ -113,7 +113,7 @@
const url = getUrl('existing-data');
svg.appendChild(use).setAttribute('href', url);
t.step_timeout(() => use.setAttribute('href', '#local'));
return makeWatcher(svg, 'load', url);
return makeWatcher(svg, 'error', url);
}, document.title + ', external data: URL reference, existing, changed to local reference while loading');

promise_test(t => {
Expand Down

0 comments on commit 68a566e

Please sign in to comment.