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

Unified Diff: Source/devtools/front_end/network/RequestHTMLView.js

Issue 662793002: [DevTools] Replace usages of document with custom functions. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: Source/devtools/front_end/network/RequestHTMLView.js
diff --git a/Source/devtools/front_end/network/RequestHTMLView.js b/Source/devtools/front_end/network/RequestHTMLView.js
index fdfd4dbccaaaa364aaa0214c43b920dd764fd3c2..2943891cf2c97a9ba0c585d0662c1794d644a414 100644
--- a/Source/devtools/front_end/network/RequestHTMLView.js
+++ b/Source/devtools/front_end/network/RequestHTMLView.js
@@ -57,7 +57,7 @@ WebInspector.RequestHTMLView.prototype = {
// We need to create iframe again each time because contentDocument
// is deleted when iframe is removed from its parent.
this.element.removeChildren();
- var iframe = document.createElement("iframe");
+ var iframe = createElement("iframe");
iframe.setAttribute("sandbox", ""); // Forbid to run JavaScript and set unique origin.
iframe.setAttribute("src", this._dataURL);
this.element.appendChild(iframe);
« no previous file with comments | « Source/devtools/front_end/network/NetworkPanel.js ('k') | Source/devtools/front_end/network/RequestHeadersView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698