gecko-dev/accessible
James Teh 6a5821c667 Bug 1630208 part 2: Drop events for DocAccessibleParents which are already shut down. r=yzen
We can receive IPC events after a DocAccessibleParent is shut down if the BrowserParent is in the process of being destroyed (probably the tab closed) but there are still events in the IPC queue.
Most Recv*Event methods in BrowserParent check mShutdown, but a few don't.
For the events that don't, if the event is for a document, we'll successfully fire the platform event, and then successfully get and cache an xpcAccessibleDocument.
However, that xpcAccessibleDocument will never be removed from the cache because it's already shut down, so NotifyOfRemoteDocShutdown (which would normally remove it from the XPC cache) won't get called.
This results in a leaked object.
Thus, it's important that all Recv*Event methods drop the event if mShutdown is true.
This patch adds that check to the methods which didn't have it already.

Differential Revision: https://phabricator.services.mozilla.com/D79780
2020-06-17 18:40:42 +00:00
..
android Bug 1641932: Add Mac subroles to role map. r=eeejay 2020-06-05 03:45:44 +00:00
aom Bug 1626570 - Improve handling of copying arrays in accessible/. r=smaug 2020-04-30 09:36:14 +00:00
atk Bug 1641932: Add Mac subroles to role map. r=eeejay 2020-06-05 03:45:44 +00:00
base Backed out changeset 2011f0091ccf (bug 1646336) for dt failures at browser_accessibility_print_to_json.js. CLOSED TREE 2020-06-18 03:17:34 +03:00
generic Bug 1645067: Set the top level DocAccessibleChild as early as possible. r=MarcoZ 2020-06-12 07:11:02 +00:00
html Bug 1624909: Create and maintain radio siblings array for position information. r=eeejay 2020-05-29 17:37:46 +00:00
interfaces Bug 1642030 - Support testing of parameterized attributes in Mac mochitests. r=morgan 2020-06-02 04:20:38 +00:00
ipc Bug 1630208 part 2: Drop events for DocAccessibleParents which are already shut down. r=yzen 2020-06-17 18:40:42 +00:00
mac Bug 1643168 - block moxSetFocused: on non-focusable accessibles. r=morgan 2020-06-10 17:34:30 +00:00
other
tests Bug 1638153: Part 2 - Fix uses of .rootTreeItem to get top browser window. r=geckoview-reviewers,nika,snorp 2020-06-17 17:17:16 +00:00
windows Bug 1634591: Rename nsCoreUtils::IsTabDocument to IsTopLevelContentDocInProcess. Rename DocAccessible::eTabDocument to eTopLevelContentDocInProcess. r=MarcoZ 2020-06-10 05:03:05 +00:00
xpcom Bug 1642030 - Support testing of parameterized attributes in Mac mochitests. r=morgan 2020-06-02 04:20:38 +00:00
xul Bug 1640623 - Use enum classes for LookAndFeel int and float IDs. r=jmathies,geckoview-reviewers,esawin 2020-06-11 11:27:43 +00:00
moz.build Bug 1630391: Add telemetry test for backplate and a11y theme scalars. r=chutten,yzen 2020-06-12 17:02:45 +00:00