content/canvas/test/webgl-conformance/fix-webgl-harness-async.patch

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     1 diff --git a/content/canvas/test/webgl/resources/webgl-test-harness.js b/content/canvas/test/webgl/resources/webgl-test-harness.js
     2 --- a/content/canvas/test/webgl/resources/webgl-test-harness.js
     3 +++ b/content/canvas/test/webgl/resources/webgl-test-harness.js
     4 @@ -362,18 +362,16 @@ TestHarness.prototype.addFiles_ = functi
     5    }
     6    log("total files: " + files.length);
     7    for (var ii = 0; ii < files.length; ++ii) {
     8      log("" + ii + ": " + files[ii]);
     9      this.files.push(new TestFile(files[ii]));
    10      this.reportFunc(TestHarness.reportType.ADD_PAGE, files[ii], undefined);
    11    }
    12    this.reportFunc(TestHarness.reportType.READY, undefined, undefined);
    13 -  this.nextFileIndex = files.length;
    14 -  this.lastFileIndex = files.length;
    15  }
    17  TestHarness.prototype.runTests = function(opt_start, opt_count) {
    18    var count = opt_count || this.files.length;
    19    this.nextFileIndex = opt_start || 0;
    20    this.lastFileIndex = this.nextFileIndex + count;
    21    this.startNextFile();
    22  };

mercurial