| Index: Source/WebKit/chromium/src/WebWorkerClientImpl.cpp
|
| ===================================================================
|
| --- Source/WebKit/chromium/src/WebWorkerClientImpl.cpp (revision 97635)
|
| +++ Source/WebKit/chromium/src/WebWorkerClientImpl.cpp (working copy)
|
| @@ -188,6 +188,8 @@
|
| bool WebWorkerClientImpl::allowFileSystem()
|
| {
|
| WebKit::WebViewImpl* webView = m_webFrame->viewImpl();
|
| + if (!webView)
|
| + return false;
|
| return !webView->permissionClient() || webView->permissionClient()->allowFileSystem(m_webFrame);
|
| }
|
|
|
| @@ -199,8 +201,10 @@
|
|
|
| bool WebWorkerClientImpl::allowDatabase(WebFrame*, const WebString& name, const WebString& displayName, unsigned long estimatedSize)
|
| {
|
| - WebKit::WebViewImpl* webView = m_webFrame->viewImpl();
|
| - return !webView->permissionClient() || webView->permissionClient()->allowDatabase(m_webFrame, name, displayName, estimatedSize);
|
| + WebKit::WebViewImpl* webView = m_webFrame->viewImpl();
|
| + if (!webView)
|
| + return false;
|
| + return !webView->permissionClient() || webView->permissionClient()->allowDatabase(m_webFrame, name, displayName, estimatedSize);
|
| }
|
|
|
| void WebWorkerClientImpl::dispatchDevToolsMessage(const WebString& message)
|
|
|