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; |