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

Issue 2329523003: Main frame's unique name can always be null. (Closed)

Created:
4 years, 3 months ago by Łukasz Anforowicz
Modified:
4 years, 3 months ago
Reviewers:
Charlie Reis, dcheng
CC:
chromium-reviews, blink-reviews, site-isolation-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Main frame's unique name can always be null. This simplifies the code a little bit + avoids consuming memory for what is ultimately an unused value. BUG=647392 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/5140a41c48c0932e9a2db3f969ce43393ae0dbef Cr-Commit-Position: refs/heads/master@{#418976}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Remove unneeded early return in setPrecalculatedName. #

Patch Set 3 : On swap-out, setPrecalculatedName is called without a parent. #

Patch Set 4 : Need to keep main frame's unique null empty in one more place. #

Patch Set 5 : Replicating DCHECK on the browser side. #

Patch Set 6 : Comment tweak + removing tests that accidentally got added to previous patchsets. #

Total comments: 4

Patch Set 7 : Addressed CR feedback from dcheng@. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -31 lines) Patch
M content/browser/frame_host/frame_tree_node.cc View 1 2 3 4 1 chunk +9 lines, -0 lines 2 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/navigation/new-window-sandboxed-iframe-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/page/FrameTree.cpp View 1 2 3 4 5 6 4 chunks +22 lines, -27 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 45 (28 generated)
Łukasz Anforowicz
Daniel + Charlie, do you think it is worth it to have main frame's unique ...
4 years, 3 months ago (2016-09-09 23:38:27 UTC) #2
dcheng
https://codereview.chromium.org/2329523003/diff/1/third_party/WebKit/Source/core/page/FrameTree.cpp File third_party/WebKit/Source/core/page/FrameTree.cpp (right): https://codereview.chromium.org/2329523003/diff/1/third_party/WebKit/Source/core/page/FrameTree.cpp#newcode99 third_party/WebKit/Source/core/page/FrameTree.cpp:99: if (!parent()) Is this non-empty sometimes for parent frames? ...
4 years, 3 months ago (2016-09-10 02:54:49 UTC) #7
Charlie Reis
I do think this would be nice to have. The compat risk seems pretty low ...
4 years, 3 months ago (2016-09-12 20:27:37 UTC) #8
Łukasz Anforowicz
On 2016/09/12 20:27:37, Charlie Reis (slow) wrote: > I do think this would be nice ...
4 years, 3 months ago (2016-09-12 23:58:35 UTC) #9
dcheng
https://codereview.chromium.org/2329523003/diff/1/third_party/WebKit/Source/core/page/FrameTree.cpp File third_party/WebKit/Source/core/page/FrameTree.cpp (right): https://codereview.chromium.org/2329523003/diff/1/third_party/WebKit/Source/core/page/FrameTree.cpp#newcode99 third_party/WebKit/Source/core/page/FrameTree.cpp:99: if (!parent()) On 2016/09/12 23:58:34, Łukasz Anforowicz wrote: > ...
4 years, 3 months ago (2016-09-13 00:44:24 UTC) #10
Łukasz Anforowicz
https://codereview.chromium.org/2329523003/diff/1/third_party/WebKit/Source/core/page/FrameTree.cpp File third_party/WebKit/Source/core/page/FrameTree.cpp (right): https://codereview.chromium.org/2329523003/diff/1/third_party/WebKit/Source/core/page/FrameTree.cpp#newcode99 third_party/WebKit/Source/core/page/FrameTree.cpp:99: if (!parent()) On 2016/09/13 00:44:23, dcheng wrote: > On ...
4 years, 3 months ago (2016-09-13 01:14:29 UTC) #11
Łukasz Anforowicz
On 2016/09/12 23:58:35, Łukasz Anforowicz wrote: > On 2016/09/12 20:27:37, Charlie Reis (slow) wrote: > ...
4 years, 3 months ago (2016-09-13 01:18:14 UTC) #12
dcheng
https://codereview.chromium.org/2329523003/diff/1/third_party/WebKit/Source/core/page/FrameTree.cpp File third_party/WebKit/Source/core/page/FrameTree.cpp (right): https://codereview.chromium.org/2329523003/diff/1/third_party/WebKit/Source/core/page/FrameTree.cpp#newcode99 third_party/WebKit/Source/core/page/FrameTree.cpp:99: if (!parent()) On 2016/09/13 01:14:29, Łukasz Anforowicz wrote: > ...
4 years, 3 months ago (2016-09-13 01:38:00 UTC) #13
Łukasz Anforowicz
https://codereview.chromium.org/2329523003/diff/1/third_party/WebKit/Source/core/page/FrameTree.cpp File third_party/WebKit/Source/core/page/FrameTree.cpp (right): https://codereview.chromium.org/2329523003/diff/1/third_party/WebKit/Source/core/page/FrameTree.cpp#newcode99 third_party/WebKit/Source/core/page/FrameTree.cpp:99: if (!parent()) On 2016/09/13 01:38:00, dcheng wrote: > On ...
4 years, 3 months ago (2016-09-13 16:45:14 UTC) #18
Łukasz Anforowicz
Daniel, can you take a look at patchset #6?
4 years, 3 months ago (2016-09-14 22:20:01 UTC) #30
dcheng
LGTM with nits https://codereview.chromium.org/2329523003/diff/100001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/2329523003/diff/100001/content/browser/web_contents/web_contents_impl.cc#newcode1543 content/browser/web_contents/web_contents_impl.cc:1543: std::string unique_name = ""; Omit "" ...
4 years, 3 months ago (2016-09-15 06:33:23 UTC) #31
Łukasz Anforowicz
Charlie, can you do an OWNERS review for //content? https://codereview.chromium.org/2329523003/diff/100001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/2329523003/diff/100001/content/browser/web_contents/web_contents_impl.cc#newcode1543 content/browser/web_contents/web_contents_impl.cc:1543: ...
4 years, 3 months ago (2016-09-15 15:55:18 UTC) #34
Charlie Reis
content/ LGTM. Thanks! (I think I'll probably be able to do some NavigationEntryImpl cleanup as ...
4 years, 3 months ago (2016-09-15 20:04:12 UTC) #37
Łukasz Anforowicz
On 2016/09/15 20:04:12, Charlie Reis (slow) wrote: > content/ LGTM. Thanks! (I think I'll probably ...
4 years, 3 months ago (2016-09-15 20:55:13 UTC) #39
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/2329523003/120001
4 years, 3 months ago (2016-09-15 21:05:44 UTC) #42
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 3 months ago (2016-09-15 21:12:48 UTC) #43
commit-bot: I haz the power
4 years, 3 months ago (2016-09-15 21:16:30 UTC) #45
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/5140a41c48c0932e9a2db3f969ce43393ae0dbef
Cr-Commit-Position: refs/heads/master@{#418976}

Powered by Google App Engine
This is Rietveld 408576698