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

Issue 2714943004: Move unique name generation and tracking into //content. (Closed)

Created:
3 years, 10 months ago by dcheng
Modified:
3 years, 9 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, extensions-reviews_chromium.org, Peter Beverloo, nasko+codewatch_chromium.org, mlamouri+watch-blink_chromium.org, dglazkov+blink, darin-cc_chromium.org, blink-reviews, chromium-apps-reviews_chromium.org, kinuko+watch, blink-reviews-api_chromium.org, jochen+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Move unique name generation and tracking into //content. Blink doesn't really consume this anymore, so move the concept out of Blink and simplify the plumbing. Future CLs will move it wholly into the browser process. BUG=626202, 645123 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : rebase #

Patch Set 4 : Logic ported #

Patch Set 5 : Fix analyze #

Patch Set 6 : . #

Total comments: 9

Patch Set 7 : Factor out a new test_runner_support library... #

Patch Set 8 : Fix accounting issue #

Patch Set 9 : Fix accounting issues #

Patch Set 10 : Better comments and fix ordering issue #

Patch Set 11 : Revert back to original check in didUpdateName #

Total comments: 26

Patch Set 12 : Address review comments #

Patch Set 13 : Clarify comment #

Patch Set 14 : Add test #

Total comments: 4

Patch Set 15 : . #

Total comments: 16

Patch Set 16 : address comments #

Patch Set 17 : rebase #

Patch Set 18 : Rebase again. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+606 lines, -612 lines) Patch
M components/printing/renderer/print_web_view_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/site_per_process_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +48 lines, -0 lines 0 comments Download
A content/public/test/test_runner_support.h View 1 2 3 4 5 6 1 chunk +21 lines, -0 lines 0 comments Download
M content/renderer/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/history_entry.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +9 lines, -5 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 13 chunks +54 lines, -20 lines 0 comments Download
M content/renderer/render_frame_proxy.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M content/renderer/render_frame_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +5 lines, -5 lines 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -1 line 0 comments Download
A content/renderer/unique_name_helper.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +113 lines, -0 lines 0 comments Download
A content/renderer/unique_name_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +187 lines, -0 lines 0 comments Download
M content/shell/test_runner/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/test_runner/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/test_runner/layout_dump.cc View 1 2 3 4 5 6 2 chunks +5 lines, -4 lines 0 comments Download
M content/shell/test_runner/web_frame_test_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +8 lines, -9 lines 0 comments Download
M content/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +20 lines, -0 lines 0 comments Download
A content/test/test_runner_support.cc View 1 2 3 4 5 6 1 chunk +16 lines, -0 lines 0 comments Download
M extensions/renderer/script_context_browsertest.cc View 2 chunks +7 lines, -7 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/history/frameset-repeated-name.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +18 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/history/frameset-repeated-name-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4 lines, -4 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/history/resources/frameset-dest.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 0 chunks +-1 lines, --1 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/history/frameset-repeated-name-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +0 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +8 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/LocalFrameClient.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/HistoryItem.h View 3 chunks +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/loader/HistoryItem.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +0 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/page/FrameTree.h View 2 chunks +0 lines, -51 lines 0 comments Download
M third_party/WebKit/Source/core/page/FrameTree.cpp View 1 2 2 chunks +0 lines, -261 lines 0 comments Download
M third_party/WebKit/Source/web/LocalFrameClientImpl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/LocalFrameClientImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/WebFrame.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/web/WebFrameImplBase.h View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebHistoryItem.cpp View 1 2 3 4 5 6 7 2 chunks +5 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +7 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/web/WebRemoteFrameImpl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +10 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 9 chunks +14 lines, -25 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/FrameTestHelpers.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +5 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +5 lines, -85 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebViewTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +3 lines, -3 lines 0 comments Download
D third_party/WebKit/Source/web/tests/data/frameset-dest.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -6 lines 0 comments Download
D third_party/WebKit/Source/web/tests/data/frameset-repeated-name.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/public/web/WebFrame.h View 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/public/web/WebFrameClient.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/public/web/WebHistoryItem.h View 3 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/public/web/WebRemoteFrame.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +10 lines, -14 lines 0 comments Download

