diff --git a/Source/WebKitLegacy/haiku/API/WebPage.cpp b/Source/WebKitLegacy/haiku/API/WebPage.cpp index 90d29f19f42e3..f8431ccd447cd 100644 --- a/Source/WebKitLegacy/haiku/API/WebPage.cpp +++ b/Source/WebKitLegacy/haiku/API/WebPage.cpp @@ -635,10 +635,10 @@ WebCore::Page* BWebPage::page() const } WebCore::Page* BWebPage::createNewPage(BRect frame, bool modalDialog, - bool resizable, bool activate) + bool resizable, bool activate, BPrivate::Network::BUrlContext* context) { // Creating the BWebView in the application thread is exactly what we need anyway. - BWebView* view = new BWebView("web view"); + BWebView* view = new BWebView("web view", context); BWebPage* page = view->WebPage(); BMessage message(NEW_PAGE_CREATED); diff --git a/Source/WebKitLegacy/haiku/API/WebPage.h b/Source/WebKitLegacy/haiku/API/WebPage.h index 54ad319ea3a35..492a219d0eef0 100644 --- a/Source/WebKitLegacy/haiku/API/WebPage.h +++ b/Source/WebKitLegacy/haiku/API/WebPage.h @@ -163,7 +163,7 @@ class __attribute__ ((visibility ("default"))) BWebPage : private BHandler { WebCore::Page* createNewPage(BRect frame = BRect(), bool modalDialog = false, bool resizable = true, - bool activate = true); + bool activate = true, BPrivate::Network::BUrlContext* context = nullptr); BPrivate::Network::BUrlContext* GetContext(); BRect windowFrame(); diff --git a/Source/WebKitLegacy/haiku/WebCoreSupport/ChromeClientHaiku.cpp b/Source/WebKitLegacy/haiku/WebCoreSupport/ChromeClientHaiku.cpp index 867e5276e027b..7cc60287a3d9e 100644 --- a/Source/WebKitLegacy/haiku/WebCoreSupport/ChromeClientHaiku.cpp +++ b/Source/WebKitLegacy/haiku/WebCoreSupport/ChromeClientHaiku.cpp @@ -161,7 +161,8 @@ Page* ChromeClientHaiku::createWindow(Frame& /*frame*/, const WindowFeatures& fe if (features.height) windowFrame.bottom = windowFrame.top + *features.height - 1; - WebCore::Page* page = m_webPage->createNewPage(windowFrame, features.dialog, features.resizable); + WebCore::Page* page = m_webPage->createNewPage(windowFrame, features.dialog, + features.resizable, true, m_webPage->GetContext()); if (!page) return 0;