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

Unified Diff: Source/core/inspector/InspectorPageAgent.cpp

Issue 686763002: Fix Runtime.executionContextCreated for crafted iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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: Source/core/inspector/InspectorPageAgent.cpp
diff --git a/Source/core/inspector/InspectorPageAgent.cpp b/Source/core/inspector/InspectorPageAgent.cpp
index d218e8ba0629fef86666b44d659f2a4cdd9785b2..c87869751d6a412342af6750cebeacb6a423675b 100644
--- a/Source/core/inspector/InspectorPageAgent.cpp
+++ b/Source/core/inspector/InspectorPageAgent.cpp
@@ -982,9 +982,6 @@ void InspectorPageAgent::setScriptExecutionDisabled(ErrorString*, bool value)
void InspectorPageAgent::didClearDocumentOfWindowObject(LocalFrame* frame)
{
- if (frame == m_page->mainFrame())
- m_injectedScriptManager->discardInjectedScripts();
-
if (!m_frontend)
return;

Powered by Google App Engine
This is Rietveld 408576698