[CSS Font Loading] FontFace's promise may never be resolved/rejected if Content Secur...
authormmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 15 Apr 2016 21:28:12 +0000 (21:28 +0000)
committermmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 15 Apr 2016 21:28:12 +0000 (21:28 +0000)
commit4edc18d1ec05cee918b5aaebc0256c855c161fdd
treeac07593b9d415b20c11299f10f00c886052a82ea
parent28ab9a5718ad11c6d761d39c7a1269450469e834
[CSS Font Loading] FontFace's promise may never be resolved/rejected if Content Security Policy blocks all the URLs
https://bugs.webkit.org/show_bug.cgi?id=156605

Reviewed by Daniel Bates.

Source/WebCore:

If all the fonts are blocked, we will create a FontFace with no FontFaceSources.
Loading such a FontFace should reject the promise.

Test: fast/text/font-loading-csp-block-all.html

* css/CSSFontFace.cpp:
(WebCore::CSSFontFace::pump):

LayoutTests:

* fast/text/font-loading-csp-block-all-expected.txt: Added.
* fast/text/font-loading-csp-block-all.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@199611 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/text/font-loading-csp-block-all-expected.txt [new file with mode: 0644]
LayoutTests/fast/text/font-loading-csp-block-all.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/css/CSSFontFace.cpp