Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r183053 - REGRESSION (r177494): -webkit-mask-image: with data U…
…RI fails on non-local files https://bugs.webkit.org/show_bug.cgi?id=141857 Reviewed by Dirk Schulze. Source/WebCore: r177494 regressed loading of data URIs in masks with remote content, triggering a cross-domain error which occurs because the mask loading happened via a separate SVGDocument. Fix by checking for data URIs at parsing time, which is what we used to do. Test: http/tests/css/data-uri-mask.html * css/CSSParser.cpp: (WebCore::CSSParser::parseMaskImage): * svg/SVGURIReference.h: (WebCore::SVGURIReference::isExternalURIReference): LayoutTests: Ref test with a masked green square. Has to be an http test to trigger the origin checking. * http/tests/css/data-uri-mask-expected.html: Added. * http/tests/css/data-uri-mask.html: Added.
- Loading branch information
1 parent
39e7e92
commit 3c5c6c6
Showing
6 changed files
with
81 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<!DOCTYPE html> | ||
|
||
<html> | ||
<head> | ||
<style> | ||
.masked { | ||
height: 100px; | ||
width: 100px; | ||
background-color: green; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="masked"></div> | ||
</body> | ||
</html> |
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,17 @@ | ||
<!DOCTYPE html> | ||
|
||
<html> | ||
<head> | ||
<style> | ||
.masked { | ||
height: 100px; | ||
width: 100px; | ||
background-color: green; | ||
-webkit-mask-image: url(data:image/png;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICRAEAOw==); | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="masked"></div> | ||
</body> | ||
</html> |
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