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

Unified Diff: third_party/WebKit/Source/web/OpenedFrameTracker.h

Issue 1408073006: Gracefully handle a self-referential opener in frame swap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove friend declaration. Created 5 years, 2 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: third_party/WebKit/Source/web/OpenedFrameTracker.h
diff --git a/third_party/WebKit/Source/web/OpenedFrameTracker.h b/third_party/WebKit/Source/web/OpenedFrameTracker.h
index 1b5bbb6dc1504382e61c8ee10682f7a03d57d31e..79beaa2c291331c96217ecd5d8eb5f353cb11eb5 100644
--- a/third_party/WebKit/Source/web/OpenedFrameTracker.h
+++ b/third_party/WebKit/Source/web/OpenedFrameTracker.h
@@ -27,8 +27,9 @@ public:
void add(WebFrame*);
void remove(WebFrame*);
- // Updates the opener for all tracked frames.
- void updateOpener(WebFrame*);
+ // Helper used when swapping a frame into the frame tree: this updates the
+ // opener for opened frames to point to the new frame being swapped in.
+ void transferTo(WebFrame*);
void traceFrames(Visitor*);
void traceFrames(InlinedGlobalMarkingVisitor);

Powered by Google App Engine
This is Rietveld 408576698