Lavamoat - protect all UI contexts (#14537)

* lavamoat - apply lavamoat protections to popup and notification

* build - enable lavamoat for home

* lavamoat - add missing ui overrides for react family

* deps/patches - patch zxcvbn for ses compat
feature/default_network_editable
kumavis 3 years ago committed by GitHub
parent 1624af2364
commit 66bd172980
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      development/build/scripts.js
  2. 16
      lavamoat/browserify/beta/policy-override.json
  3. 16
      lavamoat/browserify/flask/policy-override.json
  4. 16
      lavamoat/browserify/main/policy-override.json
  5. 13
      patches/zxcvbn+4.4.2.patch

@ -473,21 +473,21 @@ function createFactoredBuild({
groupSet, groupSet,
commonSet, commonSet,
browserPlatforms, browserPlatforms,
useLavamoat: false, useLavamoat: true,
}); });
renderHtmlFile({ renderHtmlFile({
htmlName: 'notification', htmlName: 'notification',
groupSet, groupSet,
commonSet, commonSet,
browserPlatforms, browserPlatforms,
useLavamoat: false, useLavamoat: true,
}); });
renderHtmlFile({ renderHtmlFile({
htmlName: 'home', htmlName: 'home',
groupSet, groupSet,
commonSet, commonSet,
browserPlatforms, browserPlatforms,
useLavamoat: false, useLavamoat: true,
}); });
break; break;
} }

@ -55,6 +55,22 @@
"globals": { "globals": {
"localStorage": true "localStorage": true
} }
},
"react-dom": {
"globals": {
"HTMLIFrameElement": true
}
},
"react-devtools": {
"packages": {
"react-devtools-core": true
}
},
"react-devtools-core": {
"globals": {
"setTimeout": true,
"WebSocket": true
}
} }
} }
} }

@ -50,6 +50,22 @@
"globals": { "globals": {
"localStorage": true "localStorage": true
} }
},
"react-dom": {
"globals": {
"HTMLIFrameElement": true
}
},
"react-devtools": {
"packages": {
"react-devtools-core": true
}
},
"react-devtools-core": {
"globals": {
"setTimeout": true,
"WebSocket": true
}
} }
} }
} }

@ -55,6 +55,22 @@
"globals": { "globals": {
"localStorage": true "localStorage": true
} }
},
"react-dom": {
"globals": {
"HTMLIFrameElement": true
}
},
"react-devtools": {
"packages": {
"react-devtools-core": true
}
},
"react-devtools-core": {
"globals": {
"setTimeout": true,
"WebSocket": true
}
} }
} }
} }

@ -0,0 +1,13 @@
diff --git a/node_modules/zxcvbn/lib/matching.js b/node_modules/zxcvbn/lib/matching.js
index 3940bad..748da8b 100644
--- a/node_modules/zxcvbn/lib/matching.js
+++ b/node_modules/zxcvbn/lib/matching.js
@@ -13,7 +13,7 @@ build_ranked_dict = function(ordered_list) {
i = 1;
for (o = 0, len1 = ordered_list.length; o < len1; o++) {
word = ordered_list[o];
- result[word] = i;
+ Reflect.defineProperty(result, word, { value: i, configurable: true, enumerable: true, writable: true });
i += 1;
}
return result;
Loading…
Cancel
Save