Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Source/WebKitLegacy/haiku/API/WebPage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion Source/WebKitLegacy/haiku/API/WebPage.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down