diff options
Diffstat (limited to 'WebCore/platform/network/android/ResourceHandleAndroid.cpp')
-rw-r--r-- | WebCore/platform/network/android/ResourceHandleAndroid.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/WebCore/platform/network/android/ResourceHandleAndroid.cpp b/WebCore/platform/network/android/ResourceHandleAndroid.cpp index c4332d0..1154b47 100644 --- a/WebCore/platform/network/android/ResourceHandleAndroid.cpp +++ b/WebCore/platform/network/android/ResourceHandleAndroid.cpp @@ -52,7 +52,8 @@ bool ResourceHandle::start(Frame* frame) { DocumentLoader* docLoader = frame->loader()->activeDocumentLoader(); MainResourceLoader* mainLoader = docLoader->mainResourceLoader(); - bool isMainResource = mainLoader && (mainLoader->handle() == this); + bool isMainResource = + static_cast<void*>(mainLoader) == static_cast<void*>(client()); PassRefPtr<ResourceLoaderAndroid> loader = ResourceLoaderAndroid::start(this, d->m_request, frame->loader()->client(), isMainResource, false); |