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 c8a8a1792df8b67c6e0be4e8edf1c11440409154..11e469898db788c9bfc4a79729d94eac2a1f7214 100644 |
--- a/chrome/browser/resources/chromeos/chromevox/chromevox/injected/live_regions.js |
+++ b/chrome/browser/resources/chromeos/chromevox/chromevox/injected/live_regions.js |
@@ -344,16 +344,18 @@ cvox.LiveRegions.announceChange = function( |
} |
var navDescriptions = cvox.LiveRegions.getNavDescriptionsRecursive(node); |
- if (navDescriptions.length == 0) { |
- return; |
- } |
- |
if (isRemoval) { |
+ navDescriptions = [cvox.DescriptionUtil.getDescriptionFromAncestors( |
+ [node], true, cvox.ChromeVox.verbosity)]; |
navDescriptions = [new cvox.NavDescription({ |
context: cvox.ChromeVox.msgs.getMsg('live_regions_removed'), text: '' |
})].concat(navDescriptions); |
} |
+ if (navDescriptions.length == 0) { |
+ return; |
+ } |
+ |
// Don't announce alerts on page load if their text and values consist of |
// just whitespace. |
var deltaTime = new Date() - cvox.LiveRegions.pageLoadTime; |