mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-26 19:55:39 +00:00
de4e05e120
1. If an object needs a custom function to |write|, it will be added to |memory| in |JSStructuredCloneWriter| before calling the custom function. But in JSStructuredCloneReader::startRead we did the opposite. This will cause out-of-order if the custom function also writes some objects (e.g. WriteStructuredCloneImageData). We fix this by keeping the same order in |startRead|. 2. |JS_WriteTypedArray| should not call |writeTypedArray| directly, because it will miss an entry in |memory| for the typed array itself. We fix this by calling |startWrite| instead. Differential Revision: https://phabricator.services.mozilla.com/D24670 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
message-channels | ||
with-ports | ||
without-ports | ||
worker_postMessage_user_activation.tentative.html.ini |