Commit Graph

2784 Commits

Author SHA1 Message Date
Boris Zbarsky
40ab1e88e7 Bug 601912. Implement <ol reversed>. r=dholbert 2012-09-07 22:30:24 -04:00
L. David Baron
ff3df34b87 Rename nsIPresShell::InitialReflow to Initialize since it doesn't actually perform reflow. (Bug 788956) r=roc 2012-09-06 21:16:09 -07:00
Ms2ger
d653d11db3 Bug 787412 - HTMLOptionElement.prototype.text should use do a deep tree traversal; r=mounir 2012-09-06 09:25:05 +02:00
Ms2ger
a56d5a2aa5 Bug 782915 - Outparamdel nsHTMLTableRowElement getters; r=mounir 2012-09-06 09:14:49 +02:00
Makoto Kato
c28c020a8f Bug 784912 - nsIStreamListener.onDataAvailable should handle 64-bit offset. r=honza 2012-09-06 11:41:02 +09:00
Paul Adenot
227e7a96df Bug 567077 - Fix an assertion failure when the decoder is cloned. r=cpearce 2012-09-04 16:25:02 -07:00
Paul Adenot
1328b09819 Bug 567077 - Avoid sniffing when recreating a channel. r=cpearce 2012-09-04 17:49:46 -07:00
Paul Adenot
2719cc62de Bug 567077 - Sniff types of media files that are served with no Content-Type. r=cpearce 2012-09-04 16:22:34 -07:00
Ryan VanderMeulen
07a63bd067 Backout bug 567077 for bustage. 2012-09-05 18:36:38 -04:00
Paul Adenot
0abfc46448 Bug 567077 - Fix an assertion failure when the decoder is cloned. r=cpearce 2012-09-04 16:25:02 -07:00
Paul Adenot
bdab14e35c Bug 567077 - Avoid sniffing when recreating a channel. r=cpearce 2012-09-04 16:24:12 -07:00
Paul Adenot
cce500079e Bug 567077 - Sniff types of media files that are served with no Content-Type. r=cpearce 2012-09-04 16:22:34 -07:00
Mounir Lamouri
45c66f71d7 Bug 787102 - (2/2) - Dispatch the change event for textarea elements even if .value is set while focused. r=bz 2012-09-05 13:40:13 +01:00
Mounir Lamouri
22a7f92553 Bug 787102 - (1/2) - Dispatch the change event for input elements even if .value is set while focused. r=bz 2012-09-05 13:39:33 +01:00
Ryan VanderMeulen
0b244d0a4d Backout 7887ace84c7d (bug 786801) due to mochitest-other orange. 2012-09-04 22:36:50 -04:00
Masatoshi Kimura
b9f453cd6e Bug 784367 - Encode/decode document.cookie as UTF-8 per HTML5 spec. r=bz 2012-09-04 21:01:57 -04:00
Luke Wagner
489fcb6974 Bug 786801 - js_InferFlags should not stop at compartment boundaries (r=bhackett)
--HG--
extra : rebase_source : a8c83b7965d4b7fd1fa2bf12c1d5e24a20244215
2012-09-04 14:31:04 -07:00
Brendan Dahl
3f688bb97f Bug 745025 - Part 1 - Adds mozPrintCallback for canvas. r=smaug 2012-08-31 10:45:45 -07:00
Kyle Huey
085c300900 Bug 786854: Don't parse background=''. r=bz 2012-09-04 08:53:11 -07:00
Aryeh Gregor
23921289a1 Bug 782594 - Don't try returning nsresult in place of bool (content/); r=bz 2012-08-14 12:10:42 +03:00
Aryeh Gregor
920c5474b3 Bug 782594 - Use NS_FAILED instead of boolean test (content/, js/xpconnect/, layout/); r=bz 2012-08-07 17:58:47 +03:00
Randell Jesup
eedf93a21d Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg 2012-09-01 22:35:17 -04:00
Paul Adenot
02ca3e551c Bug 783953 - Rename MOZ_SAMPLE_TYPE_S16LE to MOZ_SAMPLE_TYPE_S16. r=kinetik,roc 2012-09-01 11:35:56 -04:00
Ryan VanderMeulen
df8b5323ba Merge the last PGO-green inbound changeset to m-c. 2012-08-30 21:54:09 -04:00
Kyle Huey
75454be03c Bug 786048: Rename 'JSEventListener' to 'EventHandler' to better match the spec's terminology. r=smaug 2012-08-30 09:25:10 -07:00
Boris Zbarsky
23647ac40f Bug 786564. Add a crossOrigin IDL attribute on <link>. r=sicking
--HG--
rename : content/html/content/test/test_bug742549.html => content/html/content/test/test_bug786564.html
2012-08-30 14:06:24 -04:00
Trevor Saunders
d47266cf09 bug 767860 - stop using nsIDOMHTMLInputElement in a11y r=mounir, surkov 2012-06-03 07:36:51 -04:00
Boris Zbarsky
41ac1056bf Bug 732209 part 2. Communicate the CORS state of style link loads to the CSS loader. r=sicking 2012-08-28 13:10:07 -04:00
Chris Pearce
14f7d80c2c Bug 784932 - Allow HTMLMediaElement.buffered to be read when readyState > HAVE_NOTHING instead of > HAVE_METADATA. r=roc 2012-08-27 20:30:29 +12:00
Zoe Bellot
ca74cd158f Bug 746142 - Part 1 - Add inputmode attribute to HTMLInputElement. r=mounir sr=smaug 2012-08-17 11:53:44 +02:00
David Zbarsky
ae85eb5db3 Bug 785671 - nsHTMLMediaElement::mSrcStreamListener should be an nsRefPtr r=roc 2012-08-26 19:33:56 -04:00
Kyle Huey
1a68eab98d Bug 783162: Make mapped attributes hold the image alive. r=bz
The nsCSSValue in nsGenericHTMLElement::MapBackgroundInto is a temporary.  This causes a problem after Bug 697230 landed, because the nsCSSValue::Image we put into that value is destroyed once we're done doing style stuff.  Previously the nsImageLoader would grab the request off the nsCSSValue::Image and hold it alive.  Bug 697230 changed the behavior here; now when the nsCSSValue::Image is destroyed it tells the image loader to drop the request.  The result is that all the references to the request are dropped and the frame is never told it has a background.

