diff options
Diffstat (limited to 'Tools/MiniBrowser/win/BrowserView.cpp')
-rw-r--r-- | Tools/MiniBrowser/win/BrowserView.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Tools/MiniBrowser/win/BrowserView.cpp b/Tools/MiniBrowser/win/BrowserView.cpp index bd5dcba65..03a46cb19 100644 --- a/Tools/MiniBrowser/win/BrowserView.cpp +++ b/Tools/MiniBrowser/win/BrowserView.cpp @@ -82,13 +82,7 @@ void BrowserView::create(RECT webViewRect, BrowserWindow* parentWindow) { assert(!m_webView); - bool isShiftKeyDown = ::GetKeyState(VK_SHIFT) & HIGH_BIT_MASK_SHORT; - - WKContextRef context; - if (isShiftKeyDown) - context = WKContextGetSharedThreadContext(); - else - context = WKContextGetSharedProcessContext(); + static WKContextRef context = WKContextCreate(); m_webView = WKViewCreate(webViewRect, context, 0, parentWindow->window()); |