forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1873790 - Ensure that we release CanvasChild::DataShmemHolder on …
…main thread. r=gfx-reviewers,lsalzman CanvasChild is not thread-safe and can only be interacted with on its owning thread. Differential Revision: https://phabricator.services.mozilla.com/D198347
- Loading branch information
Showing
4 changed files
with
31 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<script> | ||
document.addEventListener("DOMContentLoaded", async () => { | ||
let a = document.createElementNS("http://www.w3.org/1999/xhtml", "canvas") | ||
let bmp = await self.createImageBitmap(a.getContext("2d"), 100, -187, -214, 57, { }) | ||
let chan = new MessageChannel() | ||
const worker = new Worker("none", { }) | ||
worker.postMessage([bmp, chan.port1], [bmp, chan.port1]) | ||
}) | ||
</script> |
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
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
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