Bug 43544 - [EFL]Implementation dispatchDecidePolicyForNavigationAction
Summary: [EFL]Implementation dispatchDecidePolicyForNavigationAction
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit EFL (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Enhancement
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-05 01:57 PDT by Ryuan Choi
Modified: 2010-08-11 10:15 PDT (History)
5 users (show)

See Also:


Attachments
Patch (10.41 KB, patch)
2010-08-05 02:16 PDT, Ryuan Choi
no flags Details | Formatted Diff | Diff
Patch (11.13 KB, patch)
2010-08-05 04:13 PDT, Ryuan Choi
no flags Details | Formatted Diff | Diff
Patch (4.86 KB, patch)
2010-08-05 19:40 PDT, Ryuan Choi
no flags Details | Formatted Diff | Diff
proposed patch (4.85 KB, patch)
2010-08-05 22:40 PDT, Ryuan Choi
no flags Details | Formatted Diff | Diff
Patch (5.03 KB, patch)
2010-08-08 23:10 PDT, Ryuan Choi
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryuan Choi 2010-08-05 01:57:24 PDT
I want to call some other application when user click mailto.

I think that FrameLoaderClientEfl::dispatchDecidePolicyForNavigationAction is proper function.
Comment 1 Ryuan Choi 2010-08-05 02:16:57 PDT
Created attachment 63565 [details]
Patch
Comment 2 Ryuan Choi 2010-08-05 04:13:45 PDT
Created attachment 63573 [details]
Patch
Comment 3 Ryuan Choi 2010-08-05 19:40:12 PDT
Created attachment 63681 [details]
Patch
Comment 4 Ryuan Choi 2010-08-05 22:40:29 PDT
Created attachment 63694 [details]
proposed patch

Sorry I found wrong EAPI option in ewk_private.h. I removed
Comment 5 Antonio Gomes 2010-08-06 09:16:44 PDT
Comment on attachment 63694 [details]
proposed patch

I think it looks good. I have one question:

> +
> +    PolicyAction policy;
> +    if (!ret)
> +        policy = PolicyIgnore;
> +    else {
> +        Frame* f = ewk_frame_core_get(m_frame);
> +        f->loader()->resetMultipleFormSubmissionProtection();
> +        policy = PolicyUse;
> +    }


You are unconditionally calling resetMultipleFormSubmissionProtection() . Should not you do so only with the NavicationAction involves that?

Se Qt's code below:

    if (!page->d->acceptNavigationRequest(m_webFrame, r, QWebPage::NavigationType(action.type()))) {
        if (action.type() == NavigationTypeFormSubmitted || action.type() == NavigationTypeFormResubmitted)
            m_frame->loader()->resetMultipleFormSubmissionProtection();
Comment 6 Ryuan Choi 2010-08-08 19:46:28 PDT
(In reply to comment #5)
> (From update of attachment 63694 [details])
> I think it looks good. I have one question:
> 
> > +
> > +    PolicyAction policy;
> > +    if (!ret)
> > +        policy = PolicyIgnore;
> > +    else {
> > +        Frame* f = ewk_frame_core_get(m_frame);
> > +        f->loader()->resetMultipleFormSubmissionProtection();
> > +        policy = PolicyUse;
> > +    }
> 
> 
> You are unconditionally calling resetMultipleFormSubmissionProtection() . Should not you do so only with the NavicationAction involves that?
> 
> Se Qt's code below:
> 
>     if (!page->d->acceptNavigationRequest(m_webFrame, r, QWebPage::NavigationType(action.type()))) {
>         if (action.type() == NavigationTypeFormSubmitted || action.type() == NavigationTypeFormResubmitted)
>             m_frame->loader()->resetMultipleFormSubmissionProtection();

Ok, I'll add action related code
Comment 7 Ryuan Choi 2010-08-08 23:10:12 PDT
Created attachment 63859 [details]
Patch
Comment 8 Antonio Gomes 2010-08-11 08:44:34 PDT
Comment on attachment 63859 [details]
Patch

r=me
Comment 9 WebKit Commit Bot 2010-08-11 10:15:23 PDT
Comment on attachment 63859 [details]
Patch

Clearing flags on attachment: 63859

Committed r65163: <http://trac.webkit.org/changeset/65163>
Comment 10 WebKit Commit Bot 2010-08-11 10:15:30 PDT
All reviewed patches have been landed.  Closing bug.