Revert "Add another BeforeUnloadType in support of discarding."
This reverts commit e200b3b1. Reason for revert: This CL seems to break tests. See issue 883160 for details Original change's description: > Add another BeforeUnloadType in support of discarding. > > In order to not discard sites with potential unsaved user state it is necessary > to run beforeunload handlers to see if they return the empty string or not. When running > handlers in this context it is undesirable to launch a modal dialog, but rather to > silently block the discard and continue running the page. > > This CL adds a new BeforeUnloadType to RenderFrameHostImpl in support of this. A > follow-up change will expose functionality for invoking DispatchBeforeUnload with > this BeforeUnloadType, and returning the results of the unload via a callback. > > BUG=877550 > > Change-Id: Iad029fb0f70f9f44695f15c5ca0c0f6e4ed7ff78 > Reviewed-on: https://chromium-review.googlesource.com/1208962 > Commit-Queue: Chris Hamilton <chrisha@chromium.org> > Reviewed-by: Alex Moshchuk <alexmos@chromium.org> > Cr-Commit-Position: refs/heads/master@{#590362} TBR=chrisha@chromium.org,alexmos@chromium.org Change-Id: If974ab384c3fdda13ca8e3eb89940d5a4026fa68 No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: 877550, 883160 Reviewed-on: https://chromium-review.googlesource.com/1220408Reviewed-by:Hitoshi Yoshida <peria@chromium.org> Commit-Queue: Hitoshi Yoshida <peria@chromium.org> Cr-Commit-Position: refs/heads/master@{#590575}
Showing
Please register or sign in to comment