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

Unified Diff: chrome/browser/resources/chromeos/chromevox/chromevox/injected/script_installer.js

Issue 2740793002: Minimize the Classic API and enable it for Next (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/chromeos/chromevox/chromevox/injected/script_installer.js
diff --git a/chrome/browser/resources/chromeos/chromevox/chromevox/injected/script_installer.js b/chrome/browser/resources/chromeos/chromevox/chromevox/injected/script_installer.js
index a76e503688cba08cb7ea31e07d16856c4527eaaa..03afc5957824a900d54b2bb8aa40c3c6a3fcd4d3 100644
--- a/chrome/browser/resources/chromeos/chromevox/chromevox/injected/script_installer.js
+++ b/chrome/browser/resources/chromeos/chromevox/chromevox/injected/script_installer.js
@@ -10,7 +10,6 @@
goog.provide('cvox.ScriptInstaller');
-goog.require('cvox.DomUtil');
/**
* URL pattern where we do not allow script installation.
@@ -89,11 +88,13 @@ cvox.ScriptInstaller.installScriptHelper_ = function(srcs, uid, opt_onload,
apiScript.type = 'text/javascript';
apiScript.setAttribute(uid, '1');
apiScript.textContent = scriptText;
+ console.log('inst!'+scriptText);
dmazzoni 2017/03/09 00:26:36 remove debugging?
if (opt_chromevoxScriptBase) {
apiScript.setAttribute('chromevoxScriptBase',
opt_chromevoxScriptBase);
}
- cvox.DomUtil.addNodeToHead(apiScript);
+ var p = document.head || document.body;
dmazzoni 2017/03/09 00:26:36 Give this a clearer name like scriptOwner or somet
+ p.appendChild(apiScript);
next();
}
};

Powered by Google App Engine
This is Rietveld 408576698