| Index: chrome/browser/resources/chromeos/chromevox/chromevox/injected/init_document.js
|
| diff --git a/chrome/browser/resources/chromeos/chromevox/chromevox/injected/init_document.js b/chrome/browser/resources/chromeos/chromevox/chromevox/injected/init_document.js
|
| index f547f3c77eec6d7b2bf4c553441f4ce020556c34..c2be9ed1b254f105a6d678fdd139756c2eb4468c 100644
|
| --- a/chrome/browser/resources/chromeos/chromevox/chromevox/injected/init_document.js
|
| +++ b/chrome/browser/resources/chromeos/chromevox/chromevox/injected/init_document.js
|
| @@ -86,13 +86,13 @@ cvox.ChromeVox.initDocument = function() {
|
| // Look for ChromeVox-specific meta attributes.
|
| var disableContentScript = false;
|
| if (document.head) {
|
| - document.head.querySelectorAll('meta[name="chromevox"]').forEach(
|
| - function(meta) {
|
| - var contentScript = meta.getAttribute('content-script');
|
| - if (contentScript && contentScript.toLowerCase() == 'no') {
|
| - disableContentScript = true;
|
| - }
|
| - });
|
| + var metaNodes = document.head.querySelectorAll('meta[name="chromevox"]');
|
| + for (var i = 0, meta; meta = metaNodes[i]; i++) {
|
| + var contentScript = meta.getAttribute('content-script');
|
| + if (contentScript && contentScript.toLowerCase() == 'no') {
|
| + disableContentScript = true;
|
| + }
|
| + }
|
| }
|
| if (disableContentScript) {
|
| var url = location.href;
|
|
|