The solution is to keep the nsCSSValue::Image alive longer.  This patch adds two new types of nsAttrValue.  The first is an nsCSSValue::URL.  A ParseBackgroundAttribute method is added on nsGenericHTMLElement that the relevant elements (body/td/th/table/tr/tbody/thead/tfoot) call that parses background into an nsCSSValue::URL.  The second is an nsCSSValue::Image.  nsGenericHTMLElement::MapBackgroundInto attempts to convert the nsCSSValue::URL into an nsCSSValue::Image by kicking off the image load.  The result is that image loads are only started when the element is actually visible.  This also mirrors the way background-image works.  This also allows us to fix two longstanding bugs in this code.  Since MapBackgroundInto doesn't have a pointer to the actual element, it relied on grabbing the principal of the document.  Now we can grab the principal of the node in ParseBackgroundAttribute.  MapBackgroundInto also has no way to get at the element's base URI (to honor xml:base), which is now possible in ParseBackgroundAttribute.

nsCSSValue::[Image|URL] have also been moved to be mozilla::css::[Image|URL]Value.  nsAttrValue.h is included in external linkage code, so it can't include nsCSSValue.h to get the declarations of nsCSSValue::[Image|URL], and nested classes can't be forward declared.  Moving the classes to a namespace solves the problem.

Finally some old inoperative quirks mode code was removed.  This code has done nothing since Bug 273078 was landed in 2004.
2012-08-24 10:50:49 -07:00
Luke Wagner
94264a0bc8 Bug 625199 - s/JSAutoEnterCompartment/JSAutoCompartment/ and make it infallible (r=bholley)
--HG--
extra : rebase_source : 12acf2288285f5caefd7fecea8207de3a47eab5b
2012-08-21 18:42:53 -07:00
Robert O'Callahan
727fa86a21 Bug 779715. Part 6: Rework capturing MediaStreams from media elements to use TrackUnionStreams. r=cpearce,jesup
Moves to a new setup where a decoder manages a single SourceMediaStream internally. Each stream
returned from mozCaptureStream(UntilEnded) is a TrackUnionStream which is fed by the
decoder's SourceMediaStream.
We want the captured streams to be blocked while the media element is not playing. We do that
by blocking any captured stream that has no SourceMediaStream feeding into it, and blocking
any SourceMediaStream while its decoder is not playing.
We arrange for the decoders's PlaybackEnded to be delayed until its SourceMediaStream has
finished according to the media stream graph. This ensures the state of captured media streams
corresponds more closely to the media element state.

