Bug 1821956 part 6: Remove event deferral and sync text change events from Windows PDocAccessible. r=nlapre

We only needed to defer events because of the need to wait for a parent COM proxy.
Similarly, sync text change events (as opposed to async) were only necessary with the COM proxy architecture.
Now that there are no COM proxies, neither of these are necessary.

Differential Revision: https://phabricator.services.mozilla.com/D177899
This commit is contained in:
James Teh
2023-05-21 22:23:47 +00:00
parent ba3ca09680
commit 446bf3da6e
6 changed files with 10 additions and 569 deletions

View File

@@ -977,9 +977,6 @@ void NotificationController::WillRefresh(mozilla::TimeStamp aTime) {
ipcDoc = new DocAccessibleChild(childDoc, parentIPCDoc->Manager());
childDoc->SetIPCDoc(ipcDoc);
#if defined(XP_WIN)
parentIPCDoc->ConstructChildDocInParentProcess(ipcDoc, id);
#else
nsCOMPtr<nsIBrowserChild> browserChild =
do_GetInterface(mDocument->DocumentNode()->GetDocShell());
if (browserChild) {
@@ -987,9 +984,10 @@ void NotificationController::WillRefresh(mozilla::TimeStamp aTime) {
->SendPDocAccessibleConstructor(
ipcDoc, parentIPCDoc, id,
childDoc->DocumentNode()->GetBrowsingContext());
#ifndef XP_WIN
ipcDoc->SendPDocAccessiblePlatformExtConstructor();
}
#endif
}
}
}