uBlock icon indicating copy to clipboard operation
uBlock copied to clipboard

Firefox: uBlock popup is blank

Open ozar opened this issue 11 years ago • 19 comments

Running Firefox 36.0.1 on Linux

The current data/stats areas and version indicator of the ublock popup are blank after upgrading from 0.9.1.1 to version 0.9.1.2-dev.1

I've tried simply upgrading, and I've tried removing uBlock, then fresh installing the dev version, but still no stats or version indicator on the popup.

Dropping back to 0.9.1.1 gets things working properly again.

ozar avatar Mar 16 '15 00:03 ozar

I've had the same symptom. Quitting and restarting Firefox solved the issue.

gorhill avatar Mar 16 '15 00:03 gorhill

That's one thing I didn't try, so I'll give it another go and see what happens. Thanks!

ozar avatar Mar 16 '15 00:03 ozar

No luck here with a Firefox restart. I noticed also that the dev version is leaving all filters off of the the 3rd-party filters tab. Only the lines regarding auto-updates and parsing cosmetic filters is showing up, along with the custom filter examples.

ozar avatar Mar 16 '15 00:03 ozar

Can you look in the browser console[1] if there are error messages?

[1] Ctrl-Shift-J

gorhill avatar Mar 16 '15 00:03 gorhill

What a strange coincidence... I just reproduced, my +"3rd-party filters" pane is also empty.

Investigating.

gorhill avatar Mar 16 '15 00:03 gorhill

With a fresh start in Firefox, opening the uBlock popup and checking the browser console is giving a security error:

SecurityError: The operation is insecure. popup.js:36:0

ozar avatar Mar 16 '15 00:03 ozar

@Deathamns, @AlexVallat I am confused. The browser complains that vAPI.lastError is not a function, while it is clearly defined in vapi-background.js. I tried to launch the browser to break on vAPI.lastError() in assets.js, but the breakpoint was never triggered:

d

gorhill avatar Mar 16 '15 00:03 gorhill

@ozar I don't get this one. What operation, are there details about it?

gorhill avatar Mar 16 '15 00:03 gorhill

No details really. The console had many lines, I cleared it, then opened the uBlock popup, and that one line regarding security is all that comes up unless I do other things in Firefox. Of course, the data is still missing from the popup window.

ozar avatar Mar 16 '15 00:03 ozar

My popup works, it's my 3rd-party filters pane which is broken.

There seems to be something going on, I can't tell what. I get these "security error" warnings too:

Security Error: Content at moz-nullprincipal:{41ee2473-2e49-46e9-b9f2-dcd73dcdc6d9} may not load or link to chrome://ublock/content/settings.html.
Security Error: Content at moz-nullprincipal:{41ee2473-2e49-46e9-b9f2-dcd73dcdc6d9} may not load or link to chrome://ublock/content/3p-filters.html.

I can't tell what is {41ee2473-2e49-46e9-b9f2-dcd73dcdc6d9}. This remiinds me of this other report earlier today: https://github.com/gorhill/uBlock/issues/1020#issuecomment-81196747. However as opposed to that case, I have no other add-on enabled.

gorhill avatar Mar 16 '15 00:03 gorhill

Quitting and restarting Firefox fixed the issue on my side, but there is definitely a problem to fix somewhere.

gorhill avatar Mar 16 '15 01:03 gorhill

I generally only use static filtering, but just noticed that even when I try to use dynamic filtering, the popup won't open up fully giving me access to the advanced information. It remains in static mode, with no stats. Restarting Firefox doesn't help in my case.

ozar avatar Mar 16 '15 01:03 ozar

@gorhill is {41ee2473-2e49-46e9-b9f2-dcd73dcdc6d9} some generated id for ublock? Because that id I had in my error from that screenshot is now another id :

Security Error: Content at moz-nullprincipal:{2dce829b-50fb-4042-b19d-3197ea600260} may not load or link to chrome://ublock/content/3p-filters.html.

my-password-is-password avatar Mar 16 '15 01:03 my-password-is-password

I have a feeling this might be related to that change, because the first thing executed when opening the popup is accessing that local storage. That storage is also used in the 3rd-party filters pane.

Anyways, I will remove the use from the popup, as in the end it did not solve the issue I was trying to solve( #996).

gorhill avatar Mar 16 '15 01:03 gorhill

@my-password-is-password Yes, after restarting Firefox I get similar errors but with a new id.

gorhill avatar Mar 16 '15 01:03 gorhill

Note that all the issues I've described above, including the security issue in console, go away when I drop back to version 0.9.1.1

ozar avatar Mar 16 '15 01:03 ozar

Yes, 0.9.1.1 is almost same as 0.9.1.0, it was mostly an emergency fix for Chromium. 0.9.1.1 does not contains that local storage code.

gorhill avatar Mar 16 '15 01:03 gorhill

I changed vAPI.localStorage to Firefox config (which shouldn't be used for large data), test with that...

By the way, about these Security Error: Content at moz-nullprincipal... errors, just ignore them.

Deathamns avatar Mar 16 '15 07:03 Deathamns

Just a quick note to say that version 0.9.1.2-dev.2 has fixed all the issues I've described above.

Thanks for the fixes. :)

EDIT: sorry for the double post but for some reason, the GigHub software was not allowing me to edit the other post like this one.

ozar avatar Mar 16 '15 11:03 ozar