| 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 e22cfc8adbbfbb57311f9dab2b08b38c3057ada3..f547f3c77eec6d7b2bf4c553441f4ce020556c34 100644
|
| --- a/chrome/browser/resources/chromeos/chromevox/chromevox/injected/init_document.js
|
| +++ b/chrome/browser/resources/chromeos/chromevox/chromevox/injected/init_document.js
|
| @@ -83,6 +83,28 @@ cvox.ChromeVox.initDocument = function() {
|
| return;
|
| }
|
|
|
| + // 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;
|
| + }
|
| + });
|
| + }
|
| + if (disableContentScript) {
|
| + var url = location.href;
|
| + url = url.substring(0, url.indexOf('#')) || url;
|
| + cvox.ExtensionBridge.send({
|
| + target: 'next',
|
| + action: 'enableCompatForUrl',
|
| + url: url
|
| + });
|
| + return;
|
| + }
|
| +
|
| cvox.ExtensionBridge.send({
|
| target: 'next',
|
| action: 'getIsClassicEnabled',
|
|
|