Messages

Total messages: 75 (58 generated)
dcheng
https://codereview.chromium.org/2714943004/diff/90001/content/renderer/BUILD.gn File content/renderer/BUILD.gn (right): https://codereview.chromium.org/2714943004/diff/90001/content/renderer/BUILD.gn#newcode28 content/renderer/BUILD.gn:28: "//content/shell/test_runner", Note: I'm pretty sure this is wrong, but ...
3 years, 9 months ago (2017-03-01 23:57:26 UTC) #10
jam
just to check: if this is only used by layout test code, does this have ...
3 years, 9 months ago (2017-03-02 16:43:14 UTC) #30
dcheng
On 2017/03/02 16:43:14, jam wrote: > just to check: if this is only used by ...
3 years, 9 months ago (2017-03-02 18:30:23 UTC) #31
jam
On 2017/03/02 18:30:23, dcheng wrote: > On 2017/03/02 16:43:14, jam wrote: > > just to ...
3 years, 9 months ago (2017-03-02 20:31:16 UTC) #38
Charlie Reis
I'll defer to jam@ on all the build file changes, since I'm not sure about ...
3 years, 9 months ago (2017-03-02 23:59:17 UTC) #41
dcheng
https://codereview.chromium.org/2714943004/diff/90001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp File third_party/WebKit/Source/web/tests/WebFrameTest.cpp (left): https://codereview.chromium.org/2714943004/diff/90001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp#oldcode9050 third_party/WebKit/Source/web/tests/WebFrameTest.cpp:9050: TEST_F(WebFrameSwapTest, UniqueNameAfterRemoteToLocalSwap) { On 2017/03/02 23:59:17, Charlie Reis (OOO ...
3 years, 9 months ago (2017-03-03 10:22:08 UTC) #42
dcheng
PTAL, I've updated the tests so that this CL doesn't lose any test coverage. https://codereview.chromium.org/2714943004/diff/250001/content/browser/site_per_process_browsertest.cc ...
3 years, 9 months ago (2017-03-05 22:32:54 UTC) #51
dcheng
ping =)
3 years, 9 months ago (2017-03-13 00:09:19 UTC) #52
Charlie Reis
Thanks, and very sorry for the long delay! The changes to the algorithm (and bug ...
3 years, 9 months ago (2017-03-20 20:11:39 UTC) #53
dcheng
+devlin for extensions +thestig for components/printing https://codereview.chromium.org/2714943004/diff/190001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2714943004/diff/190001/content/renderer/render_frame_impl.cc#newcode3696 content/renderer/render_frame_impl.cc:3696: SendDidCommitProvisionalLoad(frame, commit_type, current_history_item_); ...
3 years, 9 months ago (2017-03-21 22:03:42 UTC) #55
Devlin
extensions lgtm
3 years, 9 months ago (2017-03-21 22:19:47 UTC) #56
Lei Zhang
On 2017/03/21 22:03:42, dcheng wrote: > +thestig for components/printing lgtm
3 years, 9 months ago (2017-03-21 23:08:25 UTC) #57
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/2714943004/330001
3 years, 9 months ago (2017-03-22 02:35:14 UTC) #68
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_TIMED_OUT, build hasn't started yet, builder ...
3 years, 9 months ago (2017-03-22 04:36:23 UTC) #70
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/2714943004/330001
3 years, 9 months ago (2017-03-22 04:53:45 UTC) #72
commit-bot: I haz the power
Failed to apply patch for third_party/WebKit/LayoutTests/fast/history/frameset-repeated-name-expected.txt: While running git apply --index -p1; <stdin>:11: trailing whitespace. ...
3 years, 9 months ago (2017-03-22 05:21:15 UTC) #74
dcheng
3 years, 9 months ago (2017-03-22 23:03:09 UTC) #75

Powered by Google App Engine
This is Rietveld 408576698