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

Side by Side Diff: runtime/third_party/d3/patches/001_no_html.patch

Issue 1754443002: - Add binary size analysis tool from Chromium. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/third_party/d3/README.dart ('k') | runtime/third_party/d3/src/LICENSE » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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);
15 }
16 d3.html = function(url, callback) {
17 + throw "disallowed by chromium security";
18 return d3_xhr(url, "text/html", d3_html, callback);
19 };
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);
OLDNEW
« no previous file with comments | « runtime/third_party/d3/README.dart ('k') | runtime/third_party/d3/src/LICENSE » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698