Commit Graph

2779 Commits

Author SHA1 Message Date
Paul Adenot
d576633fa5 Bug 567077 - Fix an assertion failure when the decoder is cloned. r=cpearce 2012-09-04 16:25:02 -07:00
Paul Adenot
f746c93f81 Bug 567077 - Avoid sniffing when recreating a channel. r=cpearce 2012-09-04 17:49:46 -07:00
Paul Adenot
b0c64370c2 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
514aecd0b0 Backout bug 567077 for bustage. 2012-09-05 18:36:38 -04:00
Paul Adenot
85641057be Bug 567077 - Fix an assertion failure when the decoder is cloned. r=cpearce 2012-09-04 16:25:02 -07:00
Paul Adenot
4283006604 Bug 567077 - Avoid sniffing when recreating a channel. r=cpearce 2012-09-04 16:24:12 -07:00
Paul Adenot
5a71dd81e5 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
a61f718b7d 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
23293ab89e 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
29e291cda7 Backout 7887ace84c7d (bug 786801) due to mochitest-other orange. 2012-09-04 22:36:50 -04:00
Masatoshi Kimura
0995312fe0 Bug 784367 - Encode/decode document.cookie as UTF-8 per HTML5 spec. r=bz 2012-09-04 21:01:57 -04:00
Luke Wagner
a93bdcb064 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
e5b3162f1a Bug 745025 - Part 1 - Adds mozPrintCallback for canvas. r=smaug 2012-08-31 10:45:45 -07:00
Kyle Huey
ad2138e8cd Bug 786854: Don't parse background=''. r=bz 2012-09-04 08:53:11 -07:00
Aryeh Gregor
03ec8956fd Bug 782594 - Don't try returning nsresult in place of bool (content/); r=bz 2012-08-14 12:10:42 +03:00
Aryeh Gregor
5cb11391e0 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
29ac5c0b8c Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg 2012-09-01 22:35:17 -04:00
Paul Adenot
d6650a6ddf 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
db0d22bd6d Merge the last PGO-green inbound changeset to m-c. 2012-08-30 21:54:09 -04:00
Kyle Huey
3ff74985e4 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
8597074ce2 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
b44f1d6ed0 bug 767860 - stop using nsIDOMHTMLInputElement in a11y r=mounir, surkov 2012-06-03 07:36:51 -04:00
Boris Zbarsky
073e13c1ad 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
5bbd8de743 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
d78f231cff Bug 746142 - Part 1 - Add inputmode attribute to HTMLInputElement. r=mounir sr=smaug 2012-08-17 11:53:44 +02:00
David Zbarsky
501d88a50c Bug 785671 - nsHTMLMediaElement::mSrcStreamListener should be an nsRefPtr r=roc 2012-08-26 19:33:56 -04:00
Kyle Huey
0cae034974 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
ce71e55555 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
9345d39437 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
854457d901 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
8c296bbcd4 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
f0ee1ac2d2 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
c2fbc8f98c Bug 779914 - Remove redundant reset of nsHTMLMediaElement::mAudioStream. r=kinetik. 2012-08-21 17:07:00 +12:00
Chris Pearce
11fcaa9170 Bug 779914 - Reset Mozilla Audio Data API in nsHTMLMediaElment::AbortExistingLoads(). r=doublec 2012-08-21 17:06:55 +12:00
David Zbarsky
b27894f902 Bug 784004 - Don't include Layers.h everywhere Part 3 r=nical 2012-08-21 00:06:46 -04:00
Ian Melven
7b1c3d5d1b 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
260965c8f7 Bug 341604 - tests for iframe sandbox - general r=jst 2012-08-20 11:34:34 -07:00
Ian Melven
5bf4bcfbd0 Bug 341604 - tests for iframe sandbox - inheritance r=jst 2012-08-20 11:34:34 -07:00
Ian Melven
b0ac42ee64 Bug 341604 - tests for iframe sandbox - navigation r=jst 2012-08-20 11:34:33 -07:00
Ian Melven
0accdcb109 Bug 341604 - tests for iframe sandbox - plugins r=jst 2012-08-20 11:34:33 -07:00
Ian Melven
c1de7d7fff Bug 341604 - tests for iframe sandbox - workers r=jst 2012-08-20 11:34:33 -07:00
Ian Melven
bf4e70c4f4 Bug 341604 - tests for iframe sandbox - same origin r=jst 2012-08-20 11:34:33 -07:00
Ian Melven
915cb4516e Bug 341604 - Implement HTML5 sandbox attribute for IFRAMEs r=smaug r=jst 2012-08-20 11:34:32 -07:00
Robert O'Callahan
af2a8aba98 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
a6654c40fb 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
Robert O'Callahan
96500b65af Bug 779715. Part 5: Rename identifiers related to media element 'src' MediaStreams to be more specifically about 'src'. r=cpearce
--HG--
extra : rebase_source : c93f9bf3825ba933ef5a797a516a9ee1f4927e17
2012-08-20 16:52:59 +12:00
Nicolas Silva
54dd2bf57f Bug 782372 - Splits ImageLayers.h into ImageLayers.h ImageContainer.h and ImageTypes.h, r=bgirard 2012-08-19 15:33:25 -04:00
Chris Jones
630e2d21db Bug 783736: Load in-gecko controls for media-plugin types. r=roc 2012-08-18 14:48:25 -07:00
Brian R. Bondy
fd845b999a Bug 731307 - Use async filepicker from /content. r=mounir 2012-08-17 11:35:01 -04:00
Ed Morley
7435db4163 Backout 506268f7735e & ea163112807d (bug 746142) for Android build failures 2012-08-17 12:30:02 +01:00