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

Unified Diff: third_party/WebKit/Source/core/loader/FrameFetchContext.h

Issue 2045313003: Dev tools warning and console warning for document.write script blocking (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
Index: third_party/WebKit/Source/core/loader/FrameFetchContext.h
diff --git a/third_party/WebKit/Source/core/loader/FrameFetchContext.h b/third_party/WebKit/Source/core/loader/FrameFetchContext.h
index 20979105e4b6c75d609748ec09593790fe93ac0f..519e51a29a4cf29c1f676a9c99880a4e541b6f51 100644
--- a/third_party/WebKit/Source/core/loader/FrameFetchContext.h
+++ b/third_party/WebKit/Source/core/loader/FrameFetchContext.h
@@ -99,6 +99,7 @@ public:
bool updateTimingInfoForIFrameNavigation(ResourceTimingInfo*) override;
void sendImagePing(const KURL&) override;
void addConsoleMessage(const String&) const override;
+ void addConsoleMessage(const String&, MessageLevel) const;
SecurityOrigin* getSecurityOrigin() const override;
void upgradeInsecureRequest(FetchRequest&) override;
void addClientHintsIfNecessary(FetchRequest&) override;
@@ -123,6 +124,8 @@ private:
LocalFrame* frame() const; // Can be null
void printAccessDeniedMessage(const KURL&) const;
ResourceRequestBlockedReason canRequestInternal(Resource::Type, const ResourceRequest&, const KURL&, const ResourceLoaderOptions&, bool forPreload, FetchRequest::OriginRestriction, ResourceRequest::RedirectStatus) const;
+ bool shouldDisallowFetchForMainFrameScript(const ResourceRequest&, FetchRequest::DeferOption) const;
+ void emitWarningForDocWriteScripts(const String&) const;
// FIXME: Oilpan: Ideally this should just be a traced Member but that will
// currently leak because ComputedStyle and its data are not on the heap.

Powered by Google App Engine
This is Rietveld 408576698