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

Issue 1413543005: Use FrameTreeNode ID as frameId in extension APIs (Closed)

Created:
5 years, 2 months ago by robwu
Modified:
4 years, 8 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, chromium-apps-reviews_chromium.org, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use FrameTreeNode ID as frameId in extension APIs Use FrameTreeNode IDs instead of RenderFrame routing IDs as "frame id" in the extension APIs (webNavigation, webRequest, extension messaging) because FTN IDs are globally unique, and RFH IDs are not. This extends the public content API with: - RenderFrameHost::FromFrameTreeNodeId - RenderFrameHost::GetFrameTreeNodeId - WebContents::FindFrameByFrameTreeNodeId The extension APIs are modified as follows: - webRequest: * Frame IDs may be unavailable after frame removal (crbug.com/572930). * Blocking webRequest handlers may be slower than before due to an extra IO->UI->IO hop to determine the frameId (but this happens only once per frame load). - webNavigation: * processId is no longer required in chrome.webNavigation.getFrame, but marked as optional (deprecated) to make sure that the API is backwards-compatible. * frameId is constant across navigations. - Extension messaging (chrome.runtime.connect and friends): * Small change for extension developers in the following scenario: 1. Open port to tab. 2. Accept the port by listening to onConnect *in a child frame*. 3. Unload the document in the frame. Old behavior: onDisconnect was not triggered in the background until the tab was reloaded or closed. New behavior: onDisconnect is called. * Extension messaging works correctly in out-of-process frames. * Move port lifetime management from renderer to browser. * Tie port lifetime to frames instead of processes. * Only notify frames in renderers if they have accepted the port. * Remove obsolete work-around for crbug.com/520303. * Unify open/close/postMessage logic in ChromeExtensionMessageFilter (crbug.com/394383#c7) - The extension frameId logic is no longer scattered over several files, but resides in a single class (ExtensionApiFrameIdMap). - IDs are now guaranteed to be -1 or higher (before this, -2 was occasionally seen). Depends on https://codereview.chromium.org/1413853005/ BUG=432875 TEST=browser_tests --gtest_filter=\ ExtensionWebRequestApiTest.*:\ WebNavigationApiTest.*:\ ExtensionApiTest.Messaging*:\ ExternallyConnectableMessagingTest.*:\ ExternallyConnectableMessagingWithTlsChannelIdTest.* Committed: https://crrev.com/3e2a0730e0dfb9c4dcbce45eea275270db900e90 Cr-Commit-Position: refs/heads/master@{#367914}

Patch Set 1 #

Patch Set 2 : Use 0UL #

Total comments: 16

Patch Set 3 : Improve port lifetime management, add tests #

Total comments: 45

Patch Set 4 : Address comments, add WebNavigationApiTest.CrossProcessIframe test #

Total comments: 4

Patch Set 5 : Nits in #16, s/FindByFrameTreeNodeID/FindFrameByFrameTreeNodeID/ #

Total comments: 42

Patch Set 6 : rebase to get 1413853005 :) #

Patch Set 7 : Fix all nits/comments without functional/logical changes. #

Patch Set 8 : Document the meaning of FrameTreeNode ID for non-content/ users #

Patch Set 9 : Vend frameIds at 1 location; minimize thread hops for webRequest #

Total comments: 38

Patch Set 10 : Nasko's nits (#30) #

Total comments: 8

Patch Set 11 : Charlie's nits (#33) #

Total comments: 22

Patch Set 12 : nits #

Total comments: 37

Patch Set 13 : Devlin's nits #

Patch Set 14 : Add override specifier to destructor #

Total comments: 26

Patch Set 15 : Devlin's small nits (#40) #

Patch Set 16 : Change ExtensionApiFrameIdMap to be a singleton #

Patch Set 17 : Add unit test for ExtensionApiFrameIdMap #

Total comments: 6

Patch Set 18 : Guarantee callback order, remove deleted frames from map #

Total comments: 13

Patch Set 19 : rebase because of conflicts caused by crbug.com/557422 #

Total comments: 24

Patch Set 20 : comments #47 #

Total comments: 19

Patch Set 21 : battre's nits #

Total comments: 2

Patch Set 22 : Call callbacks ASAP, only use cache for GetFrameIdOnIO #

Total comments: 2

Patch Set 23 : rebase #

Total comments: 2

