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

Unified Diff: Source/web/FrameLoaderClientImpl.cpp

Issue 900543003: DevTools: do not abuse inspector controller for the front-end side plumbing. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 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: Source/web/FrameLoaderClientImpl.cpp
diff --git a/Source/web/FrameLoaderClientImpl.cpp b/Source/web/FrameLoaderClientImpl.cpp
index 1cbbdb1f7cf1c1f15bcb5e62c6b34973dc0c330e..7d58f0f975e754223935ff061d64bfa9167b8b5a 100644
--- a/Source/web/FrameLoaderClientImpl.cpp
+++ b/Source/web/FrameLoaderClientImpl.cpp
@@ -89,6 +89,7 @@
#include "web/PluginPlaceholderImpl.h"
#include "web/SharedWorkerRepositoryClientImpl.h"
#include "web/WebDataSourceImpl.h"
+#include "web/WebDevToolsFrontendImpl.h"
#include "web/WebLocalFrameImpl.h"
#include "web/WebPluginContainerImpl.h"
#include "web/WebPluginLoadObserver.h"
@@ -131,6 +132,9 @@ void FrameLoaderClientImpl::dispatchDidClearWindowObjectInMainWorld()
DOMWindowStorageController::from(*document);
}
}
+ WebDevToolsFrontendImpl* devToolsFrontend = m_webFrame->top()->isWebLocalFrame() ? toWebLocalFrameImpl(m_webFrame->top())->devToolsFrontend() : nullptr;
+ if (devToolsFrontend)
+ devToolsFrontend->didClearWindowObject(m_webFrame);
}
void FrameLoaderClientImpl::documentElementAvailable()

Powered by Google App Engine
This is Rietveld 408576698