summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webdevtoolsclient_impl.cc
diff options
context:
space:
mode:
authoryurys@google.com <yurys@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-31 13:10:31 +0000
committeryurys@google.com <yurys@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-31 13:10:31 +0000
commit66e8f2e6e53a03c6e526e60eb85bb96894d8e783 (patch)
treeb935e1cbb5d74c02eca87e44213fa0712c7b117c /webkit/glue/webdevtoolsclient_impl.cc
parentacba81f3360f98104f0d8bd6063e04e4f61feba5 (diff)
downloadchromium_src-66e8f2e6e53a03c6e526e60eb85bb96894d8e783.zip
chromium_src-66e8f2e6e53a03c6e526e60eb85bb96894d8e783.tar.gz
chromium_src-66e8f2e6e53a03c6e526e60eb85bb96894d8e783.tar.bz2
1. Allow to add breakpoints using Scripts panel.
2. Support step in/step out/step over/resume actions in Scripts panel. Review URL: http://codereview.chromium.org/56108 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12855 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webdevtoolsclient_impl.cc')
-rw-r--r--webkit/glue/webdevtoolsclient_impl.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/webkit/glue/webdevtoolsclient_impl.cc b/webkit/glue/webdevtoolsclient_impl.cc
index bcee3d2..231b4cf 100644
--- a/webkit/glue/webdevtoolsclient_impl.cc
+++ b/webkit/glue/webdevtoolsclient_impl.cc
@@ -7,10 +7,12 @@
#include <string>
#include "Document.h"
+#include "DOMWindow.h"
#include "InspectorController.h"
#include "Node.h"
#include "Page.h"
#include "PlatformString.h"
+#include "SecurityOrigin.h"
#include <wtf/OwnPtr.h>
#include <wtf/Vector.h>
#undef LOG
@@ -36,6 +38,7 @@ using WebCore::Document;
using WebCore::InspectorController;
using WebCore::Node;
using WebCore::Page;
+using WebCore::SecurityOrigin;
using WebCore::String;
DEFINE_RPC_JS_BOUND_OBJ(DebuggerAgent, DEBUGGER_AGENT_STRUCT,
@@ -158,6 +161,12 @@ void WebDevToolsClientImpl::JsLoaded(
const CppArgumentList& args,
CppVariant* result) {
loaded_ = true;
+
+ // Grant the devtools page the ability to have source view iframes.
+ Page* page = web_view_impl_->page();
+ SecurityOrigin* origin = page->mainFrame()->domWindow()->securityOrigin();
+ origin->grantUniversalAccess();
+
for (Vector<std::string>::iterator it = pending_incoming_messages_.begin();
it != pending_incoming_messages_.end(); ++it) {
DispatchMessageFromAgent(*it);