1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-12-22 12:50:36 +01:00

Changed modifiedAPI to support FF28.

Fixes #69.
This commit is contained in:
kkapsner 2016-05-16 14:44:40 +02:00
parent 499037c406
commit 767f1da92c
4 changed files with 5 additions and 5 deletions

Binary file not shown.

View File

@ -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>CanvasBlocker@kkapsner.de</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>
@ -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>

View File

@ -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,
@ -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];
}

View File

@ -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}
}