gecko/content/base/public
Kyle Huey 601d68ae79 Bug 648997: Implement BlobBuilder spec as MozBlobBuilder. r=sicking.
Note that there is one key difference between this implementation and the spec.  In this patch MozBlobBuilder.getBlob("content/type"); returns a Blob and clears the MozBlobBuilder.  In the spec the BlobBuilder is not cleared.  Thus,

let bb = new MozBlobBuilder();
MozBlobBuilder.append("foo");
let blob1 = MozBlobBuilder.getBlob("content/type");
// blob1 contains "foo"
MozBlobBuilder.append("bar");
let blob2 = MozBlobBuilder.getBlob("content/type");
// blob2 contains "bar", the spec says it should contain "foobar".

IMO, the spec behavior optimizes for the wrong case.  BlobBuilder will probably be used mostly as a one-shot API.  Additionally, the spec requires the BlobBuilder to hang on to potentially large amounts of memory between the getBlob() call and when the BlobBuilder is GCd.

These issues have been raised on the listserv.
2011-05-20 10:18:45 -07:00
..
Element.h
FromParser.h Bug 604660 - Make XSLT-inserted script execute in the insertion order. r=jonas, a=blocking2.0-beta7. 2010-10-27 10:18:24 +03:00
Makefile.in Bug 647273 - Remove nsIContentUtils and nsIContentUtils2. r=sicking 2011-04-14 13:58:36 -07:00
mozFlushType.h
mozISanitizingSerializer.h
nsCaseTreatment.h
nsContentCID.h Bug 657548 - Part 2: Remove more unused CIDs. r=jst 2011-05-16 23:46:22 -07:00
nsContentCreatorFunctions.h Bug 594339 - Create a FromParser enum. r=hsivonen, sr=bzbarsky, a=jonas. 2010-10-25 15:17:38 +03:00
nsContentErrors.h Bug 591198: Display element using normal layout rules if XBL binding fails for security reasons. r=jst a=blocker 2010-09-15 15:53:01 -07:00
nsContentPolicyUtils.h
nsContentUtils.h Bug 551390 - Remove dead code in content r=sicking,roc 2011-05-17 15:54:09 +02:00
nsCopySupport.h
nsDOMEventTargetWrapperCache.h Fix for bug 584048 (Clean up cycle collection code) - move unlinking of JS members from root into unlink. r=bent. 2010-11-08 16:02:49 +01:00
nsDOMFile.h Bug 648997: Implement BlobBuilder spec as MozBlobBuilder. r=sicking. 2011-05-20 10:18:45 -07:00
nsIAttribute.h Bug 599590 - Attrib.value can return empty for case-sensitive attributes after calling removeAttribute, r=sicking, a=jst 2010-10-14 17:07:20 +03:00
nsIContent.h Bug 610305: decom nsEventStateManager r=smaug 2011-04-21 19:35:52 +02:00
nsIContentIterator.h
nsIContentPolicy.idl
nsIContentSecurityPolicy.idl Bug 600584 - add more detail to CSP violation report logging, r=jst, a=LegNeato 2011-01-31 10:09:44 -08:00
nsIContentSerializer.h Bug 601590 - Make AppendElementStart, AppendElementEnd take Element. r=bzbarsky 2010-10-22 23:25:22 +02:00
nsIDocument.h Bug 551225 - Make pushState use structured clone. r=zpao, sicking 2011-04-24 22:30:54 -04:00
nsIDocumentEncoder.idl
nsIDocumentObserver.h Bug 313351. ContentStatesChanged should take only one argument. r=dbaron 2011-03-28 23:32:11 -04:00
nsIDOMFile.idl Bug 648997: Implement BlobBuilder spec as MozBlobBuilder. r=sicking. 2011-05-20 10:18:45 -07:00
nsIDOMFileError.idl Bug 603667: Fix nsIDOMFileError constant values. r=jst a=blocker 2010-12-13 14:24:56 -08:00
nsIDOMFileException.idl Bug 603667: Fix nsIDOMFileError constant values. r=jst a=blocker 2010-12-13 14:24:56 -08:00
nsIDOMFileList.idl
nsIDOMFileReader.idl Back out another suspect just in case. CLOSED TREE. a=orange 2011-05-20 17:20:37 -07:00
nsIDOMFormData.idl
nsIDOMGCParticipant.h
nsIDOMParser.idl Bug 546857 Part 1: Fix nsDOMParser to make it useful from xpcshell tests. r=bz a=blocker 2010-08-19 16:06:06 -07:00
nsIDOMSerializer.idl
nsIDroppedLinkHandler.idl
nsIFrameLoader.idl Bug 617539 - Fold in nsIFrameLoader_MOZILLA_2_0_BRANCH, r=bz 2011-03-25 11:03:35 -04:00
nsIFrameMessageManager.idl Bug 581335 - Hook up crash reporting for content process by attaching a property bag to the global observer-service notification for them. r=mfinkle 2010-11-24 08:58:21 -05:00
nsIHTMLToTextSink.h
nsIImageLoadingContent.idl Bug 595036 (2/2) - Introduce nsEventStates class to represent event states. r+a=bz 2010-10-20 13:26:32 +02:00
nsIMessageWakeupService.idl Bug 591052 - MessageManager wakeup service. r=mfinkle,smaug a=blocking-fennec2.0b1 2010-09-03 19:04:05 -07:00
nsIMutationObserver2.h Bug 590771 - r=sicking a=blocking 2010-10-12 15:09:46 +02:00
nsIMutationObserver.h Bug 562698 - Part c: Pass Elements to AttributeWillChange; r=bzbarsky, a=dbaron 2010-08-24 09:06:20 +02:00
nsINameSpaceManager.h
nsINode.h Bug 650493 Part 1: Simplify mutation events by firing all but DOMNodeRemoved off of script runners, and DOMNodeRemoved before starting any update batches or aquiring any state. r=smaug/peterv 2011-05-09 12:33:03 -07:00
nsINodeInfo.h Bug 614171 part 5. Inline the cheap Equals() methods on nsINodeInfo. r=sicking 2011-05-05 12:26:33 -04:00
nsINodeList.h
nsIObjectLoadingContent.idl Bug 653201: Remove expose image / maemo specific npapi support. r=blassey r=josh 2011-05-21 11:21:49 -04:00
nsIPrivateDOMImplementation.h
nsIRange.h
nsIRangeUtils.h
nsIScriptElement.h Bug 606729 - Make sure a script with the src attribute is treated as an external script even if the value of the attribute is not a valid URL. r=jonas, a=blocking2.0-final. 2010-10-27 10:03:10 +03:00
nsIScriptEventHandler.idl
nsIScriptEventManager.idl
nsIScriptLoaderObserver.idl
nsISelection2.idl
nsISelection3.idl
nsISelection.idl
nsISelectionController.idl Bug 451833 - Highlight the domain name in the address bar. r=roc,sdwilsh ui-r=faaborg 2011-05-02 19:50:18 +02:00
nsISelectionDisplay.idl
nsISelectionListener.idl
nsISelectionPrivate.idl
nsIStyleSheetLinkingElement.h
nsISyncLoadDOMService.idl Bug 584967 mark deprecated dom interfaces with [deprecated]; r=smaug a=jst 2010-08-06 16:16:31 +03:00
nsIWebSocket.idl Bug 573422 - WebSocket .URL should be .url, r=sicking 2010-06-21 22:56:03 +03:00
nsIXFormsUtilityService.h
nsIXMLHttpRequest.idl Bug 649133 followup. Remove the 'moz' prefix on response/responseType, since Chrome has already shipped these unprefixed. r=sicking 2011-05-19 01:11:51 -04:00
nsIXPathEvaluatorInternal.h
nsLineBreaker.h bug 253317 - part 5 - support none/manual/auto values for -moz-hyphens in layout. r=roc 2011-05-04 12:29:56 +01:00
nsReferencedElement.h Bug 572688 - Add a DOM API called document.mozSetImageElement for overriding -moz-element ID target elements. r=jonas, r=roc 2010-08-13 15:35:36 +02:00
nsXMLNameSpaceMap.h Bug 551390 - Remove dead code in content r=sicking,roc 2011-05-17 15:54:09 +02:00