Changeset 149148 in webkit
- Timestamp:
- Apr 25, 2013 3:25:07 PM (11 years ago)
- Location:
- trunk/Tools
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r149143 r149148 1 2013-04-25 Alexey Proskuryakov <ap@apple.com> 2 3 Pass relatedPage when creating a page in WebKitTestRunner 4 https://bugs.webkit.org/show_bug.cgi?id=115206 5 6 Reviewed by Geoffrey Garen. 7 8 To make sure that window.open() opens in the same process even when using multiple processes. 9 10 * WebKitTestRunner/PlatformWebView.h: 11 * WebKitTestRunner/TestController.cpp: 12 (WTR::TestController::createOtherPage): 13 (WTR::TestController::createWebViewWithOptions): 14 * WebKitTestRunner/efl/PlatformWebViewEfl.cpp: 15 (WTR::PlatformWebView::PlatformWebView): 16 * WebKitTestRunner/gtk/PlatformWebViewGtk.cpp: 17 (WTR::PlatformWebView::PlatformWebView): 18 * WebKitTestRunner/mac/PlatformWebViewMac.mm: 19 (-[TestRunnerWKView initWithFrame:contextRef:pageGroupRef:relatedToPage:useTiledDrawing:]): 20 (WTR::PlatformWebView::PlatformWebView): 21 * WebKitTestRunner/qt/PlatformWebViewQt.cpp: 22 (WTR::PlatformWebView::PlatformWebView): 23 * WebKitTestRunner/win/PlatformWebViewWin.cpp: 24 (WTR::PlatformWebView::PlatformWebView): 25 1 26 2013-04-25 Ryosuke Niwa <rniwa@webkit.org> 2 27 -
trunk/Tools/WebKitTestRunner/PlatformWebView.h
r147197 r149148 69 69 class PlatformWebView { 70 70 public: 71 PlatformWebView(WKContextRef, WKPageGroupRef, WK DictionaryRef options = 0);71 PlatformWebView(WKContextRef, WKPageGroupRef, WKPageRef relatedPage, WKDictionaryRef options = 0); 72 72 ~PlatformWebView(); 73 73 -
trunk/Tools/WebKitTestRunner/TestController.cpp
r149087 r149148 191 191 PlatformWebView* parentView = static_cast<PlatformWebView*>(const_cast<void*>(clientInfo)); 192 192 193 PlatformWebView* view = new PlatformWebView(WKPageGetContext(oldPage), WKPageGetPageGroup(oldPage), parentView->options());193 PlatformWebView* view = new PlatformWebView(WKPageGetContext(oldPage), WKPageGetPageGroup(oldPage), oldPage, parentView->options()); 194 194 WKPageRef newPage = view->page(); 195 195 … … 388 388 void TestController::createWebViewWithOptions(WKDictionaryRef options) 389 389 { 390 m_mainWebView = adoptPtr(new PlatformWebView(m_context.get(), m_pageGroup.get(), options));390 m_mainWebView = adoptPtr(new PlatformWebView(m_context.get(), m_pageGroup.get(), 0, options)); 391 391 WKPageUIClient pageUIClient = { 392 392 kWKPageUIClientCurrentVersion, -
trunk/Tools/WebKitTestRunner/efl/PlatformWebViewEfl.cpp
r148963 r149148 55 55 } 56 56 57 PlatformWebView::PlatformWebView(WKContextRef context, WKPageGroupRef pageGroup, WK DictionaryRef options)57 PlatformWebView::PlatformWebView(WKContextRef context, WKPageGroupRef pageGroup, WKPageRef /* relatedPage */, WKDictionaryRef options) 58 58 : m_options(options) 59 59 { -
trunk/Tools/WebKitTestRunner/gtk/PlatformWebViewGtk.cpp
r145869 r149148 34 34 namespace WTR { 35 35 36 PlatformWebView::PlatformWebView(WKContextRef context, WKPageGroupRef pageGroup, WK DictionaryRef options)36 PlatformWebView::PlatformWebView(WKContextRef context, WKPageGroupRef pageGroup, WKPageRef /* relatedPage */, WKDictionaryRef options) 37 37 : m_view(WKViewCreate(context, pageGroup)) 38 38 , m_window(gtk_window_new(GTK_WINDOW_POPUP)) -
trunk/Tools/WebKitTestRunner/mac/PlatformWebViewMac.mm
r149087 r149148 43 43 } 44 44 45 - (id)initWithFrame:(NSRect)frame contextRef:(WKContextRef)context pageGroupRef:(WKPageGroupRef)pageGroup useTiledDrawing:(BOOL)useTiledDrawing;45 - (id)initWithFrame:(NSRect)frame contextRef:(WKContextRef)context pageGroupRef:(WKPageGroupRef)pageGroup relatedToPage:(WKPageRef)relatedPage useTiledDrawing:(BOOL)useTiledDrawing; 46 46 47 47 @property (nonatomic, assign) BOOL useTiledDrawing; … … 52 52 @synthesize useTiledDrawing = _useTiledDrawing; 53 53 54 - (id)initWithFrame:(NSRect)frame contextRef:(WKContextRef)context pageGroupRef:(WKPageGroupRef)pageGroup useTiledDrawing:(BOOL)useTiledDrawing54 - (id)initWithFrame:(NSRect)frame contextRef:(WKContextRef)context pageGroupRef:(WKPageGroupRef)pageGroup relatedToPage:(WKPageRef)relatedPage useTiledDrawing:(BOOL)useTiledDrawing 55 55 { 56 56 _useTiledDrawing = useTiledDrawing; 57 return [super initWithFrame:frame contextRef:context pageGroupRef:pageGroup ];57 return [super initWithFrame:frame contextRef:context pageGroupRef:pageGroup relatedToPage:relatedPage]; 58 58 } 59 59 … … 117 117 namespace WTR { 118 118 119 PlatformWebView::PlatformWebView(WKContextRef contextRef, WKPageGroupRef pageGroupRef, WK DictionaryRef options)119 PlatformWebView::PlatformWebView(WKContextRef contextRef, WKPageGroupRef pageGroupRef, WKPageRef relatedPage, WKDictionaryRef options) 120 120 : m_windowIsKey(true) 121 121 , m_options(options) … … 126 126 127 127 NSRect rect = NSMakeRect(0, 0, TestController::viewWidth, TestController::viewHeight); 128 m_view = [[TestRunnerWKView alloc] initWithFrame:rect contextRef:contextRef pageGroupRef:pageGroupRef useTiledDrawing:useTiledDrawing];128 m_view = [[TestRunnerWKView alloc] initWithFrame:rect contextRef:contextRef pageGroupRef:pageGroupRef relatedToPage:relatedPage useTiledDrawing:useTiledDrawing]; 129 129 [m_view setWindowOcclusionDetectionEnabled:NO]; 130 130 -
trunk/Tools/WebKitTestRunner/qt/PlatformWebViewQt.cpp
r145869 r149148 78 78 }; 79 79 80 PlatformWebView::PlatformWebView(WKContextRef contextRef, WKPageGroupRef pageGroupRef, WK DictionaryRef options)80 PlatformWebView::PlatformWebView(WKContextRef contextRef, WKPageGroupRef pageGroupRef, WKPageRef /* relatedPage */, WKDictionaryRef options) 81 81 : m_windowIsKey(true) 82 82 , m_options(options) -
trunk/Tools/WebKitTestRunner/win/PlatformWebViewWin.cpp
r145869 r149148 49 49 } 50 50 51 PlatformWebView::PlatformWebView(WKContextRef contextRef, WKPageGroupRef pageGroupRef, WK DictionaryRef /*options*/)51 PlatformWebView::PlatformWebView(WKContextRef contextRef, WKPageGroupRef pageGroupRef, WKPageRef /* relatedPage */, WKDictionaryRef /*options*/) 52 52 : m_windowIsKey(true) 53 53 {
Note: See TracChangeset
for help on using the changeset viewer.