WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
150964
[EFL] Separate beforeunload confirm callback from confirm callback
https://bugs.webkit.org/show_bug.cgi?id=150964
Summary
[EFL] Separate beforeunload confirm callback from confirm callback
Ryuan Choi
Reported
2015-11-05 17:17:05 PST
Browser need to distinguish beforeunload and confirm to modify the message. For example, Firefox does not show the message of beforeunload event.
Attachments
Patch
(8.77 KB, patch)
2015-11-05 17:31 PST
,
Ryuan Choi
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Ryuan Choi
Comment 1
2015-11-05 17:31:34 PST
Created
attachment 264904
[details]
Patch
Gyuyoung Kim
Comment 2
2015-11-05 17:47:25 PST
Comment on
attachment 264904
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=264904&action=review
> Source/WebKit2/UIProcess/API/efl/EwkView.cpp:1060 > + return true;
Why should we return true instead of false ?
Ryuan Choi
Comment 3
2015-11-05 18:48:04 PST
Comment on
attachment 264904
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=264904&action=review
>> Source/WebKit2/UIProcess/API/efl/EwkView.cpp:1060 >> + return true; > > Why should we return true instead of false ?
Beforeunload confirm pannel is for webpage(author) to ask that user really want to exit the current web page when requested navigation or close webview. So, IMO, it looks reasonable that default behavior is true, that leaves the current page or closes webview.
Gyuyoung Kim
Comment 4
2015-11-05 18:57:56 PST
Comment on
attachment 264904
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=264904&action=review
>>> Source/WebKit2/UIProcess/API/efl/EwkView.cpp:1060 >>> + return true; >> >> Why should we return true instead of false ? > > Beforeunload confirm pannel is for webpage(author) to ask that user really want to exit the current web page when requested navigation or close webview. > So, IMO, it looks reasonable that default behavior is true, that leaves the current page or closes webview.
Got it !
WebKit Commit Bot
Comment 5
2015-11-05 20:32:44 PST
Comment on
attachment 264904
[details]
Patch Clearing flags on attachment: 264904 Committed
r192091
: <
http://trac.webkit.org/changeset/192091
>
WebKit Commit Bot
Comment 6
2015-11-05 20:32:48 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