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

Issue 2053903002: Returning early when setting a frame name to the same name. (Closed)

Created:
4 years, 6 months ago by Łukasz Anforowicz
Modified:
4 years, 6 months ago
Reviewers:
dcheng
CC:
chromium-reviews, blink-reviews, site-isolation-reviews_chromium.org, alexmos
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Returning early when setting a frame name to the same name. BUG=618813 Committed: https://crrev.com/d21ac9cb13ff2eac7f141bc04b3ed9d432c6f7ee Cr-Commit-Position: refs/heads/master@{#399988}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Expanding comments explaining the short-circuiting behavior. #

Patch Set 3 : Replacing part of short-circuiting condition with just an assert. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -0 lines) Patch
A third_party/WebKit/LayoutTests/fast/frames/unique-name-set-same-name.html View 1 chunk +37 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/frames/unique-name-set-same-name-expected.txt View 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp View 1 chunk +3 lines, -0 lines 2 comments Download
M third_party/WebKit/Source/core/page/FrameTree.cpp View 1 2 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
Łukasz Anforowicz
Daniel, can you take a look please? https://codereview.chromium.org/2053903002/diff/1/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp File third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp (right): https://codereview.chromium.org/2053903002/diff/1/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp#newcode1060 third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp:1060: return; Alex ...
4 years, 6 months ago (2016-06-10 00:06:57 UTC) #2
dcheng
https://codereview.chromium.org/2053903002/diff/1/third_party/WebKit/Source/core/page/FrameTree.cpp File third_party/WebKit/Source/core/page/FrameTree.cpp (right): https://codereview.chromium.org/2053903002/diff/1/third_party/WebKit/Source/core/page/FrameTree.cpp#newcode62 third_party/WebKit/Source/core/page/FrameTree.cpp:62: if (m_name == name && !m_uniqueName.isNull()) On 2016/06/10 00:06:57, ...
4 years, 6 months ago (2016-06-10 23:51:14 UTC) #3
Łukasz Anforowicz
Daniel, can you take another look please? https://codereview.chromium.org/2053903002/diff/1/third_party/WebKit/Source/core/page/FrameTree.cpp File third_party/WebKit/Source/core/page/FrameTree.cpp (right): https://codereview.chromium.org/2053903002/diff/1/third_party/WebKit/Source/core/page/FrameTree.cpp#newcode62 third_party/WebKit/Source/core/page/FrameTree.cpp:62: if (m_name ...
4 years, 6 months ago (2016-06-14 23:58:43 UTC) #4
dcheng
LGTM with an optional nit. https://codereview.chromium.org/2053903002/diff/40001/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp File third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp (right): https://codereview.chromium.org/2053903002/diff/40001/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp#newcode1064 third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp:1064: frame()->loader().client()->didChangeName(name, frame()->tree().uniqueName()); I'd suggest ...
4 years, 6 months ago (2016-06-15 11:18:35 UTC) #5
Łukasz Anforowicz
Thanks for the review Daniel. https://codereview.chromium.org/2053903002/diff/40001/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp File third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp (right): https://codereview.chromium.org/2053903002/diff/40001/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp#newcode1064 third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp:1064: frame()->loader().client()->didChangeName(name, frame()->tree().uniqueName()); On 2016/06/15 ...
4 years, 6 months ago (2016-06-15 17:46:22 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2053903002/40001
4 years, 6 months ago (2016-06-15 17:48:20 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/201181)
4 years, 6 months ago (2016-06-15 17:55:34 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2053903002/40001
4 years, 6 months ago (2016-06-15 18:43:20 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 6 months ago (2016-06-15 19:31:30 UTC) #14
commit-bot: I haz the power
4 years, 6 months ago (2016-06-15 19:32:39 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/d21ac9cb13ff2eac7f141bc04b3ed9d432c6f7ee
Cr-Commit-Position: refs/heads/master@{#399988}

Powered by Google App Engine
This is Rietveld 408576698