WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
90953
[WK2][EFL] Add policy client to Ewk_View
https://bugs.webkit.org/show_bug.cgi?id=90953
Summary
[WK2][EFL] Add policy client to Ewk_View
Chris Dumez
Reported
2012-07-11 01:51:15 PDT
We need to support policy decisions in Ewk_View by defining a policy client and attaching it to the Ewk_View.
Attachments
Patch
(29.48 KB, patch)
2012-07-11 05:44 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(29.81 KB, patch)
2012-07-12 00:33 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(29.81 KB, patch)
2012-07-12 00:43 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2012-07-11 05:44:25 PDT
Created
attachment 151691
[details]
Patch
Kenneth Rohde Christiansen
Comment 2
2012-07-12 00:01:55 PDT
Comment on
attachment 151691
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=151691&action=review
> Source/WebKit2/UIProcess/API/efl/ewk_navigation_policy_decision.cpp:44 > + bool madePolicyDecision;
isnt it more like it is accepted? "didAccept"?
> Source/WebKit2/UIProcess/API/efl/ewk_navigation_policy_decision.h:46 > + EWK_NAVIGATION_TYPE_LINK_CLICKED,
I prefer LINK_ACTIVATED especially since it covers a linked being tapped by a finger
Chris Dumez
Comment 3
2012-07-12 00:30:17 PDT
Comment on
attachment 151691
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=151691&action=review
>> Source/WebKit2/UIProcess/API/efl/ewk_navigation_policy_decision.cpp:44 >> + bool madePolicyDecision; > > isnt it more like it is accepted? "didAccept"?
No, we want to know if "any" decision was made by the client (accept, reject or download). This is needed, to make a default policy decision ("accept" in this patch) in the case the client did not make an explicit decision.
>> Source/WebKit2/UIProcess/API/efl/ewk_navigation_policy_decision.h:46 >> + EWK_NAVIGATION_TYPE_LINK_CLICKED, > > I prefer LINK_ACTIVATED especially since it covers a linked being tapped by a finger
Good point. I will fix this and reupload.
Chris Dumez
Comment 4
2012-07-12 00:33:29 PDT
Created
attachment 151871
[details]
Patch Take Kenneth's feedback into consideration.
Kenneth Rohde Christiansen
Comment 5
2012-07-12 00:36:09 PDT
(In reply to
comment #3
)
> (From update of
attachment 151691
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=151691&action=review
> > >> Source/WebKit2/UIProcess/API/efl/ewk_navigation_policy_decision.cpp:44 > >> + bool madePolicyDecision; > > > > isnt it more like it is accepted? "didAccept"? > > No, we want to know if "any" decision was made by the client (accept, reject or download). This is needed, to make a default policy decision ("accept" in this patch) in the case the client did not make an explicit decision.
bool clientTookDecision; might be a bit more clear or actedUponByClient..
Chris Dumez
Comment 6
2012-07-12 00:42:37 PDT
Comment on
attachment 151691
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=151691&action=review
>>>> Source/WebKit2/UIProcess/API/efl/ewk_navigation_policy_decision.cpp:44 >>>> + bool madePolicyDecision; >>> >>> isnt it more like it is accepted? "didAccept"? >> >> No, we want to know if "any" decision was made by the client (accept, reject or download). This is needed, to make a default policy decision ("accept" in this patch) in the case the client did not make an explicit decision. > > bool clientTookDecision; might be a bit more clear > > or actedUponByClient..
Ok, I'll clarify.
Chris Dumez
Comment 7
2012-07-12 00:43:18 PDT
Created
attachment 151873
[details]
Patch Take Kenneth's feedback into consideration.
WebKit Review Bot
Comment 8
2012-07-12 01:35:51 PDT
Comment on
attachment 151873
[details]
Patch Clearing flags on attachment: 151873 Committed
r122426
: <
http://trac.webkit.org/changeset/122426
>
WebKit Review Bot
Comment 9
2012-07-12 01:35:57 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug