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

Issue 307223002: Make sure we never pass a null Frame to Document::canNavigate() (Closed)

Created:
6 years, 6 months ago by Inactive
Modified:
6 years, 6 months ago
Reviewers:
adamk, eseidel
CC:
blink-reviews, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, gavinp+loader_chromium.org, Nate Chapin, rwlbuis
Visibility:
Public.

Description

Make sure we never pass a null Frame to Document::canNavigate() Make sure we never pass a null Frame to Document::canNavigate() and update it to take the Frame by reference to const. It makes little sense to pass null to a canNavigate() function, especially considering the implementation was returning true in this case (there was a FIXME about it). R=adamk@chromium.org, eseidel@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175295

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -21 lines) Patch
M Source/core/dom/Document.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/Document.cpp View 5 chunks +9 lines, -15 lines 0 comments Download
M Source/core/frame/DOMWindow.cpp View 3 chunks +4 lines, -3 lines 0 comments Download
M Source/core/frame/Frame.h View 1 chunk +12 lines, -0 lines 2 comments Download
M Source/core/frame/History.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/loader/FrameLoader.cpp View 1 chunk +1 line, -1 line 2 comments Download

Messages

Total messages: 9 (0 generated)
Inactive
6 years, 6 months ago (2014-06-02 02:36:40 UTC) #1
eseidel
https://codereview.chromium.org/307223002/diff/1/Source/core/loader/FrameLoader.cpp File Source/core/loader/FrameLoader.cpp (right): https://codereview.chromium.org/307223002/diff/1/Source/core/loader/FrameLoader.cpp#newcode1389 Source/core/loader/FrameLoader.cpp:1389: if (!frame || !activeDocument->canNavigate(*frame)) So this is the magic ...
6 years, 6 months ago (2014-06-02 05:19:28 UTC) #2
eseidel
https://codereview.chromium.org/307223002/diff/1/Source/core/frame/Frame.h File Source/core/frame/Frame.h (right): https://codereview.chromium.org/307223002/diff/1/Source/core/frame/Frame.h#newcode145 Source/core/frame/Frame.h:145: // Allow equality comparisons of Frames by reference or ...
6 years, 6 months ago (2014-06-02 05:20:27 UTC) #3
Inactive
https://codereview.chromium.org/307223002/diff/1/Source/core/frame/Frame.h File Source/core/frame/Frame.h (right): https://codereview.chromium.org/307223002/diff/1/Source/core/frame/Frame.h#newcode145 Source/core/frame/Frame.h:145: // Allow equality comparisons of Frames by reference or ...
6 years, 6 months ago (2014-06-02 12:16:37 UTC) #4
eseidel
lgtm
6 years, 6 months ago (2014-06-02 16:39:13 UTC) #5
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 6 months ago (2014-06-02 16:43:29 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/307223002/1
6 years, 6 months ago (2014-06-02 16:43:48 UTC) #7
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: blink_presubmit on tryserver.blink ...
6 years, 6 months ago (2014-06-02 16:44:40 UTC) #8
commit-bot: I haz the power
6 years, 6 months ago (2014-06-02 16:59:39 UTC) #9
Message was sent while issue was closed.
Change committed as 175295

Powered by Google App Engine
This is Rietveld 408576698