Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(284)

Issue 703383002: Prevent firing BeforeUnloadEvents re-entrantly (Closed)

Created:
6 years, 1 month ago by Nate Chapin
Modified:
6 years, 1 month ago
Reviewers:
dglazkov
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Project:
blink
Visibility:
Public.

Description

Prevent firing BeforeUnloadEvents re-entrantly This can happen when an onbeforeunload listener calls window.close(). Have a re-entrant invocation pretend that the user blocked the navigation, so that we can consistently obey the user's intent on the original invocation. BUG=430507 TEST=http/tests/misc/reentrant-beforeunload.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184985

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -0 lines) Patch
A LayoutTests/http/tests/misc/reentrant-beforeunload.html View 1 chunk +20 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/misc/reentrant-beforeunload-expected.txt View 1 chunk +2 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/misc/resources/reentrant-beforeunload-helper.html View 1 chunk +10 lines, -0 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
Nate Chapin
dglazkov, mind taking a look?
6 years, 1 month ago (2014-11-07 00:43:45 UTC) #2
dglazkov
lgtm
6 years, 1 month ago (2014-11-07 18:25:39 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/703383002/1
6 years, 1 month ago (2014-11-07 18:26:22 UTC) #5
commit-bot: I haz the power
6 years, 1 month ago (2014-11-07 19:16:36 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) as 184985

Powered by Google App Engine
This is Rietveld 408576698