Bug 150964

Summary: [EFL] Separate beforeunload confirm callback from confirm callback
Product: WebKit Reporter: Ryuan Choi <ryuan.choi>
Component: WebKit EFLAssignee: Ryuan Choi <ryuan.choi>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, lucas.de.marchi
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

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
Ryuan Choi
Comment 1 2015-11-05 17:31:34 PST
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.