diff options
-rwxr-xr-x | tools/reproduceriter.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/reproduceriter.py b/tools/reproduceriter.py index 5eb02fb7..755aa1fc 100755 --- a/tools/reproduceriter.py +++ b/tools/reproduceriter.py @@ -220,6 +220,9 @@ if (typeof nagivator == 'undefined') { }, }; } + case 'status-text': case 'progress': { + return {}; + } default: throw 'getElementById: ' + id; } }, @@ -349,6 +352,19 @@ if (typeof nagivator == 'undefined') { print(x); }, }; + var MozBlobBuilder = function() { + this.data = new Uint8Array(0); + this.append = function(buffer) { + var data = new Uint8Array(buffer); + var combined = new Uint8Array(this.data.length + data.length); + combined.set(this.data); + combined.set(data, this.data.length); + this.data = combined; + }; + this.getBlob = function() { + return this.data.buffer; // XXX we should change this + }; + }; } var Recorder = (function() { |