New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 669529 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 667910
Owner:
Last visit > 30 days ago
Closed: Dec 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug



Sign in to add a comment

ImageBitmap transfers are broken for cross-process transfers

Project Member Reported by junov@chromium.org, Nov 29 2016

Issue description

Currently, the mechanism for transferring an ImageBitmap object uses RefPtr<StaticBitmapImage> as a vehicle for passing the pixel data between realms.  This does not work if the target realm is in another process.

A cross-process transfer can arise with the following use case:
1. do a window.open()
2. Navigating the new window via omnibox to a different site will put it in a different process
3. Doing a postMessage to its window handle will result in a cross-process postMessage.

out-of-process iframe are another problematic use case.
 
Components: Internals>Sandbox>SiteIsolation

Comment 2 by junov@chromium.org, Nov 29 2016

This bug will be partially fixed by https://codereview.chromium.org/2541683002/
After landing that CL, cross-process transfers via MessageChannel will work. However, the postMessage method of the Window interface, will still be broken for ImageBitmap transfers.

Comment 3 by junov@chromium.org, Dec 7 2016

Mergedinto: 667910
Status: Duplicate (was: Assigned)
Comment #2 is wrong: Window.postMessage does not support transferring, it only does clone.  So there is nothing more to do here

Sign in to add a comment