WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
106979
[EFL][WK2] Implement runBeforeUnloadConfirmPanel on EFL
https://bugs.webkit.org/show_bug.cgi?id=106979
Summary
[EFL][WK2] Implement runBeforeUnloadConfirmPanel on EFL
Jaehun Lim
Reported
2013-01-15 21:01:36 PST
Support window.onBeforeUnload.
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
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Jaehun Lim
Comment 1
2013-01-15 22:51:55 PST
Created
attachment 182921
[details]
Patch
Benjamin Poulain
Comment 2
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.
Jaehun Lim
Comment 3
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.
Jaehun Lim
Comment 4
2013-01-16 01:30:01 PST
Created
attachment 182935
[details]
Fixed patch
Benjamin Poulain
Comment 5
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.
Jaehun Lim
Comment 6
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.
Jaehun Lim
Comment 7
2013-01-16 17:57:16 PST
Created
attachment 183076
[details]
Fixed patch
Jaehun Lim
Comment 8
2013-02-04 15:10:32 PST
Created
attachment 186471
[details]
Patch
WebKit Review Bot
Comment 9
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
>
WebKit Review Bot
Comment 10
2013-02-04 20:04:20 PST
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