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

Issue 203053002: Add null check for frame when creating WebCore::Performance. (Closed)

Created:
6 years, 9 months ago by dcheng
Modified:
6 years, 9 months ago
Reviewers:
abarth-chromium
CC:
blink-reviews
Visibility:
Public.

Description

Add null check for frame when creating WebCore::Performance. This regression was introduced in r168256. The previous behavior depended on whether Frame had already been garbage collected after being removed from the DOM. If it had not been garbage collected yet, then it would return a Performance object, but if it had, then it would return null. This patch adds the now-necessary check that frame is non-null and makes the behavior consistent whether or not the underlying Frame object has already been garbage collected, which makes Firefox's behavior. BUG=350978 R=abarth@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169467

Patch Set 1 #

Patch Set 2 : Add rebaseline expectations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -45 lines) Patch
M LayoutTests/TestExpectations View 1 1 chunk +6 lines, -0 lines 0 comments Download
M LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-navigated-expected.txt View 1 chunk +4 lines, -4 lines 0 comments Download
A + LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed-and-gced.html View 2 chunks +11 lines, -1 line 0 comments Download
A + LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed-and-gced-expected.txt View 2 chunks +5 lines, -8 lines 0 comments Download
M LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed-expected.txt View 1 chunk +4 lines, -4 lines 0 comments Download
A + LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-and-gced.html View 2 chunks +11 lines, -1 line 0 comments Download
A + LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-and-gced-expected.txt View 2 chunks +10 lines, -9 lines 0 comments Download
M LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt View 1 chunk +4 lines, -4 lines 0 comments Download
M LayoutTests/fast/dom/Window/resources/window-property-collector.js View 2 chunks +1 line, -13 lines 0 comments Download
M Source/core/timing/Performance.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
dcheng
I haven't actually verified that Firefox does this, but I plan on doing so when ...
6 years, 9 months ago (2014-03-18 03:56:36 UTC) #1
abarth-chromium
lgtm
6 years, 9 months ago (2014-03-18 15:30:52 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcheng@chromium.org/203053002/1
6 years, 9 months ago (2014-03-18 15:30:59 UTC) #3
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-18 16:00:51 UTC) #4
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on mac_blink_rel
6 years, 9 months ago (2014-03-18 16:00:56 UTC) #5
Srini
On 2014/03/18 03:56:36, dcheng wrote: > I haven't actually verified that Firefox does this, but ...
6 years, 9 months ago (2014-03-18 16:09:53 UTC) #6
dcheng
The CQ bit was checked by dcheng@chromium.org
6 years, 9 months ago (2014-03-18 18:46:05 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcheng@chromium.org/203053002/20001
6 years, 9 months ago (2014-03-18 18:46:18 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-18 18:49:51 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_dbg
6 years, 9 months ago (2014-03-18 18:49:53 UTC) #10
dcheng
6 years, 9 months ago (2014-03-18 19:55:29 UTC) #11
Message was sent while issue was closed.
Committed patchset #2 manually as r169467 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698