NiklasGollenstede / stop-fingerprinting

Web extension that disables some tracking APIs
Mozilla Public License 2.0
5 stars 0 forks source link

Console garbage #1

Open dezhavu opened 8 years ago

dezhavu commented 8 years ago

Hey people can you fix this great addon, I really really need it for monitor resolution privacy issues but i get my console log shitted with - events.js:88
This is a console dump if it helps, please correct this great addon, can't seat every window/tab created on Responsive Design View, and other methods fail for 1920x1080(whole) + 1920x1040 (available). This addon is just perfect solution. Thanks a lot, and if there a place to donate i'm ready to drop few bucks for this addon.

I've got my config set up for privacy & anonimity as much as possible, thats why it's possible windows.MediaDevices isn't being find or 'defined', but there are so many of these errors, so i can't see others, to analyze the webpage and resources being loaded.

stop-fingerprinting:TypeError: window.MediaDevices is undefined Stack trace: fakeAPIs@resource://gre/modules/commonjs/toolkit/loader.js -> resource://stop-fingerprinting/content.js:102:1 onGlobalCreated@resource://gre/modules/commonjs/toolkit/loader.js -> resource://stop-fingerprinting/main.js:28:2 Observer<.observe@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/system/events.js:81:7 events.js:88 stop-fingerprinting:TypeError: window.MediaDevices is undefined Stack trace: fakeAPIs@resource://gre/modules/commonjs/toolkit/loader.js -> resource://stop-fingerprinting/content.js:102:1 onGlobalCreated@resource://gre/modules/commonjs/toolkit/loader.js -> resource://stop-fingerprinting/main.js:28:2 Observer<.observe@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/system/events.js:81:7 stop-fingerprinting:TypeError: window.MediaDevices is undefined Stack trace: fakeAPIs@resource://gre/modules/commonjs/toolkit/loader.js -> resource://stop-fingerprinting/content.js:102:1 onGlobalCreated@resource://gre/modules/commonjs/toolkit/loader.js -> resource://stop-fingerprinting/main.js:28:2 Observer<.observe@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/system/events.js:81:7 _loadURIWithFlags@chrome://tabmixplus/content/changecode.js line 197 > eval:29:7 loadURIWithFlags@chrome://browser/content/tabbrowser.xml:6697:13 addTab@chrome://browser/content/tabbrowser.xml:1949:17 change_gBrowser/gBrowser.addTab@chrome://tabmixplus/content/minit/tablib.js:191:17 loadOneTab@chrome://browser/content/tabbrowser.xml:1455:23 @chrome://tabmixplus/content/changecode.js line 197 > eval:27:59 @chrome://tabmixplus/content/changecode.js line 197 > eval:65:23 noscriptOverlay<.browserAccess.openURI@chrome://noscript/content/noscriptOverlay.js:2822:13 handURIToExistingBrowser@resource://app/components/nsBrowserContentHandler.js:690:3 bch_handle@resource://app/components/nsBrowserContentHandler.js:352:9 stop-fingerprinting:TypeError: window.MediaDevices is undefined Stack trace: fakeAPIs@resource://gre/modules/commonjs/toolkit/loader.js -> resource://stop-fingerprinting/content.js:102:1 onGlobalCreated@resource://gre/modules/commonjs/toolkit/loader.js -> resource://stop-fingerprinting/main.js:28:2 Observer<.observe@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/system/events.js:81:7 events.js:88 stop-fingerprinting:TypeError: window.MediaDevices is undefined Stack trace: fakeAPIs@resource://gre/modules/commonjs/toolkit/loader.js -> resource://stop-fingerprinting/content.js:102:1 onGlobalCreated@resource://gre/modules/commonjs/toolkit/loader.js -> resource://stop-fingerprinting/main.js:28:2 Observer<.observe@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/system/events.js:81:7

NiklasGollenstede commented 8 years ago

Hi, I'm currently in the process of rewriting this add-on. The version you are using (the one that's currently available on addons.mozilla.org) is thus outdated and I won't really support that any more. I plan to release the new version in the next weeks, probably not much before the release of Firefox 48 in august, though. Judging from the stack trace(es) you posted, that new version should fix your problem (an work much better in many regards). If you want, I can hurry up and add instructions on how you can build the current version of the add-on from the source code here yourself, or, if you think that is easier for you, I could email you a beta version to an email address you provide.

dezhavu commented 8 years ago

Hey, it would be just great, i downloaded the current master, will try by using default jpm xpi, as i built other betas before, but if you would send a beta it would be just fine for me, thanks a lot. And thanks for keeping up work on this great addon, it really have sense among many others.

Tried to convince author of CanvasBlocker that a hash per session is better than hash per request if you can't craft hash, then make it stable, even someone forked his addon but added a "hash per computer" :), still not the way it should work. These days hard to convince developers to do something outside of the box.

NiklasGollenstede commented 8 years ago

This add-on uses a different API and needs to be built with Mozillas new web-ext tool.

npm i web-ext -g
npm i
web-ext build --artifacts-dir .

Should create a .xpi-file (which is quite big (~75Mb), I'll have to optimize that, but it should work for now).

Regarding the Canvas Blocker: As it happens I already plan to do that :)

NiklasGollenstede commented 8 years ago

Ok, I added a build script now running (only!) npm i --production will create a clean and small .xpi package

dezhavu commented 8 years ago

will try it right once get home, thanks for working script!

dezhavu commented 8 years ago

it's great, but full of bugs man, i couldnt save a single profile, then i created multiple and set highest priority for the first one to get it working everything is randomized my ass, no control or i didn't understand it yet can you adjust canvas to be 1 per session? (till browser restarts)

NiklasGollenstede commented 8 years ago

"no control or i didn't understand it yet" -- Yeah, I know it's probably to complicated, especially without good descriptions

"can you adjust canvas to be 1 per session?" -- Ok, I'll implement a first version of that sooner than I originally planned

"i couldnt save a single profile, then i created multiple and set highest priority for the first one to get it working" -- If you want a 'default' profile, you have to give it a low priority (so that more specific ones can overwrite its values) and have to get it to apply to everything, for example by adding a RegExp rule .* to it.