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

Issue 19045002: Use Blink support to watch CSS selectors directly instead of using a MutationObserver. (Closed)

Created:
7 years, 5 months ago by Jeffrey Yasskin
Modified:
7 years, 2 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org, Matt Perry, nasko
Visibility:
Public.

Description

Use Blink support to watch CSS selectors directly instead of using a MutationObserver. WebKit::WebDocument::watchCSSSelectors was added in https://src.chromium.org/viewvc/blink?view=rev&revision=158582. This CL also threads the WebFrameClient::didMatchCSS call back through the Content API. BUG=172011 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=226938

Patch Set 1 : Initial #

Total comments: 8

Patch Set 2 : Fix Matt's comments #

Patch Set 3 : unCamelCase in Chrome code. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -166 lines) Patch
M chrome/browser/extensions/api/declarative_content/declarative_content_apitest.cc View 1 3 chunks +11 lines, -5 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/extensions/api/declarative_content.json View 1 chunk +2 lines, -6 lines 0 comments Download
M chrome/renderer/extensions/content_watcher.h View 1 2 3 chunks +17 lines, -32 lines 0 comments Download
M chrome/renderer/extensions/content_watcher.cc View 1 2 2 chunks +44 lines, -100 lines 0 comments Download
M chrome/renderer/extensions/dispatcher.h View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/dispatcher.cc View 1 2 4 chunks +10 lines, -5 lines 0 comments Download
M chrome/renderer/extensions/extension_helper.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/extension_helper.cc View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
D chrome/renderer/resources/extensions/content_watcher.js View 1 chunk +0 lines, -16 lines 0 comments Download
M chrome/renderer/resources/renderer_resources.grd View 1 chunk +0 lines, -1 line 0 comments Download
M content/public/renderer/render_view_observer.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Jeffrey Yasskin
Extension folks, could you take an initial look before I send this to the Content ...
7 years, 2 months ago (2013-10-02 02:58:43 UTC) #1
Matt Perry
https://codereview.chromium.org/19045002/diff/35001/chrome/browser/extensions/api/declarative_content/declarative_content_apitest.cc File chrome/browser/extensions/api/declarative_content/declarative_content_apitest.cc (right): https://codereview.chromium.org/19045002/diff/35001/chrome/browser/extensions/api/declarative_content/declarative_content_apitest.cc#newcode102 chrome/browser/extensions/api/declarative_content/declarative_content_apitest.cc:102: ASSERT_TRUE(content::ExecuteScript(tab, std::string())); This double call looks fishy. Are you ...
7 years, 2 months ago (2013-10-02 22:20:21 UTC) #2
Jeffrey Yasskin
https://codereview.chromium.org/19045002/diff/35001/chrome/browser/extensions/api/declarative_content/declarative_content_apitest.cc File chrome/browser/extensions/api/declarative_content/declarative_content_apitest.cc (right): https://codereview.chromium.org/19045002/diff/35001/chrome/browser/extensions/api/declarative_content/declarative_content_apitest.cc#newcode102 chrome/browser/extensions/api/declarative_content/declarative_content_apitest.cc:102: ASSERT_TRUE(content::ExecuteScript(tab, std::string())); On 2013/10/02 22:20:22, Matt Perry wrote: > ...
7 years, 2 months ago (2013-10-03 00:31:57 UTC) #3
Matt Perry
lgtm
7 years, 2 months ago (2013-10-03 00:34:54 UTC) #4
Jeffrey Yasskin
+jam to look at threading WebFrameClient::didMatchCSS through Content. I'm not certain I got the RenderFrameImpl ...
7 years, 2 months ago (2013-10-03 01:08:56 UTC) #5
jam
+Charlie for his thoughts on how this will interact with site isolation, in particular this ...
7 years, 2 months ago (2013-10-03 17:19:14 UTC) #6
Charlie Reis
On 2013/10/03 17:19:14, jam wrote: > +Charlie for his thoughts on how this will interact ...
7 years, 2 months ago (2013-10-03 17:37:55 UTC) #7
Jeffrey Yasskin
On 2013/10/03 17:19:14, jam wrote: > minor nit: newlyMatchingSelectors should be newly_matching_selectors, as the > ...
7 years, 2 months ago (2013-10-03 18:41:34 UTC) #8
jam
On 2013/10/03 17:37:55, creis wrote: > On 2013/10/03 17:19:14, jam wrote: > > +Charlie for ...
7 years, 2 months ago (2013-10-03 21:24:35 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jyasskin@chromium.org/19045002/54001
7 years, 2 months ago (2013-10-03 21:34:18 UTC) #10
Jeffrey Yasskin
I still need an LGTM for chrome/renderer/resources/renderer_resources.grd. Nico, since you approved the addition of content_watcher.js, ...
7 years, 2 months ago (2013-10-03 21:54:10 UTC) #11
Nico
grd change / js removal lgtm
7 years, 2 months ago (2013-10-03 22:02:21 UTC) #12
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=28785
7 years, 2 months ago (2013-10-03 22:02:48 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jyasskin@chromium.org/19045002/54001
7 years, 2 months ago (2013-10-03 22:03:59 UTC) #14
commit-bot: I haz the power
7 years, 2 months ago (2013-10-04 02:42:56 UTC) #15
Message was sent while issue was closed.
Change committed as 226938

Powered by Google App Engine
This is Rietveld 408576698