Patch Set 24 : s/runs/that runs/ + public copy cons. to avoid compiler error #

Total comments: 33

Patch Set 25 : nasko's nits (#61) + 1 test for invalid frame ID pair #

Patch Set 26 : Remove frameId -2 work-around from webRequest test framework #

Patch Set 27 : Add TODO for improving the ExtensionApiFrameIdMap unit tests #

Patch Set 28 : s/:/ / #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+1723 lines, -447 lines) Patch
M chrome/browser/extensions/api/messaging/extension_message_port.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +69 lines, -14 lines 0 comments Download
M chrome/browser/extensions/api/messaging/extension_message_port.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +163 lines, -29 lines 0 comments Download
M chrome/browser/extensions/api/messaging/message_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 12 chunks +41 lines, -35 lines 0 comments Download
M chrome/browser/extensions/api/messaging/message_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 26 chunks +129 lines, -156 lines 0 comments Download
M chrome/browser/extensions/api/messaging/native_message_port.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/messaging/native_message_port.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +10 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/web_navigation/web_navigation_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/web_navigation/web_navigation_api_helpers.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +2 lines, -6 lines 0 comments Download
M chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_messages_apitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +18 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/chrome_extension_message_filter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/chrome_extension_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 7 chunks +28 lines, -19 lines 0 comments Download
M chrome/common/extensions/api/web_navigation.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 10 chunks +15 lines, -10 lines 0 comments Download
M chrome/common/extensions/docs/templates/intros/webNavigation.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +7 lines, -5 lines 0 comments Download
M chrome/renderer/extensions/tabs_custom_bindings.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +2 lines, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/messaging/connect/frame.js View 1 2 1 chunk +8 lines, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/messaging/connect/manifest.json View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/messaging/connect/page.js View 1 2 3 chunks +16 lines, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/messaging/connect/test.js View 1 2 5 chunks +20 lines, -6 lines 0 comments Download
A chrome/test/data/extensions/api_test/messaging/connect_crash/manifest.json View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/messaging/connect_crash/page.js View 1 2 3 4 5 6 1 chunk +24 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/api_test/messaging/connect_crash/test.js View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +10 lines, -18 lines 0 comments Download
A chrome/test/data/extensions/api_test/webnavigation/crossProcessIframe/frame.html View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/webnavigation/crossProcessIframe/frame.js View 1 2 3 4 5 6 7 8 9 1 chunk +18 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/api_test/webnavigation/crossProcessIframe/framework.js View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/test/data/extensions/api_test/webnavigation/crossProcessIframe/main.html View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/webnavigation/crossProcessIframe/main.js View 1 2 3 4 5 6 7 8 9 1 chunk +19 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/api_test/webnavigation/crossProcessIframe/manifest.json View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
A chrome/test/data/extensions/api_test/webnavigation/crossProcessIframe/test_crossProcessIframe.html View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/webnavigation/crossProcessIframe/test_crossProcessIframe.js View 1 2 3 4 5 6 7 8 9 1 chunk +216 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/webrequest/framework.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +0 lines, -5 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 4 chunks +1 line, -5 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/loader/resource_request_info_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 4 chunks +0 lines, -4 lines 0 comments Download
M content/browser/loader/resource_request_info_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 5 chunks +0 lines, -9 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +6 lines, -0 lines 0 comments Download
M content/public/browser/render_frame_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +21 lines, -0 lines 2 comments Download
M content/public/browser/resource_request_info.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +1 line, -5 lines 0 comments Download
M content/public/browser/web_contents.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +6 lines, -0 lines 0 comments Download
M extensions/browser/api/web_request/web_request_api.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +7 lines, -0 lines 0 comments Download
M extensions/browser/api/web_request/web_request_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 13 chunks +120 lines, -52 lines 0 comments Download
M extensions/browser/api/web_request/web_request_api_constants.h View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/api/web_request/web_request_api_constants.cc View 1 chunk +1 line, -0 lines 0 comments Download
A extensions/browser/extension_api_frame_id_map.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +168 lines, -0 lines 0 comments Download
A extensions/browser/extension_api_frame_id_map.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +245 lines, -0 lines 0 comments Download
A extensions/browser/extension_api_frame_id_map_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +222 lines, -0 lines 0 comments Download
M extensions/browser/extension_web_contents_observer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +7 lines, -0 lines 0 comments Download
M extensions/common/extension_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +18 lines, -18 lines 0 comments Download
M extensions/extensions.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/extensions_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M extensions/renderer/messaging_bindings.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 8 chunks +23 lines, -36 lines 0 comments Download
M extensions/renderer/resources/messaging.js View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 77 (17 generated)
robwu
This CL has four loosely related changes. They're combined because all extension APIs must have ...
5 years, 1 month ago (2015-10-29 23:59:34 UTC) #3
Devlin
First run-through; haven't gotten to everything. I actually saw this in my queue before it ...
5 years, 1 month ago (2015-10-30 01:49:39 UTC) #4
Charlie Reis
[+site-isolation-reviews] Thanks. No big objections to the content API changes, but a few thoughts below. ...
5 years, 1 month ago (2015-10-30 23:25:09 UTC) #5
robwu
Thanks for your review Devlin & Charlie. I've replied to some comments and will update ...
5 years, 1 month ago (2015-10-31 00:10:45 UTC) #6
Devlin
https://codereview.chromium.org/1413543005/diff/20001/chrome/browser/extensions/api/messaging/extension_message_port.cc File chrome/browser/extensions/api/messaging/extension_message_port.cc (right): https://codereview.chromium.org/1413543005/diff/20001/chrome/browser/extensions/api/messaging/extension_message_port.cc#newcode206 chrome/browser/extensions/api/messaging/extension_message_port.cc:206: for (content::RenderFrameHost* rfh : frames_) { On 2015/10/31 00:10:44, ...
5 years, 1 month ago (2015-10-31 00:19:56 UTC) #7
battre
Adding Matt for his work on making the webrequest API work completely on the IO ...
5 years, 1 month ago (2015-11-02 13:54:57 UTC) #9
Devlin
https://codereview.chromium.org/1413543005/diff/40001/chrome/common/extensions/docs/templates/intros/webNavigation.html File chrome/common/extensions/docs/templates/intros/webNavigation.html (left): https://codereview.chromium.org/1413543005/diff/40001/chrome/common/extensions/docs/templates/intros/webNavigation.html#oldcode109 chrome/common/extensions/docs/templates/intros/webNavigation.html:109: frame is always 0, the ID of child frames ...
5 years, 1 month ago (2015-11-02 17:07:16 UTC) #10
battre
https://codereview.chromium.org/1413543005/diff/40001/chrome/common/extensions/docs/templates/intros/webNavigation.html File chrome/common/extensions/docs/templates/intros/webNavigation.html (left): https://codereview.chromium.org/1413543005/diff/40001/chrome/common/extensions/docs/templates/intros/webNavigation.html#oldcode109 chrome/common/extensions/docs/templates/intros/webNavigation.html:109: frame is always 0, the ID of child frames ...
5 years, 1 month ago (2015-11-02 17:18:22 UTC) #11
Devlin
https://codereview.chromium.org/1413543005/diff/40001/chrome/common/extensions/docs/templates/intros/webNavigation.html File chrome/common/extensions/docs/templates/intros/webNavigation.html (left): https://codereview.chromium.org/1413543005/diff/40001/chrome/common/extensions/docs/templates/intros/webNavigation.html#oldcode109 chrome/common/extensions/docs/templates/intros/webNavigation.html:109: frame is always 0, the ID of child frames ...
5 years, 1 month ago (2015-11-02 17:28:47 UTC) #12
robwu
I've addressed all comments made so far, PTAL. Charlie: While creating a new webNavigation test, ...
5 years, 1 month ago (2015-11-02 19:08:34 UTC) #13
Matt Perry
https://codereview.chromium.org/1413543005/diff/40001/extensions/browser/api/web_request/web_request_api.cc File extensions/browser/api/web_request/web_request_api.cc (right): https://codereview.chromium.org/1413543005/diff/40001/extensions/browser/api/web_request/web_request_api.cc#newcode1314 extensions/browser/api/web_request/web_request_api.cc:1314: base::Passed(&listeners_to_dispatch))); On 2015/11/02 19:08:34, robwu wrote: > On 2015/11/02 ...
5 years, 1 month ago (2015-11-02 21:06:59 UTC) #14
robwu
https://codereview.chromium.org/1413543005/diff/40001/extensions/browser/api/web_request/web_request_api.cc File extensions/browser/api/web_request/web_request_api.cc (right): https://codereview.chromium.org/1413543005/diff/40001/extensions/browser/api/web_request/web_request_api.cc#newcode1314 extensions/browser/api/web_request/web_request_api.cc:1314: base::Passed(&listeners_to_dispatch))); On 2015/11/02 21:06:59, Matt Perry wrote: > On ...
5 years, 1 month ago (2015-11-02 21:33:32 UTC) #15
Charlie Reis
render_frame_host{_impl} and web_contents{_impl} LGTM with nits. Some other replies below as well. On 2015/11/02 19:08:34, ...
5 years, 1 month ago (2015-11-03 00:23:49 UTC) #16
battre
https://codereview.chromium.org/1413543005/diff/40001/chrome/common/extensions/docs/templates/intros/webNavigation.html File chrome/common/extensions/docs/templates/intros/webNavigation.html (left): https://codereview.chromium.org/1413543005/diff/40001/chrome/common/extensions/docs/templates/intros/webNavigation.html#oldcode109 chrome/common/extensions/docs/templates/intros/webNavigation.html:109: frame is always 0, the ID of child frames ...
5 years, 1 month ago (2015-11-03 09:07:19 UTC) #17
robwu
> On 2015/11/02 19:08:34, robwu wrote: > > Charlie: > > While creating a new ...
5 years, 1 month ago (2015-11-03 10:03:02 UTC) #18
Charlie Reis
On 2015/11/03 10:03:02, robwu wrote: > > On 2015/11/02 19:08:34, robwu wrote: > > > ...
5 years, 1 month ago (2015-11-04 01:05:04 UTC) #19
robwu
On 2015/11/04 01:05:04, Charlie Reis (slow til 11-16) wrote: > On 2015/11/03 10:03:02, robwu wrote: ...
5 years, 1 month ago (2015-11-04 11:51:00 UTC) #20
Charlie Reis
On 2015/11/04 11:51:00, robwu wrote: > On 2015/11/04 01:05:04, Charlie Reis (slow til 11-16) wrote: ...
5 years, 1 month ago (2015-11-06 23:13:16 UTC) #21
nasko
I've gone through content/, webnavigation, and some random other files. I do feel strongly about ...
5 years, 1 month ago (2015-11-06 23:28:27 UTC) #22
robwu
In the next update I'll remove the "deprecate" flag from the event details in the ...
5 years, 1 month ago (2015-11-07 00:23:40 UTC) #23
Devlin
https://codereview.chromium.org/1413543005/diff/80001/chrome/browser/extensions/api/messaging/extension_message_port.cc File chrome/browser/extensions/api/messaging/extension_message_port.cc (right): https://codereview.chromium.org/1413543005/diff/80001/chrome/browser/extensions/api/messaging/extension_message_port.cc#newcode55 chrome/browser/extensions/api/messaging/extension_message_port.cc:55: void OnExtensionFrameUnregistered( I would hope that doing the lifetime ...
5 years, 1 month ago (2015-11-13 21:16:28 UTC) #24
Devlin
Just confirming, this is blocked on https://codereview.chromium.org/1413853005/?
5 years ago (2015-12-03 20:26:29 UTC) #25
robwu
On 2015/12/03 20:26:29, Devlin wrote: > Just confirming, this is blocked on https://codereview.chromium.org/1413853005/ Yes. I'm ...
5 years ago (2015-12-03 21:54:21 UTC) #26
robwu
I've addressed all comments, please review again: Devlin: - chrome/browser/extensions/api/messaging/* - extensions/browser/extension_api_frame_id_map.* Dominic / Matt: ...
5 years ago (2015-12-07 23:44:22 UTC) #28
Matt Perry
I skimmed, but general approach LGTM
5 years ago (2015-12-08 17:53:57 UTC) #29
nasko
A bunch of comments. The main concern is the global map that we never delete ...
5 years ago (2015-12-09 23:06:10 UTC) #30
robwu
https://codereview.chromium.org/1413543005/diff/180001/chrome/test/data/extensions/api_test/webnavigation/crossProcessIframe/main.js File chrome/test/data/extensions/api_test/webnavigation/crossProcessIframe/main.js (right): https://codereview.chromium.org/1413543005/diff/180001/chrome/test/data/extensions/api_test/webnavigation/crossProcessIframe/main.js#newcode12 chrome/test/data/extensions/api_test/webnavigation/crossProcessIframe/main.js:12: // but this doesn't seem to work with OOP ...
5 years ago (2015-12-10 00:00:51 UTC) #31
Charlie Reis
content/ LGTM with nits. https://codereview.chromium.org/1413543005/diff/200001/content/public/browser/render_frame_host.h File content/public/browser/render_frame_host.h (right): https://codereview.chromium.org/1413543005/diff/200001/content/public/browser/render_frame_host.h#newcode39 content/public/browser/render_frame_host.h:39: // Returns the RenderFrameHost that ...
5 years ago (2015-12-10 07:20:21 UTC) #33
battre
https://codereview.chromium.org/1413543005/diff/220001/extensions/browser/api/web_request/web_request_api.cc File extensions/browser/api/web_request/web_request_api.cc (right): https://codereview.chromium.org/1413543005/diff/220001/extensions/browser/api/web_request/web_request_api.cc#newcode231 extensions/browser/api/web_request/web_request_api.cc:231: // ExtractFrameIdInfo will overwrite kFrameIdKey, so it is not ...
5 years ago (2015-12-10 15:31:39 UTC) #35
robwu
https://codereview.chromium.org/1413543005/diff/200001/content/public/browser/render_frame_host.h File content/public/browser/render_frame_host.h (right): https://codereview.chromium.org/1413543005/diff/200001/content/public/browser/render_frame_host.h#newcode39 content/public/browser/render_frame_host.h:39: // Returns the RenderFrameHost that is associated with the ...
5 years ago (2015-12-10 16:39:30 UTC) #36
Devlin
FYI: I'm pretty much leaving the following extension-y files to other reviewers: WebNavigation stuff - ...
5 years ago (2015-12-10 21:53:07 UTC) #37
robwu
https://codereview.chromium.org/1413543005/diff/80001/chrome/browser/extensions/api/messaging/extension_message_port.cc File chrome/browser/extensions/api/messaging/extension_message_port.cc (right): https://codereview.chromium.org/1413543005/diff/80001/chrome/browser/extensions/api/messaging/extension_message_port.cc#newcode55 chrome/browser/extensions/api/messaging/extension_message_port.cc:55: void OnExtensionFrameUnregistered( On 2015/12/10 21:53:06, Devlin wrote: > On ...
5 years ago (2015-12-11 00:53:48 UTC) #39
Devlin
Getting close!! Nasko and/or Charlie, please chime in on the comment regarding clearing the map ...
5 years ago (2015-12-12 14:25:00 UTC) #40
Charlie Reis
https://codereview.chromium.org/1413543005/diff/300001/extensions/browser/extension_api_frame_id_map.cc File extensions/browser/extension_api_frame_id_map.cc (right): https://codereview.chromium.org/1413543005/diff/300001/extensions/browser/extension_api_frame_id_map.cc#newcode53 extensions/browser/extension_api_frame_id_map.cc:53: // Items are never removed from this map. On ...
5 years ago (2015-12-14 20:45:00 UTC) #41
robwu
(posting my pending comments to get them out of the door - I will continue ...
5 years ago (2015-12-14 20:55:42 UTC) #42
Devlin
https://codereview.chromium.org/1413543005/diff/300001/extensions/browser/extension_api_frame_id_map.cc File extensions/browser/extension_api_frame_id_map.cc (right): https://codereview.chromium.org/1413543005/diff/300001/extensions/browser/extension_api_frame_id_map.cc#newcode98 extensions/browser/extension_api_frame_id_map.cc:98: // |g_frame_id_map_lock| is not needed here because GotFrameId is ...
5 years ago (2015-12-14 21:31:55 UTC) #43
nasko
https://codereview.chromium.org/1413543005/diff/180001/chrome/test/data/extensions/api_test/webnavigation/crossProcessIframe/test_crossProcessIframe.js File chrome/test/data/extensions/api_test/webnavigation/crossProcessIframe/test_crossProcessIframe.js (right): https://codereview.chromium.org/1413543005/diff/180001/chrome/test/data/extensions/api_test/webnavigation/crossProcessIframe/test_crossProcessIframe.js#newcode203 chrome/test/data/extensions/api_test/webnavigation/crossProcessIframe/test_crossProcessIframe.js:203: ['pre-a.com-onBeforeNavigate', 'pre-a.com-onErrorOccurred'], On 2015/12/10 00:00:50, robwu wrote: > On ...
5 years ago (2015-12-17 01:19:49 UTC) #44
robwu
I've implemented the last things on my wishlist for this CL: - Callbacks for GetFrameIdOnIO ...
4 years, 12 months ago (2015-12-22 16:55:46 UTC) #45
Devlin
https://codereview.chromium.org/1413543005/diff/400001/extensions/browser/extension_api_frame_id_map.cc File extensions/browser/extension_api_frame_id_map.cc (right): https://codereview.chromium.org/1413543005/diff/400001/extensions/browser/extension_api_frame_id_map.cc#newcode20 extensions/browser/extension_api_frame_id_map.cc:20: // delete it. I thought we had a way ...
4 years, 12 months ago (2015-12-22 22:07:54 UTC) #46
nasko
https://codereview.chromium.org/1413543005/diff/380001/extensions/browser/extension_api_frame_id_map.cc File extensions/browser/extension_api_frame_id_map.cc (right): https://codereview.chromium.org/1413543005/diff/380001/extensions/browser/extension_api_frame_id_map.cc#newcode99 extensions/browser/extension_api_frame_id_map.cc:99: // Don't save invalid values in the map. nit: ...
4 years, 12 months ago (2015-12-22 22:12:10 UTC) #47
robwu
https://codereview.chromium.org/1413543005/diff/400001/extensions/browser/extension_api_frame_id_map.cc File extensions/browser/extension_api_frame_id_map.cc (right): https://codereview.chromium.org/1413543005/diff/400001/extensions/browser/extension_api_frame_id_map.cc#newcode20 extensions/browser/extension_api_frame_id_map.cc:20: // delete it. On 2015/12/22 22:07:53, Devlin wrote: > ...
4 years, 12 months ago (2015-12-23 00:07:04 UTC) #48
battre
WebRequest API stuff LGTM, just a couple of nits... Nasko's comment on ExtensionWebContentsObserver::RenderFrameCreated is interesting, ...
4 years, 12 months ago (2015-12-23 14:02:12 UTC) #49
robwu
https://codereview.chromium.org/1413543005/diff/380001/extensions/browser/extension_web_contents_observer.cc File extensions/browser/extension_web_contents_observer.cc (right): https://codereview.chromium.org/1413543005/diff/380001/extensions/browser/extension_web_contents_observer.cc#newcode113 extensions/browser/extension_web_contents_observer.cc:113: InitializeRenderFrame(render_frame_host); On 2015/12/22 22:12:10, nasko wrote: > Since we ...
4 years, 12 months ago (2015-12-26 11:05:50 UTC) #50
Devlin
https://codereview.chromium.org/1413543005/diff/400001/extensions/browser/extension_api_frame_id_map.cc File extensions/browser/extension_api_frame_id_map.cc (right): https://codereview.chromium.org/1413543005/diff/400001/extensions/browser/extension_api_frame_id_map.cc#newcode121 extensions/browser/extension_api_frame_id_map.cc:121: while (!callbacks_.empty() && On 2015/12/23 00:07:03, robwu wrote: > ...
4 years, 11 months ago (2015-12-28 17:34:25 UTC) #53
Devlin
https://codereview.chromium.org/1413543005/diff/480001/extensions/browser/extension_api_frame_id_map.cc File extensions/browser/extension_api_frame_id_map.cc (right): https://codereview.chromium.org/1413543005/diff/480001/extensions/browser/extension_api_frame_id_map.cc#newcode148 extensions/browser/extension_api_frame_id_map.cc:148: void ExtensionApiFrameIdMap::GetFrameIdOnIO(int render_process_id, Another thought: with the combination of ...
4 years, 11 months ago (2015-12-28 17:39:39 UTC) #54
robwu
Hi Devlin, I made some changes in response to your feedback. With the last patch ...
4 years, 11 months ago (2015-12-29 17:05:46 UTC) #56
Devlin
Assuming the patch resolution is trivial and all tests pass, I think this lgtm (though ...
4 years, 11 months ago (2016-01-04 17:50:23 UTC) #57
robwu
> That said, it looked like you may have missed a few of battre's comments? ...
4 years, 11 months ago (2016-01-04 18:18:58 UTC) #58
Devlin
https://codereview.chromium.org/1413543005/diff/420001/chrome/common/extensions/api/web_navigation.json File chrome/common/extensions/api/web_navigation.json (right): https://codereview.chromium.org/1413543005/diff/420001/chrome/common/extensions/api/web_navigation.json#newcode38 chrome/common/extensions/api/web_navigation.json:38: "description": "The ID of the process runs the renderer ...
4 years, 11 months ago (2016-01-04 18:33:25 UTC) #59
robwu
nasko: Only your stamp and we're good to go. https://codereview.chromium.org/1413543005/diff/520001/chrome/common/extensions/api/web_navigation.json File chrome/common/extensions/api/web_navigation.json (right): https://codereview.chromium.org/1413543005/diff/520001/chrome/common/extensions/api/web_navigation.json#newcode98 chrome/common/extensions/api/web_navigation.json:98: ...
4 years, 11 months ago (2016-01-04 20:30:19 UTC) #60
nasko
Few more comments, mostly style nits. https://codereview.chromium.org/1413543005/diff/540001/extensions/browser/extension_api_frame_id_map.cc File extensions/browser/extension_api_frame_id_map.cc (right): https://codereview.chromium.org/1413543005/diff/540001/extensions/browser/extension_api_frame_id_map.cc#newcode19 extensions/browser/extension_api_frame_id_map.cc:19: // delete it. ...
4 years, 11 months ago (2016-01-05 00:39:58 UTC) #61
robwu
https://codereview.chromium.org/1413543005/diff/540001/extensions/browser/extension_api_frame_id_map.cc File extensions/browser/extension_api_frame_id_map.cc (right): https://codereview.chromium.org/1413543005/diff/540001/extensions/browser/extension_api_frame_id_map.cc#newcode19 extensions/browser/extension_api_frame_id_map.cc:19: // delete it. On 2016/01/05 00:39:58, nasko wrote: > ...
4 years, 11 months ago (2016-01-05 10:59:03 UTC) #63
nasko
Thanks a ton for pushing through this CL. LGTM! https://codereview.chromium.org/1413543005/diff/540001/extensions/browser/extension_api_frame_id_map.cc File extensions/browser/extension_api_frame_id_map.cc (right): https://codereview.chromium.org/1413543005/diff/540001/extensions/browser/extension_api_frame_id_map.cc#newcode164 extensions/browser/extension_api_frame_id_map.cc:164: ...
4 years, 11 months ago (2016-01-06 17:19:38 UTC) #64
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1413543005/580001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1413543005/580001
4 years, 11 months ago (2016-01-06 17:30:48 UTC) #66
robwu
Thanks all for the reviews. If the CL does not get reverted due to an ...
4 years, 11 months ago (2016-01-06 17:48:59 UTC) #67
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1413543005/620001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1413543005/620001
4 years, 11 months ago (2016-01-06 21:14:25 UTC) #70
commit-bot: I haz the power
Committed patchset #28 (id:620001)
4 years, 11 months ago (2016-01-06 21:22:19 UTC) #72
commit-bot: I haz the power
Patchset 28 (id:??) landed as https://crrev.com/3e2a0730e0dfb9c4dcbce45eea275270db900e90 Cr-Commit-Position: refs/heads/master@{#367914}
4 years, 11 months ago (2016-01-06 21:23:10 UTC) #74
avallee
https://codereview.chromium.org/1413543005/diff/620001/content/public/browser/render_frame_host.h File content/public/browser/render_frame_host.h (right): https://codereview.chromium.org/1413543005/diff/620001/content/public/browser/render_frame_host.h#newcode48 content/public/browser/render_frame_host.h:48: static RenderFrameHost* FromFrameTreeNodeId(int frame_tree_node_id); No implementation nor calls...
4 years, 8 months ago (2016-04-11 18:13:19 UTC) #76
Charlie Reis
4 years, 8 months ago (2016-04-11 20:41:27 UTC) #77
Message was sent while issue was closed.
https://codereview.chromium.org/1413543005/diff/620001/content/public/browser...
File content/public/browser/render_frame_host.h (right):

https://codereview.chromium.org/1413543005/diff/620001/content/public/browser...
content/public/browser/render_frame_host.h:48: static RenderFrameHost*
FromFrameTreeNodeId(int frame_tree_node_id);
On 2016/04/11 18:13:19, avallee wrote:
> No implementation nor calls...

Thanks for noticing, avallee@.  Can you send a CL to remove it?  I'm happy to
approve.

Powered by Google App Engine
This is Rietveld 408576698