| Index: Source/core/frame/Location.cpp
|
| diff --git a/Source/core/frame/Location.cpp b/Source/core/frame/Location.cpp
|
| index c252b20a18a113b9ed0db3a78425c313c69d5314..157515b0206c30f617bb2dfa31d1656dd75f9540 100644
|
| --- a/Source/core/frame/Location.cpp
|
| +++ b/Source/core/frame/Location.cpp
|
| @@ -120,8 +120,11 @@ PassRefPtrWillBeRawPtr<DOMStringList> Location::ancestorOrigins() const
|
| RefPtrWillBeRawPtr<DOMStringList> origins = DOMStringList::create();
|
| if (!m_frame)
|
| return origins.release();
|
| - for (LocalFrame* frame = m_frame->tree().parent(); frame; frame = frame->tree().parent())
|
| - origins->append(frame->document()->securityOrigin()->toString());
|
| + // FIXME: We do not yet have access to remote frame's origin.
|
| + for (Frame* frame = m_frame->tree().parent(); frame; frame = frame->tree().parent()) {
|
| + if (frame->isLocalFrame())
|
| + origins->append(toLocalFrame(frame)->document()->securityOrigin()->toString());
|
| + }
|
| return origins.release();
|
| }
|
|
|
|
|