Bug 93648 - [Qt] Add support for HTML5 state object history API in FrameLoaderClientQt
Summary: [Qt] Add support for HTML5 state object history API in FrameLoaderClientQt
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Pierre Rossi
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-09 13:29 PDT by Pierre Rossi
Modified: 2012-08-11 06:26 PDT (History)
2 users (show)

See Also:


Attachments
Patch (3.95 KB, patch)
2012-08-09 13:42 PDT, Pierre Rossi
no flags Details | Formatted Diff | Diff
Patch (6.49 KB, patch)
2012-08-10 08:28 PDT, Pierre Rossi
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.