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

Issue 1952123002: MD Downloads: fix unvulcanized build by adding <style no-process> (Closed)

Created:
4 years, 7 months ago by Dan Beam
Modified:
4 years, 7 months ago
Reviewers:
tsergeant, michaelpg
CC:
chromium-reviews, asanka, dbeam+watch-polymer_chromium.org, michaelpg+watch-polymer_chromium.org, michaelpg+watch-md-ui_chromium.org, arv+watch_chromium.org, dbeam+watch-downloads_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Downloads: fix unvulcanized build by adding <style no-process> Vulcanize finds <link>s and inlines them. In this sense, it does what it says on the tin. But, unfortunately, in this case the browser would not have loaded <link href> inside of shadow DOM (i.imgur.com/Gw9zEVg.png). So there's a behavioral difference between the vulcanized and unvulcanized versions of downloads. Additionally, all <style> inside of <dom-module>s are processed through Polymer's CSS custom prop shim. In this case, it replaces unresolved(?) variables with ''. This disables sharing of native custom properties between history and downloads. So I've added <style no-process>, which circumvents Polymer's CSS custom prop shim. It's meant to be a minimal, temporary solution until the Polymer team lands a better, more thorough alternative that bypasses the shim everywhere for browsers that support CSS custom props (and possibly @apply). R=tsergeant@chromium.org BUG=608098 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/916c6e84f2a975baec9fc965c76653dcbfd939b4 Cr-Commit-Position: refs/heads/master@{#391871}

Patch Set 1 : asdf #

Total comments: 2

Patch Set 2 : and vulcanize #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -5 lines) Patch
M chrome/browser/resources/md_downloads/manager.html View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/md_downloads/vulcanized.html View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/polymer/v1_0/chromium.patch View 2 chunks +14 lines, -1 line 0 comments Download
M third_party/polymer/v1_0/components-chromium/polymer/polymer-extracted.js View 2 chunks +2 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 19 (12 generated)
Dan Beam
4 years, 7 months ago (2016-05-05 01:36:13 UTC) #6
tsergeant
lgtm, hopefully the permanent solution will arrive soon.
4 years, 7 months ago (2016-05-05 16:38:58 UTC) #7
michaelpg
https://codereview.chromium.org/1952123002/diff/20001/chrome/browser/resources/md_downloads/manager.html File chrome/browser/resources/md_downloads/manager.html (right): https://codereview.chromium.org/1952123002/diff/20001/chrome/browser/resources/md_downloads/manager.html#newcode14 chrome/browser/resources/md_downloads/manager.html:14: <link rel="stylesheet" href="chrome://resources/css/md_colors.css"> what is the functional difference in ...
4 years, 7 months ago (2016-05-05 16:51:44 UTC) #9
Dan Beam
https://codereview.chromium.org/1952123002/diff/20001/chrome/browser/resources/md_downloads/manager.html File chrome/browser/resources/md_downloads/manager.html (right): https://codereview.chromium.org/1952123002/diff/20001/chrome/browser/resources/md_downloads/manager.html#newcode14 chrome/browser/resources/md_downloads/manager.html:14: <link rel="stylesheet" href="chrome://resources/css/md_colors.css"> On 2016/05/05 16:51:44, michaelpg wrote: > ...
4 years, 7 months ago (2016-05-05 17:12:01 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1952123002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1952123002/60001
4 years, 7 months ago (2016-05-05 17:46:43 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:60001)
4 years, 7 months ago (2016-05-05 19:35:18 UTC) #17
commit-bot: I haz the power
4 years, 7 months ago (2016-05-05 19:38:20 UTC) #19
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/916c6e84f2a975baec9fc965c76653dcbfd939b4
Cr-Commit-Position: refs/heads/master@{#391871}

Powered by Google App Engine
This is Rietveld 408576698