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

Unified Diff: Source/core/loader/FrameLoader.cpp

Issue 138443013: Remove iframe@seamless (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Include remove tests Created 6 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/core/loader/FrameLoader.cpp
diff --git a/Source/core/loader/FrameLoader.cpp b/Source/core/loader/FrameLoader.cpp
index 1206396eec279863eb36c21d17e0112ac34e173d..3fe1cab2c652be5c85052271f63c5dd4d34264e9 100644
--- a/Source/core/loader/FrameLoader.cpp
+++ b/Source/core/loader/FrameLoader.cpp
@@ -1399,26 +1399,6 @@ Frame* FrameLoader::findFrameForNavigation(const AtomicString& name, Document* a
{
ASSERT(activeDocument);
Frame* frame = m_frame->tree().find(name);
-
- // From http://www.whatwg.org/specs/web-apps/current-work/#seamlessLinks:
- //
- // If the source browsing context is the same as the browsing context
- // being navigated, and this browsing context has its seamless browsing
- // context flag set, and the browsing context being navigated was not
- // chosen using an explicit self-navigation override, then find the
- // nearest ancestor browsing context that does not have its seamless
- // browsing context flag set, and continue these steps as if that
- // browsing context was the one that was going to be navigated instead.
- if (frame == m_frame && name != "_self" && m_frame->document()->shouldDisplaySeamlesslyWithParent()) {
- for (Frame* ancestor = m_frame; ancestor; ancestor = ancestor->tree().parent()) {
- if (!ancestor->document()->shouldDisplaySeamlesslyWithParent()) {
- frame = ancestor;
- break;
- }
- }
- ASSERT(frame != m_frame);
- }
-
if (!activeDocument->canNavigate(frame))
return 0;
return frame;

Powered by Google App Engine
This is Rietveld 408576698