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

Issue 2782443002: Revert of Move beforeunload hang timer duties to its own timer.

Created:
3 years, 9 months ago by Nico
Modified:
3 years, 9 months ago
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of Move beforeunload hang timer duties to its own timer. (patchset #6 id:100001 of https://codereview.chromium.org/2738943002/ ) Reason for revert: Speculative, might have caused https://crbug.com/705306 Original issue's description: > Move beforeunload hang timer duties to its own timer. > > 1. Just because a beforeunload dialog was closed, it doesn't mean that the frame > necessarily was waiting for a beforeunload ack. (If navigation happened in the > renderer entirely, it could decide to run beforeunload without the browser > knowing; the whole "waiting for beforeunload ack" deal is in the situation where > the browser forces the page to run a beforeunload handler if it has one.) Thus > blindly restarting the beforeunload ack timer just because it was a beforeunload > dialog was wrong. Thus this reverts r453323. > > 2. r453323 was trying to address a real problem: what if the parent frame was > waiting for a beforeunload ack but the child frame had the beforeunload handler > and showed the dialog? But the problem is more general, as _any_ parent frame > could have been asked to run beforeunload handlers and could have an ack > pending. So that's what's with the walking up the frame tree to both suspend the > timer when the dialog is shown, and to resume it when the dialog is closed. > > BUG=418266 > TEST=no user-visible change > CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation > > Review-Url: https://codereview.chromium.org/2738943002 > Cr-Commit-Position: refs/heads/master@{#457223} > Committed: https://chromium.googlesource.com/chromium/src/+/2d7d2c3632187e2cfaaa5c6ec26d3adb3ae784b0 TBR=creis@chromium.org,dtapuska@chromium.org,avi@chromium.org # Not skipping CQ checks because original CL landed more than 1 days ago. BUG=418266

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -176 lines) Patch
M content/browser/frame_host/render_frame_host_impl.h View 3 chunks +1 line, -8 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 7 chunks +32 lines, -37 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl_browsertest.cc View 2 chunks +0 lines, -125 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 chunk +8 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 3 chunks +14 lines, -1 line 0 comments Download

Messages

Total messages: 7 (2 generated)
Nico
Created Revert of Move beforeunload hang timer duties to its own timer.
3 years, 9 months ago (2017-03-27 18:45:04 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2782443002/1
3 years, 9 months ago (2017-03-27 18:45:58 UTC) #3
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/178213) ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 9 months ago (2017-03-27 18:49:46 UTC) #5
Nico
Bleh, patch failure. Avi, can you either take a look at the bug or revert ...
3 years, 9 months ago (2017-03-27 18:52:48 UTC) #6
Avi (use Gerrit)
3 years, 9 months ago (2017-03-27 18:57:07 UTC) #7
Unsurprising; it's behind a followup patch.

I'm looking at the bug.

On Mon, Mar 27, 2017 at 2:52 PM, Nico Weber <thakis@chromium.org> wrote:

> Bleh, patch failure. Avi, can you either take a look at the bug or revert
> this manually?
>
> On Mon, Mar 27, 2017 at 2:49 PM, commit-bot@chromium.org via
> codereview.chromium.org <reply@chromiumcodereview-hr.appspotmail.com>
> wrote:
>
>> Try jobs failed on following builders:
>> ios-device on master.tryserver.chromium.mac (JOB_FAILED,
>> http://build.chromium.org/p/tryserver.chromium.mac/builders/
>> ios-device/builds/178213)
>> ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED,
>> http://build.chromium.org/p/tryserver.chromium.mac/builders/
>> ios-simulator-xcode-clang/builds/67214)
>> mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED,
>> http://build.chromium.org/p/tryserver.chromium.mac/builders/
>> mac_chromium_compile_dbg_ng/builds/382365)
>> mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED,
>> http://build.chromium.org/p/tryserver.chromium.mac/builders/
>> mac_chromium_rel_ng/builds/415600)
>>
>> https://codereview.chromium.org/2782443002/
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698