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

Issue 138923002: Add support for showing CSS with distilled articles. (Closed)

Created:
6 years, 11 months ago by nyquist
Modified:
6 years, 10 months ago
Reviewers:
Tom Sepez, cjhopman, Nico
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Add support for showing CSS with distilled articles. Adds the Readability CSS and also makes the DOM Distiller viewer load it. BUG=319881 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=247675

Patch Set 1 #

Total comments: 6

Patch Set 2 : Rebased and changed to use char[] #

Patch Set 3 : Rebased #

Patch Set 4 : Rebase #

Patch Set 5 : Added browsertest, changed to use CSP object-src instead of frame-src #

Total comments: 2

Patch Set 6 : Fixed nit from cjhopman@ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+148 lines, -10 lines) Patch
M chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc View 1 2 3 4 5 1 chunk +33 lines, -1 line 0 comments Download
M components/dom_distiller/content/dom_distiller_viewer_source.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M components/dom_distiller/content/dom_distiller_viewer_source.cc View 1 2 3 4 5 4 chunks +26 lines, -6 lines 0 comments Download
M components/dom_distiller/content/resources/dom_distiller_viewer.html View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M components/dom_distiller_resources.grd View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/readability/README.chromium View 1 chunk +1 line, -1 line 0 comments Download
A third_party/readability/css/readability.css View 1 chunk +83 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
nyquist
thakis: PTAL tsepez: PTAL security review
6 years, 11 months ago (2014-01-14 22:14:59 UTC) #1
Tom Sepez
LGTM for security. https://codereview.chromium.org/138923002/diff/1/components/dom_distiller/content/dom_distiller_viewer_source.cc File components/dom_distiller/content/dom_distiller_viewer_source.cc (right): https://codereview.chromium.org/138923002/diff/1/components/dom_distiller/content/dom_distiller_viewer_source.cc#newcode27 components/dom_distiller/content/dom_distiller_viewer_source.cc:27: const std::string kCssPath = "readability.css"; This ...
6 years, 11 months ago (2014-01-14 22:22:50 UTC) #2
Nico
lgtm https://codereview.chromium.org/138923002/diff/1/components/dom_distiller/content/dom_distiller_viewer_source.cc File components/dom_distiller/content/dom_distiller_viewer_source.cc (right): https://codereview.chromium.org/138923002/diff/1/components/dom_distiller/content/dom_distiller_viewer_source.cc#newcode27 components/dom_distiller/content/dom_distiller_viewer_source.cc:27: const std::string kCssPath = "readability.css"; On 2014/01/14 22:22:50, ...
6 years, 11 months ago (2014-01-15 05:35:26 UTC) #3
nyquist
Addressed all comments. Still waiting for review of the two CLs this depends on, so ...
6 years, 11 months ago (2014-01-15 22:50:58 UTC) #4
nyquist
cjhopman: //components/dom_distiller
6 years, 10 months ago (2014-01-28 21:58:38 UTC) #5
cjhopman
lgtm https://codereview.chromium.org/138923002/diff/190001/chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc File chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc (right): https://codereview.chromium.org/138923002/diff/190001/chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc#newcode233 chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc:233: // The MIME-type should always be text/html. comment ...
6 years, 10 months ago (2014-01-28 22:01:00 UTC) #6
nyquist
https://codereview.chromium.org/138923002/diff/190001/chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc File chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc (right): https://codereview.chromium.org/138923002/diff/190001/chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc#newcode233 chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc:233: // The MIME-type should always be text/html. On 2014/01/28 ...
6 years, 10 months ago (2014-01-28 22:09:05 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nyquist@chromium.org/138923002/210001
6 years, 10 months ago (2014-01-29 07:38:04 UTC) #8
commit-bot: I haz the power
6 years, 10 months ago (2014-01-29 11:25:30 UTC) #9
Message was sent while issue was closed.
Change committed as 247675

Powered by Google App Engine
This is Rietveld 408576698