Skip to content

Commit

Permalink
Changed modifiedAPI to support FF28.
Browse files Browse the repository at this point in the history
Fixes #69.
  • Loading branch information
kkapsner committed May 16, 2016
1 parent 499037c commit 767f1da
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Binary file modified canvasblocker.xpi
Binary file not shown.
4 changes: 2 additions & 2 deletions install.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
- file, You can obtain one at http://mozilla.org/MPL/2.0/. --><RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#">
<Description about="urn:mozilla:install-manifest">
<em:id>[email protected]</em:id>
<em:version>0.2.2.1-OtherRelease</em:version>
<em:version>0.2.2.2-OtherRelease</em:version>
<em:type>2</em:type>
<em:bootstrap>true</em:bootstrap>
<em:unpack>false</em:unpack>
Expand All @@ -12,7 +12,7 @@
<em:targetApplication>
<Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
<em:minVersion>36.0</em:minVersion>
<em:minVersion>28.0</em:minVersion>
<em:maxVersion>40.0</em:maxVersion>
</Description>
</em:targetApplication>
Expand Down
4 changes: 2 additions & 2 deletions lib/modifiedAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
window.HTMLCanvasElement.prototype.getContext.call(original, "experimental-webgl") ||
window.HTMLCanvasElement.prototype.getContext.call(original, "webgl2") ||
window.HTMLCanvasElement.prototype.getContext.call(original, "experimental-webgl2");
imageData = new window.wrappedJSObject.ImageData(original.width, original.height);
imageData = context.createImageData(original.width, original.height);
source = new window.wrappedJSObject.Uint8Array(imageData.data.length);
window.WebGLRenderingContext.prototype.readPixels.call(
context,
Expand Down Expand Up @@ -98,7 +98,7 @@
var context = window.HTMLCanvasElement.prototype.getContext.call(getFakeCanvas(window, this.canvas), "2d");
var data = window.CanvasRenderingContext2D.prototype.getImageData.apply(context, arguments).data;

var imageData = new window.wrappedJSObject.ImageData(sw, sh);
var imageData = context.createImageData(sw, sh);
for (var i = 0, l = data.length; i < l; i += 1){
imageData.data[i] = data[i];
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,6 @@
"main": "lib/main.js",
"author": "Korbinian Kapsner",
"license": "MPL 2.0",
"version": "0.2.2-Release",
"version": "0.2.2.2-OtherRelease",
"permissions": {"private-browsing": true}
}

0 comments on commit 767f1da

Please sign in to comment.