summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/resources/tools
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-12 14:27:29 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-13 09:35:20 +0000
commitc30a6232df03e1efbd9f3b226777b07e087a1122 (patch)
treee992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/chrome/browser/resources/tools
parent7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff)
downloadqtwebengine-chromium-85-based.tar.gz
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/chrome/browser/resources/tools')
-rw-r--r--chromium/chrome/browser/resources/tools/rollup_plugin.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/chromium/chrome/browser/resources/tools/rollup_plugin.js b/chromium/chrome/browser/resources/tools/rollup_plugin.js
index d6c49bf8164..c70fe31f001 100644
--- a/chromium/chrome/browser/resources/tools/rollup_plugin.js
+++ b/chromium/chrome/browser/resources/tools/rollup_plugin.js
@@ -9,6 +9,8 @@ const path = require('path');
const chromeResourcesUrl = 'chrome://resources/';
const polymerUrl = 'chrome://resources/polymer/v3_0/';
+const schemeRelativeResourcesUrl = '//resources/';
+const schemeRelativePolymerUrl = '//resources/polymer/v3_0/';
// TODO: Determine whether it is worth maintaining this list vs always checking
// both directories for the existence of a file.
@@ -19,6 +21,7 @@ const nonGeneratedFiles = [
'certificates_browser_proxy.js',
'cr.m.js',
'cr_splitter.js',
+ 'plural_string_proxy.js',
];
function normalizeSlashes(filepath) {
@@ -66,6 +69,8 @@ export default function plugin(srcPath, genPath, rootPath, host, excludes) {
let pathFromPolymer = '';
if (source.startsWith(polymerUrl)) {
pathFromPolymer = source.slice(polymerUrl.length);
+ } else if (source.startsWith(schemeRelativePolymerUrl)) {
+ pathFromPolymer = source.slice(schemeRelativePolymerUrl.length);
} else if (!!origin && origin.startsWith(polymerSrcPath)) {
pathFromPolymer =
combinePaths(relativePath(polymerSrcPath, origin), source);
@@ -82,6 +87,8 @@ export default function plugin(srcPath, genPath, rootPath, host, excludes) {
let pathFromResources = '';
if (source.startsWith(chromeResourcesUrl)) {
pathFromResources = source.slice(chromeResourcesUrl.length);
+ } else if (source.startsWith(schemeRelativeResourcesUrl)) {
+ pathFromResources = source.slice(schemeRelativeResourcesUrl.length);
} else if (!!origin && origin.startsWith(resourcesSrcPath)) {
pathFromResources =
combinePaths(relativePath(resourcesSrcPath, origin), source);