Index: Source/core/inspector/InspectorPageAgent.cpp |
diff --git a/Source/core/inspector/InspectorPageAgent.cpp b/Source/core/inspector/InspectorPageAgent.cpp |
index 9a041e579684e24313af030fdc6029d38f67c601..2e7a52591886531b532f12f13935430937f9efd1 100644 |
--- a/Source/core/inspector/InspectorPageAgent.cpp |
+++ b/Source/core/inspector/InspectorPageAgent.cpp |
@@ -984,9 +984,6 @@ void InspectorPageAgent::setScriptExecutionDisabled(ErrorString*, bool value) |
void InspectorPageAgent::didClearDocumentOfWindowObject(LocalFrame* frame) |
{ |
- if (frame == m_page->mainFrame()) |
- m_injectedScriptManager->discardInjectedScripts(); |
- |
if (!m_frontend) |
return; |