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

Issue 984983002: Do not fire didStartLoading and didStopLoading events twice. (Closed)

Created:
5 years, 9 months ago by Fabrice (no longer in Chrome)
Modified:
5 years, 9 months ago
Reviewers:
clamy, Nate Chapin
CC:
blink-reviews, tyoshino+watch_chromium.org, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, gavinp+loader_chromium.org, rwlbuis, jbroman
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Do not fire didStartLoading and didStopLoading events twice. This issue was found by extra DCHECK on the Chromium side, ensuring these events are never fired more than once. BUG=464675, 429399 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=191464

Patch Set 1 #

Total comments: 2

Patch Set 2 : Change new method name #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -3 lines) Patch
M Source/core/dom/Document.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/loader/FrameLoader.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 18 (7 generated)
Fabrice (no longer in Chrome)
PTAL The issue is that the current test makes FrameLoader::updateForSameDocumentNavigation call did(Start|Stop)Loading a second time ...
5 years, 9 months ago (2015-03-06 14:44:01 UTC) #2
clamy
Thanks! Lgtm
5 years, 9 months ago (2015-03-06 15:11:03 UTC) #3
Nate Chapin
https://codereview.chromium.org/984983002/diff/1/Source/core/dom/Document.h File Source/core/dom/Document.h (right): https://codereview.chromium.org/984983002/diff/1/Source/core/dom/Document.h#newcode914 Source/core/dom/Document.h:914: bool shouldFireLoadingEvents() const { return m_loadEventProgress == LoadEventCompleted; } ...
5 years, 9 months ago (2015-03-06 18:22:20 UTC) #4
Fabrice (no longer in Chrome)
https://codereview.chromium.org/984983002/diff/1/Source/core/dom/Document.h File Source/core/dom/Document.h (right): https://codereview.chromium.org/984983002/diff/1/Source/core/dom/Document.h#newcode914 Source/core/dom/Document.h:914: bool shouldFireLoadingEvents() const { return m_loadEventProgress == LoadEventCompleted; } ...
5 years, 9 months ago (2015-03-06 18:39:14 UTC) #5
Nate Chapin
On 2015/03/06 18:39:14, Fabrice wrote: > https://codereview.chromium.org/984983002/diff/1/Source/core/dom/Document.h > File Source/core/dom/Document.h (right): > > https://codereview.chromium.org/984983002/diff/1/Source/core/dom/Document.h#newcode914 > ...
5 years, 9 months ago (2015-03-06 18:40:00 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/984983002/20001
5 years, 9 months ago (2015-03-06 18:43:44 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/984983002/20001
5 years, 9 months ago (2015-03-06 22:03:47 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/984983002/20001
5 years, 9 months ago (2015-03-06 22:46:41 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://src.chromium.org/viewvc/blink?view=rev&revision=191464
5 years, 9 months ago (2015-03-07 00:29:59 UTC) #16
f(malita)
On 2015/03/07 00:29:59, I haz the power (commit-bot) wrote: > Committed patchset #2 (id:20001) as ...
5 years, 9 months ago (2015-03-07 21:52:58 UTC) #17
f(malita)
5 years, 9 months ago (2015-03-07 21:55:34 UTC) #18
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/989923002/ by fmalita@chromium.org.

The reason for reverting is:
WebContentsImplBrowserTest.ClearNonVisiblePendingOnFail timeouts, blocking
rolls:

http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_....

Powered by Google App Engine
This is Rietveld 408576698