--HG--
extra : rebase_source : 3324ff0e9bdce9c71a23c0f5f2032815e9046081
2012-08-01 00:17:22 +12:00
Peter Van der Beken
13f425b97c Fix for bug 768692 (Move DOM list binding generation to the new DOM binding codegen). r=bzbarsky.
--HG--
extra : rebase_source : 651a0fac4c9a87ef1c0a9cd91588c6421fd050c4
2012-05-22 15:46:20 +02:00
Ehsan Akhgari
0fd9123eac Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script.  Here's the source of the script for
future reference:

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t

convert PRIntn int
convert PRUintn unsigned

convert PRSize size_t

convert PROffset32 int32_t
convert PROffset64 int64_t

convert PRPtrdiff ptrdiff_t

convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Paul Adenot
9670c86dc2 Bug 775319 - Determine the sample format at compile time for all media code. r=kinetik 2012-08-16 18:10:36 -07:00
Chris Pearce
cdc788f72d Bug 779914 - Remove redundant reset of nsHTMLMediaElement::mAudioStream. r=kinetik. 2012-08-21 17:07:00 +12:00
Chris Pearce
3eaba47273 Bug 779914 - Reset Mozilla Audio Data API in nsHTMLMediaElment::AbortExistingLoads(). r=doublec 2012-08-21 17:06:55 +12:00
David Zbarsky
fbb04700b6 Bug 784004 - Don't include Layers.h everywhere Part 3 r=nical 2012-08-21 00:06:46 -04:00
Ian Melven
1c2a281d12 Bug 341604 - iframe sandbox - block indexedDB if sandboxed without allow-same-origin, add tests for indexedDB r=jst 2012-08-20 11:34:34 -07:00
Ian Melven
75a3f54cdc Bug 341604 - tests for iframe sandbox - general r=jst 2012-08-20 11:34:34 -07:00
Ian Melven
2dc1d8acac Bug 341604 - tests for iframe sandbox - inheritance r=jst 2012-08-20 11:34:34 -07:00
Ian Melven
63b0e06660 Bug 341604 - tests for iframe sandbox - navigation r=jst 2012-08-20 11:34:33 -07:00
Ian Melven
66e72cf921 Bug 341604 - tests for iframe sandbox - plugins r=jst 2012-08-20 11:34:33 -07:00
Ian Melven
08e8f4becb Bug 341604 - tests for iframe sandbox - workers r=jst 2012-08-20 11:34:33 -07:00
Ian Melven
488c17dbef Bug 341604 - tests for iframe sandbox - same origin r=jst 2012-08-20 11:34:33 -07:00
Ian Melven
46a3add818 Bug 341604 - Implement HTML5 sandbox attribute for IFRAMEs r=smaug r=jst 2012-08-20 11:34:32 -07:00
Robert O'Callahan
cdb5480e47 Backing out parts 6 and 7 of bug 779715 (5a87f1d1807d, 5a87f1d1807d) due to crashtest orange.
--HG--
extra : rebase_source : bb7acb9958452850bd9d36f8e58f956d065d4935
2012-08-21 00:44:32 +12:00
Robert O'Callahan
bcd9f63ad8 Bug 779715. Part 6: Rework capturing MediaStreams from media elements to use TrackUnionStreams. r=cpearce,jesup
Moves to a new setup where a decoder manages a single SourceMediaStream internally. Each stream
returned from mozCaptureStream(UntilEnded) is a TrackUnionStream which is fed by the
decoder's SourceMediaStream.
We want the captured streams to be blocked while the media element is not playing. We do that
by blocking any captured stream that has no SourceMediaStream feeding into it, and blocking
any SourceMediaStream while its decoder is not playing.
We arrange for the decoders's PlaybackEnded to be delayed until its SourceMediaStream has
finished according to the media stream graph. This ensures the state of captured media streams
corresponds more closely to the media element state.

--HG--
extra : rebase_source : a301714fad57a3b7c963530a3da99c54bc8ac436
2012-08-01 00:17:22 +12:00