Index: Source/core/dom/ScriptLoader.h |
diff --git a/Source/core/dom/ScriptLoader.h b/Source/core/dom/ScriptLoader.h |
index e6ba8d3b080a8381caf99d256b575fdc4c62a3a3..9f0a69dbb74c7d098e232543fd412c8c255a7984 100644 |
--- a/Source/core/dom/ScriptLoader.h |
+++ b/Source/core/dom/ScriptLoader.h |
@@ -50,6 +50,12 @@ public: |
void executeScript(const ScriptSourceCode&); |
void execute(ScriptResource*); |
+ // Check if potentially cross-origin enabled script is accessible |
+ // prior to execution. Returns 'false' if not accessible, signalling |
+ // that callers must not dispatch load events as the cross-origin |
+ // fetch failed. |
+ bool executePotentiallyCrossOriginScript(const ScriptSourceCode&); |
+ |
// XML parser calls these |
void dispatchLoadEvent(); |
void dispatchErrorEvent(); |
@@ -65,6 +71,7 @@ public: |
bool isParserInserted() const { return m_parserInserted; } |
bool alreadyStarted() const { return m_alreadyStarted; } |
bool forceAsync() const { return m_forceAsync; } |
+ bool asPotentiallyCORSEnabledLoad() const { return m_asPotentiallyCORSEnabledLoad; } |
// Helper functions used by our parent classes. |
void didNotifySubtreeInsertionsToDocument(); |
@@ -98,6 +105,7 @@ private: |
bool m_willExecuteWhenDocumentFinishedParsing : 1; |
bool m_forceAsync : 1; |
bool m_willExecuteInOrder : 1; |
+ bool m_asPotentiallyCORSEnabledLoad : 1; |
abarth-chromium
2013/11/14 16:34:48
as? Di you mean "is" ?
sof
2013/11/15 08:05:23
Now shortened to "m_isPotentiallyCORSEnabled" (wen
|
String m_characterEncoding; |
String m_fallbackCharacterEncoding; |
}; |