forked from Pissandshittium/pissandshittium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Look for favicon URLs (and similar <link>s) in SVG documents
Previously we were only looking for <link>s with icons within <head>, and since SVG document don't have those, no icons would be found. Instead, for SVG documents (with a root/document element of <svg>), just collect all <link> (HTMLLinkElement) elements, regardless of position in the document, using a pre-order traversal. This appears to match the behavior of Gecko. BUG=385466 Review-Url: https://codereview.chromium.org/2628873003 Cr-Commit-Position: refs/heads/master@{#443336}
- Loading branch information
fs
authored and
Commit bot
committed
Jan 12, 2017
1 parent
480d7fb
commit 2546ba4
Showing
3 changed files
with
47 additions
and
5 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
third_party/WebKit/LayoutTests/svg/custom/favicon-link-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
PASS | ||
|
30 changes: 30 additions & 0 deletions
30
third_party/WebKit/LayoutTests/svg/custom/favicon-link.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters