| Index: Source/WebKit/chromium/src/IDBFactoryBackendProxy.cpp
|
| ===================================================================
|
| --- Source/WebKit/chromium/src/IDBFactoryBackendProxy.cpp (revision 107406)
|
| +++ Source/WebKit/chromium/src/IDBFactoryBackendProxy.cpp (working copy)
|
| @@ -83,6 +83,10 @@
|
| WebSecurityOrigin origin(prpOrigin);
|
| WebFrameImpl* webFrame = WebFrameImpl::fromFrame(frame);
|
| WebViewImpl* webView = webFrame->viewImpl();
|
| + if (!webView) {
|
| + // Frame is closed, worker is terminaring.
|
| + return;
|
| + }
|
| if (webView->permissionClient() && !webView->permissionClient()->allowIndexedDB(webFrame, name, origin)) {
|
| callbacks->onError(WebIDBDatabaseError(0, "The user denied permission to access the database."));
|
| return;
|
|
|