Reviewed by Hyatt and Lars.
- fixed <rdar://problem/5201758> REGRESSION: Stop button enabled and other problems caused by [WebView currentURL] returning non-nil for empty window
* WebCore.exp: export new symbol
* loader/FrameLoader.cpp:
(WebCore::FrameLoader::begin): move marker that we committed a real doc load from here...
(WebCore::FrameLoader::transitionToCommitted): ...to here
(WebCore::FrameLoader::frameHasLoaded): check that we have at least started loading something
besides the initial empty doc.
* loader/FrameLoader.h:
WebKit:
Reviewed by Hyatt and Lars.
- fixed <rdar://problem/5201758> REGRESSION: Stop button enabled and other problems caused by [WebView currentURL] returning non-nil for empty window
* WebView/WebDataSource.mm:
(-[WebDataSource request]): Return nil when we are still showing the initial empty doc
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@21479
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2007-05-15 Maciej Stachowiak <mjs@apple.com>
+
+ Reviewed by Hyatt and Lars.
+
+ - fixed <rdar://problem/5201758> REGRESSION: Stop button enabled and other problems caused by [WebView currentURL] returning non-nil for empty window
+
+ * WebCore.exp: export new symbol
+ * loader/FrameLoader.cpp:
+ (WebCore::FrameLoader::begin): move marker that we committed a real doc load from here...
+ (WebCore::FrameLoader::transitionToCommitted): ...to here
+ (WebCore::FrameLoader::frameHasLoaded): check that we have at least started loading something
+ besides the initial empty doc.
+ * loader/FrameLoader.h:
+
2007-05-14 Justin Garcia <justin.garcia@apple.com>
Reviewed by ggaren
__ZNK7WebCore11ContextMenu19platformDescriptionEv
__ZNK7WebCore11FrameLoader10isCompleteEv
__ZNK7WebCore11FrameLoader14documentLoaderEv
+__ZNK7WebCore11FrameLoader14frameHasLoadedEv
__ZNK7WebCore11FrameLoader15containsPluginsEv
__ZNK7WebCore11FrameLoader15firstLayoutDoneEv
__ZNK7WebCore11FrameLoader16outgoingReferrerEv
RefPtr<Document> document = DOMImplementation::instance()->createDocument(m_responseMIMEType, m_frame, m_frame->inViewSourceMode());
m_frame->setDocument(document);
- if (!m_creatingInitialEmptyDocument)
- m_committedFirstRealDocumentLoad = true;
-
document->setURL(m_URL.url());
// We prefer m_baseURL over m_URL because m_URL changes when we are
// about to load a new page.
return docLoader->isLoadingMainResource() || docLoader->isLoadingSubresources() || docLoader->isLoadingPlugIns();
}
+bool FrameLoader::frameHasLoaded() const
+{
+ return m_committedFirstRealDocumentLoad || isLoading() && !m_creatingInitialEmptyDocument;
+}
+
+
void FrameLoader::setDocumentLoader(DocumentLoader* loader)
{
if (!loader && !m_documentLoader)
if (m_creatingInitialEmptyDocument)
return;
+ m_committedFirstRealDocumentLoad = true;
+
m_client->dispatchDidCommitLoad();
// If we have a title let the WebView know about it.
bool isLoadingMainResource() const;
bool isLoading() const;
+ bool frameHasLoaded() const;
int numPendingOrLoadingRequests(bool recurse) const;
bool isReloading() const;
+2007-05-15 Maciej Stachowiak <mjs@apple.com>
+
+ Reviewed by Hyatt and Lars.
+
+ - fixed <rdar://problem/5201758> REGRESSION: Stop button enabled and other problems caused by [WebView currentURL] returning non-nil for empty window
+
+ * WebView/WebDataSource.mm:
+ (-[WebDataSource request]): Return nil when we are still showing the initial empty doc
+
2007-05-14 Geoffrey Garen <ggaren@apple.com>
Reviewed by Darin Adler.
- (NSMutableURLRequest *)request
{
- // FIXME: XXX
- return (NSMutableURLRequest*)_private->loader->request().nsURLRequest();
+ if (!_private->loader->frameLoader()->frameHasLoaded())
+ return nil;
+
+ // FIXME: this cast is dubious
+ return (NSMutableURLRequest *)_private->loader->request().nsURLRequest();
}
- (NSURLResponse *)response