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

Unified Diff: Source/devtools/front_end/extensions/ExtensionServer.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/extensions/ExtensionServer.js
diff --git a/Source/devtools/front_end/extensions/ExtensionServer.js b/Source/devtools/front_end/extensions/ExtensionServer.js
index d841a5a48040c23716a1e8a3574472252ea5d1d6..292fdfad0feddbbe179acad6193d5055938b6df5 100644
--- a/Source/devtools/front_end/extensions/ExtensionServer.js
+++ b/Source/devtools/front_end/extensions/ExtensionServer.js
@@ -228,7 +228,7 @@ WebInspector.ExtensionServer.prototype = {
{
if (!Runtime.experiments.isEnabled("applyCustomStylesheet"))
return;
- var styleSheet = document.createElement("style");
+ var styleSheet = createElement("style");
styleSheet.textContent = message.styleSheet;
document.head.appendChild(styleSheet);
},
@@ -805,7 +805,7 @@ WebInspector.ExtensionServer.prototype = {
InspectorFrontendHost.setInjectedScriptForOrigin(extensionOrigin, buildExtensionAPIInjectedScript(extensionInfo));
this._registeredExtensions[extensionOrigin] = { name: name };
}
- var iframe = document.createElement("iframe");
+ var iframe = createElement("iframe");
iframe.src = startPage;
iframe.style.display = "none";
document.body.appendChild(iframe);
« no previous file with comments | « Source/devtools/front_end/extensions/ExtensionPanel.js ('k') | Source/devtools/front_end/extensions/ExtensionView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698