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

Unified Diff: Source/modules/filesystem/InspectorFileSystemAgent.cpp

Issue 301983003: Make Inspector aware of RemoteFrames in FrameTree (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed a cast problem Created 6 years, 7 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/modules/filesystem/InspectorFileSystemAgent.cpp
diff --git a/Source/modules/filesystem/InspectorFileSystemAgent.cpp b/Source/modules/filesystem/InspectorFileSystemAgent.cpp
index b705d218617286d4c9641a6f482280a4eb604bcc..084488cebc8315ad34229d0a3050cc74691692a9 100644
--- a/Source/modules/filesystem/InspectorFileSystemAgent.cpp
+++ b/Source/modules/filesystem/InspectorFileSystemAgent.cpp
@@ -714,9 +714,9 @@ bool InspectorFileSystemAgent::assertEnabled(ErrorString* error)
ExecutionContext* InspectorFileSystemAgent::assertExecutionContextForOrigin(ErrorString* error, SecurityOrigin* origin)
{
- for (LocalFrame* frame = m_page->mainFrame(); frame; frame = frame->tree().traverseNext()) {
- if (frame->document() && frame->document()->securityOrigin()->isSameSchemeHostPort(origin))
- return frame->document();
+ for (Frame* frame = m_page->mainFrame(); frame; frame = frame->tree().traverseNext()) {
+ if (frame->isLocalFrame() && toLocalFrame(frame)->document() && toLocalFrame(frame)->document()->securityOrigin()->isSameSchemeHostPort(origin))
yurys 2014/06/02 07:56:27 LocalFrame* localFrame = toLocalFrame(frame); ...
kenrb 2014/06/02 15:20:48 Done.
+ return toLocalFrame(frame)->document();
}
*error = "No frame is available for the request";

Powered by Google App Engine
This is Rietveld 408576698