Bug 93648

Summary: [Qt] Add support for HTML5 state object history API in FrameLoaderClientQt
Product: WebKit Reporter: Pierre Rossi <pierre.rossi>
Component: New BugsAssignee: Pierre Rossi <pierre.rossi>
Status: RESOLVED FIXED    
Severity: Normal CC: hausmann, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch none

Description Pierre Rossi 2012-08-09 13:29:42 PDT
[Qt] Add support for HTML5 state object history API in FrameLoaderClientQt
Comment 1 Pierre Rossi 2012-08-09 13:42:27 PDT
Created attachment 157533 [details]
Patch
Comment 2 Simon Hausmann 2012-08-09 22:20:59 PDT
Comment on attachment 157533 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=157533&action=review

> Source/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp:388
> +void FrameLoaderClientQt::dispatchDidNavigateWithinPage()
> +{
> +    if (!m_webFrame)
> +        return;
> +
> +    FrameLoader* loader = m_frame->loader();
> +    bool loaderCompleted = !(loader->activeDocumentLoader() && loader->activeDocumentLoader()->isLoadingInAPISense());
> +
> +    if (!loaderCompleted)
> +        return;
> +
> +    dispatchDidCommitLoad();
> +    dispatchDidFinishLoad();
> +}

If this is all cross-platform, would it make sense to have this in the base class? Just wondering. How is it done in WK2?
Comment 3 Pierre Rossi 2012-08-10 08:28:42 PDT
Created attachment 157735 [details]
Patch
Comment 4 Kenneth Rohde Christiansen 2012-08-10 08:59:32 PDT
Comment on attachment 157735 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=157735&action=review

> Source/WebKit/qt/ChangeLog:8
> +        Add support for push/replace/pop by implementing dispatchDidNavigateWithinPage.

Basically all you are doing it to make sure the urlChanged signal is fired etc, all the history() methods already have the right state.
Comment 5 WebKit Review Bot 2012-08-11 06:26:43 PDT
Comment on attachment 157735 [details]
Patch

Clearing flags on attachment: 157735

Committed r125352: <http://trac.webkit.org/changeset/125352>
Comment 6 WebKit Review Bot 2012-08-11 06:26:47 PDT
All reviewed patches have been landed.  Closing bug.