Add per-user preferences support.
[chromium-blink-merge.git] / third_party / d3 / patches / 001_no_html.patch
blob3c976b0b9c3232a4414b99743530d2e23fc59a5d
1 diff --git a/third_party/d3/src/d3.js b/third_party/d3/src/d3.js
2 index a3e4b95..8a98c4d 100644
3 --- a/third_party/d3/src/d3.js
4 +++ b/third_party/d3/src/d3.js
5 @@ -713,6 +713,7 @@
6 }) : this.node().textContent;
7 };
8 d3_selectionPrototype.html = function(value) {
9 + throw "disallowed by chromium security";
10 return arguments.length ? this.each(typeof value === "function" ? function() {
11 var v = value.apply(this, arguments);
12 this.innerHTML = v == null ? "" : v;
13 @@ -9274,9 +9275,11 @@
14 return JSON.parse(request.responseText);
16 d3.html = function(url, callback) {
17 + throw "disallowed by chromium security";
18 return d3_xhr(url, "text/html", d3_html, callback);
20 function d3_html(request) {
21 + throw "disallowed by chromium security";
22 var range = d3_document.createRange();
23 range.selectNode(d3_document.body);
24 return range.createContextualFragment(request.responseText);