gecko-dev/accessible
James Teh 31c03e927b Bug 1421873: Fix infinite loop in HandlerProvider::GetAllTextInfoMainThread when invalid attribute offsets are returned. r=MarcoZ
When querying text attributes, Gecko can return an end offset less than the requested offset in some rare cases, which isn't valid.
This is perhaps because the text mutated during the attribute fetching loop for some reason, making the requested offset invalid.
We now check the end offset and break out of the loop in this case.
This fixes a freeze after sending a message in OX Mail with NVDA.

MozReview-Commit-ID: 1lVSLAdOcS7

--HG--
extra : rebase_source : 048fbed8ddc591f62c17d559483bfe2f1542431c
2017-11-30 16:44:02 +10:00
..
aom Bug 1419131 - adding a11y force disabled pref observer when accessibility service is being created. r=surkov 2017-11-29 00:01:18 -05:00
atk Bug 1402666 - Part 3: Replace Replace(NS_LITERAL_STRING("")) with ReplaceLiteral(u""). r=erahm 2017-09-15 19:32:55 -07:00
base Bug 1419131 - adding a11y force disabled pref observer when accessibility service is being created. r=surkov 2017-11-29 00:01:18 -05:00
generic Bug 1414974 - Part 4: Split WindowByIdTable into two separate tables for inner and outer windows, r=bz 2017-11-09 10:44:48 -05:00
html Bug 1415677 part 6. Remove nsIDOMHTMLCollection. r=qdot 2017-11-13 10:41:33 -05:00
interfaces Bug 1416893 - Added getConsumers method to nsIAccessibilityService. r=surkov 2017-11-14 11:21:32 -05:00
ipc Bug 1421873: Fix infinite loop in HandlerProvider::GetAllTextInfoMainThread when invalid attribute offsets are returned. r=MarcoZ 2017-11-30 16:44:02 +10:00
jsat Bug 1418102 - fixed jsat addName method when name is an empty string. Updated tests. r=surkov 2017-11-20 11:46:50 -05:00
mac Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro. 2017-10-03 09:05:19 +11:00
other Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
tests Merge inbound to mozilla-central r=merge a=merge 2017-11-29 12:26:15 +02:00
windows Bug 1421209 part 2: Fix IAccessible::accRole where a string is returned and ARIA role="". r=MarcoZ 2017-11-29 15:36:34 +10:00
xpcom Bug 1419131 - adding a11y force disabled pref observer when accessibility service is being created. r=surkov 2017-11-29 00:01:18 -05:00
xul Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro. 2017-10-03 09:05:19 +11:00
.eslintrc.js Bug 1385817 - Enable brace-style and no-else-return ESLint rules for accessible/ r=yzen 2017-08-01 19:08:02 +01:00
moz.build Bug 1329977 - creating doc accessibles for existing content documents. r=surkov 2017-10-31 09:48:07 -04:00