Bug 882027. Route all calls to GetNextFrameStatus for determining the readyState through nsBuiltinDecoder::UpdateReadyStateForData on the main thread. r=cpearce,a=leo+
Bug 880601. Emulate a form of keyframe skipping by allowing nsMediaOmxReader::DecodeVideoFrame to decode more than one video frame if video decoding is falling behind. r=cpearce,a=leo+

If we don't support this in any way, then we get into trouble when there is
plenty of compressed data buffered but for some reason video decoding falls
behind (maybe there was a short period where the video data wasn't available).
Audio playback continues normally, but nsMediaOmxReader keeps making one call
to ReadAudio and one to ReadVideo, and if each call to ReadAudio decodes at
least as much as the calls to ReadVideo, video decoding can never catch up
to the current audio playback position. So video never plays. And when the
video decoding point gets far enough away from the audio decoding point,
horrible things start to happen, such as video and audio reading completely
different parts of the media cache and interfering with the caching mechanism
(which assumes audio and video reads are close together).

This patch approximates keyframe skipping, and is basically just a way for
nsMediaOmxReader::DecodeVideoFrame to decode more than one frame at a time
if we need video decoding to catch up.

To prevent pathological situations, we cap both the maximum number of frames
decoded per DecodeVideoFrame and the amount of time we spend in the method
(excluding the time for the last frame).
Bug 811679 - Add nsIEditorObserver back. r=ehsan, a=leo+
Bug 860546 - [keyboard] Notify keyboard when the content of current input field is changed by JS. r=fabrice, a=leo+
Bug 711043 - Factor out operator type checks from the middle of feMorphology loop. r=roc a=bajaj
Merge b2g18 to v1.1hd. a=merge