Closed
Bug 834165
Opened 12 years ago
Closed 12 years ago
Implement BlobEvent
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla21
People
(Reporter: rlin, Assigned: rlin)
Details
(Keywords: dev-doc-complete)
Attachments
(1 file, 5 obsolete files)
6.12 KB,
patch
|
Details | Diff | Splinter Review |
MediaRecorder api require this to transfer the encoder/image data to jscontext.
idl:
BlobEvent interface
[Constructor(DOMString type, optional BlobEventInit blobInitDict)]
interface BlobEvent : Event {
readonly attribute Blob data;
};
dictionary BlobEventInit : EventInit {
Blob data;
};
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → rlin
Assignee | ||
Comment 1•12 years ago
|
||
Assignee | ||
Comment 2•12 years ago
|
||
Assignee | ||
Comment 3•12 years ago
|
||
Hi Olli,
We want to add the BlobEvent for MediaRecorder server side event and let jsContext can get the encode data, Can you help to review it?
Thanks a lot.
Attachment #708434 -
Attachment is obsolete: true
Attachment #708967 -
Flags: feedback?(bugs)
Comment 4•12 years ago
|
||
Comment on attachment 708967 [details] [diff] [review]
WIP2 blobEvent patch
Review of attachment 708967 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/interfaces/events/nsIDOMBlobEvent.idl
@@ +17,5 @@
> + /**
> + * Custom blob data associated with this event.
> + */
> + readonly attribute nsIDOMBlob data;
> + void initBlobEvent(in DOMString aType,
This should be [noscript].
Comment 5•12 years ago
|
||
Comment on attachment 708419 [details] [diff] [review]
IDL for BlobEvent
I don't know what is MediaRecorder. Is it from some specification?
And if so, does the spec really have BlobEvent, since that is quite odd name.
It feels too generic.
Comment 6•12 years ago
|
||
Comment on attachment 708419 [details] [diff] [review]
IDL for BlobEvent
Er, missed the URL :)
Assignee | ||
Comment 7•12 years ago
|
||
Hi OLLi,
Here is the draft url for reference.
https://dvcs.w3.org/hg/dap/raw-file/tip/media-stream-capture/RecordingProposal.html
BTW, this is just the draft version.
Comment 8•12 years ago
|
||
Comment on attachment 708967 [details] [diff] [review]
WIP2 blobEvent patch
iniBlobEvent should be [noscript]
nsDOMFile.h should be nsIDOMFile.h, right?
You shouldn't need to add anything to dictionary_helper_gen.conf
event_impl_gen.conf.in should take care of the dictionary automatically.
Attachment #708967 -
Flags: feedback?(bugs) → feedback+
Assignee | ||
Comment 10•12 years ago
|
||
Hi Olli,
I try to remove the dictionary_helper_gen.conf but found this would cause build break on DictinaryHelper.cpp, show can't find nsIDOMBlob.h....
change to [noscript], the js can't access the data attribute. Did i miss something?
Comment 11•12 years ago
|
||
[noscript] for initBlobEvent only.
could you just add nsIDOMFile.h to the special include and exclude nsIDOMBlob.h in the
dictionary_helper_gen.conf.in but not add [ 'BlobEventInit', 'nsIDOMBlobEvent.idl' ] ?
Assignee | ||
Comment 12•12 years ago
|
||
Hi Olli,
Please help to review that,
try server result:
https://tbpl.mozilla.org/?tree=Try&rev=5449988b57d6
Attachment #709565 -
Flags: review?(bugs)
Updated•12 years ago
|
Component: General → DOM
Product: Firefox → Core
Comment 13•12 years ago
|
||
Comment on attachment 709565 [details] [diff] [review]
add blobEvent patch1
> nsIDOMCustomEvent.idl \
> nsIDOMCompositionEvent.idl \
> nsIDOMWheelEvent.idl \
>+ nsIDOMBlobEvent.idl \
Align \ properly
>+[scriptable, builtinclass, uuid(84293ee0-68f5-11e2-9906-cf63ba8c6e43)]
>+interface nsIDOMBlobEvent : nsIDOMEvent
>+{
>+ /**
>+ * Custom blob data associated with this event.
>+ */
>+ readonly attribute nsIDOMBlob data;
>+ [noscript]
>+ void initBlobEvent(in DOMString aType,
>+ in boolean aCanBubble,
>+ in boolean aCancelable,
>+ in nsIDOMBlob aData);
align parameters and perhaps a newline before [noscript]
Attachment #709565 -
Flags: review?(bugs) → review+
Assignee | ||
Comment 14•12 years ago
|
||
add r=smaug,
correct align problem.
Assignee | ||
Updated•12 years ago
|
Whiteboard: checkin-needed
Updated•12 years ago
|
Attachment #708419 -
Attachment is obsolete: true
Updated•12 years ago
|
Attachment #708967 -
Attachment is obsolete: true
Updated•12 years ago
|
Attachment #709565 -
Attachment is obsolete: true
Comment 16•12 years ago
|
||
Flags: in-testsuite+
Comment 17•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: checkin-needed
Target Milestone: --- → mozilla21
Updated•12 years ago
|
Keywords: dev-doc-needed
Assignee | ||
Updated•11 years ago
|
Blocks: MediaRecording
Comment 18•11 years ago
|
||
I noted that our implementation differs from the spec: the Blob itself is optional, it can be null, whereas the spec has it mandatory.
Beside this, documentation written:
https://developer.mozilla.org/en-US/docs/Web/API/BlobEvent
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/22
Keywords: dev-doc-needed → dev-doc-complete
Updated•11 years ago
|
No longer blocks: MediaRecording
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•