gecko-dev/accessible
James Teh 242aa87f1a Bug 1419362 part 4: AccessibleHandler: When a caller asks for all text, cache hyperlinks and text attributes in the same call. r=MarcoZ
If a client requests all text (via IAccessibleText::text with IA2_TEXT_OFFSET_LENGTH), it's quite likely they will want all other information about the text as well; i.e. embedded objects and attributes.
Therefore, fetch all of this using a single cross-process call.
The text is immediately returned to the client.
The hyperlinks and attributes are cached for later return to the client when they call the appropriate methods.
They are only cached for one call; i.e. after the client retrieves them, the cache is dropped.
This makes memory management simpler and lowers the risk of cache invalidation problems.

MozReview-Commit-ID: FgFkX8J7wg1

--HG--
extra : rebase_source : e521d6ca7b00fcf1aad1f0ada299bac4c4b85c50
2017-11-22 21:32:28 +10:00
..
aom Backed out changeset 2602e10160a1 (bug 1410482) for leaks in devtools tests. r=backout 2017-10-23 23:02:57 +02: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 1402519 - Remove MOZ_CRASHREPORTER directives from accessible; r=surkov 2017-10-10 12:01:02 +02: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 1419362 part 4: AccessibleHandler: When a caller asks for all text, cache hyperlinks and text attributes in the same call. r=MarcoZ 2017-11-22 21:32:28 +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-21 00:01:02 +02:00
windows Bug 1419362 part 1: Make IAccessibleHypertext2::hyperlinks return null and S_FALSE when there are no hyperlinks. r=MarcoZ 2017-11-22 10:33:23 +10:00
xpcom Bug 1416893 - Added getConsumers method to nsIAccessibilityService. r=surkov 2017-11-14 11:21:32 -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