Bug 106979 - [EFL][WK2] Implement runBeforeUnloadConfirmPanel on EFL
Summary: [EFL][WK2] Implement runBeforeUnloadConfirmPanel on EFL
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit EFL (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-15 21:01 PST by Jaehun Lim
Modified: 2013-02-04 20:04 PST (History)
5 users (show)

See Also:


Attachments
Patch (2.43 KB, patch)
2013-01-15 22:51 PST, Jaehun Lim
benjamin: review-
benjamin: commit-queue-
Details | Formatted Diff | Diff
Fixed patch (9.27 KB, patch)
2013-01-16 01:30 PST, Jaehun Lim
benjamin: review-
Details | Formatted Diff | Diff
Fixed patch (3.13 KB, patch)
2013-01-16 17:57 PST, Jaehun Lim
no flags Details | Formatted Diff | Diff
Patch (3.29 KB, patch)
2013-02-04 15:10 PST, Jaehun Lim
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jaehun Lim 2013-01-15 21:01:36 PST
Support window.onBeforeUnload.
Comment 1 Jaehun Lim 2013-01-15 22:51:55 PST
Created attachment 182921 [details]
Patch
Comment 2 Benjamin Poulain 2013-01-16 00:08:26 PST
Comment on attachment 182921 [details]
Patch

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

> Source/WebKit2/ChangeLog:3
> +        [EFL][WK2] Add support for onBeforeUnload handling

This title is confusing. Please update it.

> Source/WebKit2/ChangeLog:12
> +        (WebKit):

You can remove this, it is likely generated from the namespace.

> Source/WebKit2/UIProcess/efl/PageUIClientEfl.cpp:231
>  
> +    uiClient.runBeforeUnloadConfirmPanel = runBeforeUnloadConfirmPanel;
> +

For clarity, you should keep those in the order of the PageUIClient.

> Source/WebKit2/UIProcess/efl/PageUIClientEfl.h:74
> +    static bool runBeforeUnloadConfirmPanel(WKPageRef, WKStringRef, WKFrameRef, const void*);

ditto.
Comment 3 Jaehun Lim 2013-01-16 01:27:24 PST
Comment on attachment 182921 [details]
Patch

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

>> Source/WebKit2/ChangeLog:3
>> +        [EFL][WK2] Add support for onBeforeUnload handling
> 
> This title is confusing. Please update it.

ok. I'll update.

>> Source/WebKit2/ChangeLog:12
>> +        (WebKit):
> 
> You can remove this, it is likely generated from the namespace.

ok.

>> Source/WebKit2/UIProcess/efl/PageUIClientEfl.cpp:231
>> +
> 
> For clarity, you should keep those in the order of the PageUIClient.

The current function ordering in PageUIClientEfl is confused. I'll fix it together.
Comment 4 Jaehun Lim 2013-01-16 01:30:01 PST
Created attachment 182935 [details]
Fixed patch
Comment 5 Benjamin Poulain 2013-01-16 12:39:51 PST
Comment on attachment 182935 [details]
Fixed patch

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

I am confused. You reorder the functions of PagreUIClient but it does not really match the order of WKPageUIClient (createNewPage for example).
You ordered PageUIClientEfl.h (which is nice) but the implementaion of PageUIClientEfl::PageUIClientEfl keeps the old order.

Please make a separate patch to clean EFL PageUIClient, we land that first, and then we do the implementation for runBeforeUnloadConfirmPanel.

> Source/WebKit2/ChangeLog:11
> +
> +        Implement runBeforeUnloadConfirmPanel() to support window.onbeforeunload.
> +        And adjsust the ordering of functions to kepp in sync with PageUIClient.
> +
> +        * UIProcess/efl/PageUIClientEfl.cpp:

Your patch now also sort the callbacks of PageUIClient correctly. You should have mentioned that in your ChangeLog.
Comment 6 Jaehun Lim 2013-01-16 16:19:39 PST
(In reply to comment #5)
> (From update of attachment 182935 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=182935&action=review
> 
> I am confused. You reorder the functions of PagreUIClient but it does not really match the order of WKPageUIClient (createNewPage for example).
> You ordered PageUIClientEfl.h (which is nice) but the implementaion of PageUIClientEfl::PageUIClientEfl keeps the old order.
> 
> Please make a separate patch to clean EFL PageUIClient, we land that first, and then we do the implementation for runBeforeUnloadConfirmPanel.
> 
> > Source/WebKit2/ChangeLog:11
> > +
> > +        Implement runBeforeUnloadConfirmPanel() to support window.onbeforeunload.
> > +        And adjsust the ordering of functions to kepp in sync with PageUIClient.
> > +
> > +        * UIProcess/efl/PageUIClientEfl.cpp:
> 
> Your patch now also sort the callbacks of PageUIClient correctly. You should have mentioned that in your ChangeLog.

Thank you for your review.
I uploaded another patch. Please see the https://bugs.webkit.org/show_bug.cgi?id=107060.
I'll upload new patch for runBeforeUnloadConfirmPanel after fixing style issues.
Comment 7 Jaehun Lim 2013-01-16 17:57:16 PST
Created attachment 183076 [details]
Fixed patch
Comment 8 Jaehun Lim 2013-02-04 15:10:32 PST
Created attachment 186471 [details]
Patch
Comment 9 WebKit Review Bot 2013-02-04 20:04:13 PST
Comment on attachment 186471 [details]
Patch

Clearing flags on attachment: 186471

Committed r141848: <http://trac.webkit.org/changeset/141848>
Comment 10 WebKit Review Bot 2013-02-04 20:04:20 PST
All reviewed patches have been landed.  Closing bug.