Index: chrome/browser/resources/chromeos/chromevox/chromevox/injected/live_regions.js |
diff --git a/chrome/browser/resources/chromeos/chromevox/chromevox/injected/live_regions.js b/chrome/browser/resources/chromeos/chromevox/chromevox/injected/live_regions.js |
index 914769276f16e62c3cd83ca90203eae9bcc40b36..2cb2c2efb781afb18823f713b35dd240016caa74 100644 |
--- a/chrome/browser/resources/chromeos/chromevox/chromevox/injected/live_regions.js |
+++ b/chrome/browser/resources/chromeos/chromevox/chromevox/injected/live_regions.js |
@@ -61,14 +61,6 @@ cvox.LiveRegions.lastAnnouncedMap = {}; |
cvox.LiveRegions.MAX_DISCARD_DUPS_MS = 2000; |
/** |
- * Maximum time interval in which to discard duplicate live region announcement |
- * when document.webkitHidden. |
- * @type {number} |
- * @const |
- */ |
-cvox.LiveRegions.HIDDEN_DOC_MAX_DISCARD_DUPS_MS = 60000; |
- |
-/** |
* @type {Date} |
*/ |
cvox.LiveRegions.lastAnnouncedTime = null; |
@@ -367,14 +359,11 @@ cvox.LiveRegions.announceChange = function( |
} |
} |
- var discardDupsMs = document.webkitHidden ? |
- cvox.LiveRegions.HIDDEN_DOC_MAX_DISCARD_DUPS_MS : |
- cvox.LiveRegions.MAX_DISCARD_DUPS_MS; |
- |
// First, evict expired entries. |
var now = new Date(); |
for (var announced in cvox.LiveRegions.lastAnnouncedMap) { |
- if (now - cvox.LiveRegions.lastAnnouncedMap[announced] > discardDupsMs) { |
+ if (now - cvox.LiveRegions.lastAnnouncedMap[announced] > |
+ cvox.LiveRegions.MAX_DISCARD_DUPS_MS) { |
delete cvox.LiveRegions.lastAnnouncedMap[announced]; |
} |
} |