forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reland "Set initiator to stylesheet's URL for resources loaded from CSS"
This is a reland of 0d5d000 The original CL caused http/tests/devtools/network/network-initiator.js to become flaky. The root cause is that fetching example.ttf results in a 404 console message and so waiting for 2 console messages isn't sufficient. Instead of adding a complete font file to the resources, we only count "Done." console messages, which should prevent similar flakiness in the future. Original change's description: > Set initiator to stylesheet's URL for resources loaded from CSS > > Currently, resources loaded from CSS (e.g. fonts) do not have their > initiator set appropriately. It is often set to the script that caused > a style recalculation. Instead, we fix these cases to use the referrer, > if present, as the initiator. > > This does not fix the case where a stylesheet without a URL (e.g. inline > CSS) loads a resource. In these cases, the initiator falls back to the > document loading the resource. This also does not set the TextPosition > of the initiator as it is non-trivial to plumb that through Blink's CSS > logic. > > Bug: 918196 > Change-Id: I48120b7d91ebad439824e886b5b9d2b07bd480f2 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2163039 > Reviewed-by: Rune Lillesveen <futhark@chromium.org> > Reviewed-by: Nate Chapin <japhet@chromium.org> > Reviewed-by: Andrey Kosyakov <caseq@chromium.org> > Commit-Queue: Alex Turner <alexmt@chromium.org> > Cr-Commit-Position: refs/heads/master@{#764056} Bug: 918196, 1076693 Change-Id: I101c9e38ec9cea2cf3e081f0b6a6478c23b42027 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2174346 Reviewed-by: Andrey Kosyakov <caseq@chromium.org> Reviewed-by: Nate Chapin <japhet@chromium.org> Reviewed-by: Rune Lillesveen <futhark@chromium.org> Commit-Queue: Alex Turner <alexmt@chromium.org> Cr-Commit-Position: refs/heads/master@{#764710}
- Loading branch information
1 parent
2ada03f
commit fd014a4
Showing
12 changed files
with
70 additions
and
24 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
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
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