Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(457)

Unified Diff: Source/core/html/HTMLLinkElement.cpp

Issue 1032033002: Fire error events for a variety of script and style failures. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Changed processing result to an enum rather than a bool Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/StyleElement.cpp ('k') | Source/core/html/HTMLStyleElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLLinkElement.cpp
diff --git a/Source/core/html/HTMLLinkElement.cpp b/Source/core/html/HTMLLinkElement.cpp
index 0907d5b7d6b11032046d6bbcf719ed833770d176..d1521e84305cf64fe79ef8fe0c7dfb4a74f4a6ff 100644
--- a/Source/core/html/HTMLLinkElement.cpp
+++ b/Source/core/html/HTMLLinkElement.cpp
@@ -743,9 +743,10 @@ void LinkStyle::process()
setResource(document().fetcher()->fetchCSSStyleSheet(request));
if (!resource()) {
- // The request may have been denied if (for example) the stylesheet is local and the document is remote.
+ // The request may have been denied if (for example) the stylesheet is local and the document is remote, or if there was a Content Security Policy Failure.
m_loading = false;
removePendingSheet();
+ notifyLoadedSheetAndAllCriticalSubresources(true);
Mike West 2015/03/26 04:41:08 Nit: We should totally change this bool to an enum
jww 2015/03/26 21:04:17 Done.
}
} else if (m_sheet) {
// we no longer contain a stylesheet, e.g. perhaps rel or type was changed
« no previous file with comments | « Source/core/dom/StyleElement.cpp ('k') | Source/core/html/HTMLStyleElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698