Back out bug 562169 because of Dromaeo DOM regressions

Backed out changeset 841cd6e1e585 (bug 562169)
Backed out changeset e226e413dd27 (bug 562169)
Backed out changeset 9c24b7287c5b (bug 562169)
Bug 780699 - Prevent possible deadlock by reducing the scope of a synchronized block in GLController. r=ajuma
Bug 781152 - make telemetry ping save directory properly readable on Unix-ish platforms; r=taras
Bug 779935 - nsIAppsService.idl need to get mozIDOMApplication from manifest id [r=mounir]
Bug 781128 - Fix application.ini dependencies after bug 767839 on a CLOSED TREE. r=ted

--HG--
extra : transplant_source : N%3F%B1%F9%F7%2A%DC%B3%0C%3C%13%0D%24%17%07%9FP%DE%7D%5B
merge
Bug 781224 - Rename APP_STATUS_TRUSTED to APP_STATUS_PRIVILEGED in nsIPrincipal [r=mounir]
Bug 768306 - Patch 1: Fix error handling in unpacking DBus replies, set up DBus blocking call handling thread; r=mrbkap
Bug 768306 - Patch 2: Change BluetoothAdapter initialization to get properties via off main thread blocking calls when creating Adapter object; r=mrbkap
Bug 778067: Disable 735943.html for <browser remote>, for now. r=jlebar
Bug 671196: Kill content processes that cause processing errors in the chrome process. r=bsmedberg
Bug 770056 - Remove [NSView focusView] conditions from cocoa theme code. r=mstange
Bug 739671 - Store optimized Color/ImageLayers on the ThebesLayers that they replace. r=roc
Bug 783449 - Move android specific NeedsPaint checks into the android widget implementation. r=roc
Bug 779715. Part 1: Add basic support for ProcessedMediaStreams. r=jesup
The main thing this patch does is to add ProcessedMediaStream objects and
MediaInputPorts connecting streams. ProcessedMediaStreams are an abstract
class that doesn't constrain what processing is actually performed, except
that for now we assume a stream's processing depends only on its inputs
window of data between mCurrentTime and mStateComputedTime.
This patch reorganizes the way the blocking status of each stream is computed.
The streams are partitioned into groups so that every stream which can affect
the blocking status of another stream is in the same group as that other stream.
We also add a pass to order the streams by dependency so we can process the streams
in order of dependency; this pass also identifies the streams that form part of a
cycle.

--HG--
extra : rebase_source : c45c931a264e73f295642a934500bbeaa6448774
Bug 779715. Part 2: Create TrackUnionStream. r=jesup

--HG--
extra : rebase_source : 29038fa1b93dcade3d762537bf510dc0901a9738
Bug 779715. Part 3: Add an API to get notifications of changes to the main-thread-visible state of a MediaStream. r=jesup

--HG--
extra : rebase_source : 24b7204d219612760b9d159fff5219c1960df51a
Bug 779715. Part 4: Play all tracks of a media stream with multiple tracks. r=jesup
Until now we've identified the "first active track" of a stream and played only that. Instead,
it makes more sense to play all the tracks.
For video, we pick the last track that has a video frame for the current time, and display that.

--HG--
extra : rebase_source : 00ce3eb363df06c292232aa507e861639d10cff2
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
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