⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 244106 in webkit


Ignore:
Timestamp:
Apr 10, 2019, 1:00:41 AM (7 years ago)
Author:
commit-queue@webkit.org
Message:

[WinCairo][MiniBrowser] Pull down menu "Disable JavaScript" doesn't work.
https://bugs.webkit.org/show_bug.cgi?id=196727

Patch by Takashi Komori <Takashi.Komori@sony.com> on 2019-04-10
Reviewed by Fujii Hironori.

  • MiniBrowser/win/WebKitBrowserWindow.cpp:

(WebKitBrowserWindow::create):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r244102 r244106  
     12019-04-10  Takashi Komori  <Takashi.Komori@sony.com>
     2
     3        [WinCairo][MiniBrowser] Pull down menu "Disable JavaScript" doesn't work.
     4        https://bugs.webkit.org/show_bug.cgi?id=196727
     5
     6        Reviewed by Fujii Hironori.
     7
     8        * MiniBrowser/win/WebKitBrowserWindow.cpp:
     9        (WebKitBrowserWindow::create):
     10
    1112019-04-09  Aakash Jain  <aakash_jain@apple.com>
    212
  • trunk/Tools/MiniBrowser/win/WebKitBrowserWindow.cpp

    r243685 r244106  
    107107Ref<BrowserWindow> WebKitBrowserWindow::create(HWND mainWnd, HWND urlBarWnd, bool, bool)
    108108{
    109     auto conf = WKPageConfigurationCreate();
    110 
    111     auto prefs = WKPreferencesCreate();
    112     WKPreferencesSetDeveloperExtrasEnabled(prefs, true);
    113     WKPageConfigurationSetPreferences(conf, prefs);
    114 
    115     auto context = WKContextCreateWithConfiguration(nullptr);
    116     WKPageConfigurationSetContext(conf, context);
    117 
    118     return adoptRef(*new WebKitBrowserWindow(conf, mainWnd, urlBarWnd));
     109    auto conf = adoptWK(WKPageConfigurationCreate());
     110
     111    auto prefs = adoptWK(WKPreferencesCreate());
     112
     113    auto pageGroup = adoptWK(WKPageGroupCreateWithIdentifier(createWKString("WinMiniBrowser").get()));
     114    WKPageConfigurationSetPageGroup(conf.get(), pageGroup.get());
     115    WKPageGroupSetPreferences(pageGroup.get(), prefs.get());
     116
     117    WKPreferencesSetDeveloperExtrasEnabled(prefs.get(), true);
     118    WKPageConfigurationSetPreferences(conf.get(), prefs.get());
     119
     120    auto context =adoptWK(WKContextCreateWithConfiguration(nullptr));
     121    WKPageConfigurationSetContext(conf.get(), context.get());
     122
     123    return adoptRef(*new WebKitBrowserWindow(conf.get(), mainWnd, urlBarWnd));
    119124}
    120125
Note: See TracChangeset for help on using the changeset viewer.