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

Issue 7517001: Switch from WebDocument::insertStyleText to ::insertUserStyleSheet for programatic CSS injection. (Closed)

Created:
9 years, 5 months ago by Mihai Parparita -not on Chrome
Modified:
9 years, 4 months ago
CC:
chromium-reviews, Erik does not do reviews, brettw-cc_chromium.org, jam, joi+watch-content_chromium.org, Aaron Boodman, darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Switch from WebDocument::insertStyleText to ::insertUserStyleSheet for programatic CSS injection. Inserting CSS as a user stylesheet is both consistent with content script injection and better for compatibility, since it does not affect the page's DOM. Removes the other call of insertStyleText (for infobar CSS injection), thus it should be possible to remove it after a WebKit roll. Depends on http://webkit.org/b/65158 BUG=82220 TEST=no R=mpcomplete@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=94499

Patch Set 1 #

Total comments: 1

Patch Set 2 : Rebaseline #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -13 lines) Patch
M chrome/browser/extensions/extension_host.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M chrome/renderer/extensions/user_script_idle_scheduler.cc View 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/test/data/extensions/api_test/executescript/basic/test.html View 1 chunk +13 lines, -0 lines 0 comments Download
M content/common/view_messages.h View 1 1 chunk +2 lines, -3 lines 0 comments Download
M content/renderer/render_view.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M content/renderer/render_view.cc View 1 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Mihai Parparita -not on Chrome
9 years, 5 months ago (2011-07-26 23:01:02 UTC) #1
Matt Perry
LGTM http://codereview.chromium.org/7517001/diff/1/chrome/test/data/extensions/api_test/executescript/basic/test.html File chrome/test/data/extensions/api_test/executescript/basic/test.html (right): http://codereview.chromium.org/7517001/diff/1/chrome/test/data/extensions/api_test/executescript/basic/test.html#newcode81 chrome/test/data/extensions/api_test/executescript/basic/test.html:81: chrome.tabs.get(tabId, pass(function(tab) { I think this test could ...
9 years, 5 months ago (2011-07-26 23:07:29 UTC) #2
Mihai Parparita -not on Chrome
On Tue, Jul 26, 2011 at 4:07 PM, <mpcomplete@chromium.org> wrote: > I think this test ...
9 years, 5 months ago (2011-07-26 23:18:01 UTC) #3
commit-bot: I haz the power
Presubmit check for 7517001-4001 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 5 months ago (2011-07-28 03:55:31 UTC) #4
Mihai Parparita -not on Chrome
John, could you approve? Thanks, Mihai On 2011/07/28 03:55:31, I haz the power (commit-bot) wrote: ...
9 years, 5 months ago (2011-07-28 03:59:23 UTC) #5
jam
content lgtm
9 years, 4 months ago (2011-07-28 16:49:23 UTC) #6
commit-bot: I haz the power
9 years, 4 months ago (2011-07-28 18:04:06 UTC) #7
Change committed as 94499

Powered by Google App Engine
This is Rietveld 408576698