Closed
Bug 1281909
Opened 8 years ago
Closed 7 years ago
Should I be able to piggyback custom properties on OffscreenCanvas objects transferred to a Worker?
Categories
(Core :: Graphics: CanvasWebGL, defect, P3)
Core
Graphics: CanvasWebGL
Tracking
()
RESOLVED
INVALID
Tracking | Status | |
---|---|---|
firefox50 | --- | affected |
People
(Reporter: jujjyl, Unassigned)
References
Details
(Whiteboard: [gfx-noted])
Attachments
(1 file)
670 bytes,
text/html
|
Details |
With the pref gfx.offscreencanvas.enabled = true in Nightly, run the attached html page. That will print the following in console: in main thread: canvas.id: mycustomid inside worker: canvas.id: undefined Is this expected behavior that the id field dies, or should it be possible to pass custom properties as part of an OffscreenCanvas object when transferring it to a Worker?
Comment 1•8 years ago
|
||
:pchang, can you answer for forward the question?
Flags: needinfo?(howareyou322)
Whiteboard: [gfx-noted]
Comment 2•8 years ago
|
||
Morris, any idea for this?
Flags: needinfo?(howareyou322) → needinfo?(mtseng)
Comment 3•8 years ago
|
||
Currently in our implementation, we don't transfer custom properties since custom properties may not transferable.
Flags: needinfo?(mtseng)
Updated•7 years ago
|
Priority: -- → P3
Reporter | ||
Updated•7 years ago
|
Blocks: offscreen-canvas
Comment 4•7 years ago
|
||
In the spec, the shallow serialization algorithms used for transferring platform objects don't serialize custom properties. For each type of platform object that is transferable, the spec defines the necessary transfer algorithms. The "transfer steps" and transfer-receiving steps" for OffscreenCanvas are defined here: https://html.spec.whatwg.org/multipage/canvas.html#offscreencanvas Those steps do not transfer custom properties.
Reporter | ||
Comment 5•7 years ago
|
||
Thanks for confirming Justin, much appreciated!
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•