This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 23502 - <img>.srcObject = aBlob
Summary: <img>.srcObject = aBlob
Status: RESOLVED MOVED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other All
: P3 enhancement
Target Milestone: Needs Impl Interest
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-14 19:55 UTC by Ian 'Hixie' Hickson
Modified: 2019-01-14 21:21 UTC (History)
7 users (show)

See Also:


Attachments

Description Ian 'Hixie' Hickson 2013-10-14 19:55:28 UTC
On Wed, 23 Jan 2013, Robert O'Callahan wrote:
>
> In Gecko we have implemented a prototype extension to media elements: the
> srcObject attribute (currently prefixed). Thus an author can simply write
> "element.srcObject = object". (Currently this only works for MediaStream
> objects, but the other types are not difficult to support.) This is simpler
> for authors, allows recovery of the source object, and most importantly
> allows the resource to be managed automatically by standard garbage
> collection.
>
> Setting srcObject mostly behaves "just like" setting 'src' to
> createObjectURL(object). However, 'src' and its corresponding content
> attribute are not affected. The rules for choosing a media resource are
> modified to check 'srcObject' before 'src'.
Comment 1 Philip Jägenstedt 2013-10-16 11:15:52 UTC
In this proposal, what should currentSrc return?
Comment 2 Robert O'Callahan (Mozilla) 2013-10-21 05:02:51 UTC
currentSrc returns the empty string.
Comment 3 Ian 'Hixie' Hickson 2014-09-26 21:11:00 UTC
media.srcObject exists now. Reassigning to zcorpan to consider this for <img>.
Comment 4 Simon Pieters 2014-09-29 10:06:33 UTC
mozSrcObject is not implemented on <img> in Gecko. Is there impl interest for <img>?
Comment 5 Robert O'Callahan (Mozilla) 2014-09-29 12:22:27 UTC
AFAIK it's not a priority at the moment but it seems like a logical thing to implement at some point.
Comment 6 Philip Jägenstedt 2016-02-01 02:33:18 UTC
Updated title to reflect current state.
Comment 7 Domenic Denicola 2019-01-14 21:21:24 UTC
https://github.com/whatwg/html/issues/3972