Backed out changeset 1f511a0e1484 (bug 1283803) for Media test failed
authorIris Hsiao <ihsiao@mozilla.com>
Tue, 19 Jul 2016 16:34:04 +0800
changeset 330542 242b9e254d65fcfe29d0a794cf69a4749ee5a0e1
parent 330541 803e66dd3d5b7c637d18cf7f073408d162982065
child 330543 f82ca603aede87e4264842dae3e5fb8163b1328f
push id9858
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 14:37:10 +0000
treeherdermozilla-aurora@203106ef6cb6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1283803
milestone50.0a1
backs out1f511a0e1484150122a25487e8ea4ce40938804d
Backed out changeset 1f511a0e1484 (bug 1283803) for Media test failed
dom/media/webvtt/vtt.jsm
testing/web-platform/meta/webvtt/webvtt-file-format-parsing/webvtt-file-parsing/001.html.ini
--- a/dom/media/webvtt/vtt.jsm
+++ b/dom/media/webvtt/vtt.jsm
@@ -172,17 +172,17 @@ this.EXPORTED_SYMBOLS = ["WebVTT"];
     // 4.1 WebVTT timestamp
     function consumeTimeStamp() {
       var ts = collectTimeStamp(input);
       if (ts === null) {
         throw new ParsingError(ParsingError.Errors.BadTimeStamp,
                               "Malformed timestamp: " + oInput);
       }
       // Remove time stamp from input.
-      input = input.replace(/^[^\s\uFFFDa-zA-Z-]+/, "");
+      input = input.replace(/^[^\sa-zA-Z-]+/, "");
       return ts;
     }
 
     // 4.4.2 WebVTT cue settings
     function consumeCueSettings(input, cue) {
       var settings = new Settings();
 
       parseOptions(input, function (k, v) {
@@ -1261,18 +1261,17 @@ this.EXPORTED_SYMBOLS = ["WebVTT"];
         // Advance the buffer early in case we fail below.
         if (buffer[pos] === '\r') {
           ++pos;
         }
         if (buffer[pos] === '\n') {
           ++pos;
         }
         self.buffer = buffer.substr(pos);
-        // Spec defined replacement.
-        return line.replace(/[\u0000]/g, "\uFFFD");
+        return line;
       }
 
       function createCueIfNeeded() {
         if (!self.cue) {
           self.cue = new self.window.VTTCue(0, 0, "");
         }
       }
 
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/meta/webvtt/webvtt-file-format-parsing/webvtt-file-parsing/001.html.ini
@@ -0,0 +1,4 @@
+[001.html]
+  type: testharness
+  [WebVTT parser tests, nulls.vtt]
+    expected: FAIL
\ No newline at end of file