forked from Floorp-Projects/Floorp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1404422 - Part 1d. Ensure imgRequestProxy::PerformClone consisten…
…tly adds the clone to the expected load group. r=tnikkel Historically imgRequestProxy::PerformClone would only add the cloned request to the (original proxy's) document's load group if the request was still being validated. Now it adds the cloned request to the given document's load group before requesting the notifications, unless the request has already been completed. We ensure that any removals from the load group occur outside the current execution context. Legacy listeners may use imgRequestProxy::SyncClone to request notifications on the image state. Ideally they would not, but they do not work as expected with the asynchronous notifications all new callers must use. While in theory this would suggest their code is re-entrant, not all of it is. In particular we need to be sensitive about when we remove a request from a load group.
- Loading branch information
Showing
1 changed file
with
41 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters