uBlock icon indicating copy to clipboard operation
uBlock copied to clipboard

[Nightly][STR][1.13.7rc4->1.13.9b0]Options, icon, static/cosmetic filtering broken after WE hybrid migration

Open SXZ1 opened this issue 9 years ago • 35 comments

Nightly 19-07-2017, uBO1.13.9b0 from AMO, Win8.1 x64 with latest updates.

uBO is completely broken after migration to WebExtension hybrid version: Options button in about:addons and icon on the navigation bar are missing, static and cosmetic filtering doesn't work according to raymondhill.net.

STR:

Launch profile manager, create new profile Launch Nightly, open new tab, go to https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/versions/beta Install uBO 1.13.7rc4, click on OK in "uBlock Origin has been added to Nightly" popup Close the browser Launch Nightly, Make Nightly default - no, click on uBO icon - Settings Check "Prevent WebRTC from leaking local IP" Close uBO settings Close Nightly

Launch Nightly, enable Menu bar, Tools - Addons - Extensions, click on Gear - "Check for updates" uBO will update, start counting to 5, uBO should blink during that period of time. Once you say 5, close about:addons and close nightly

Launch Nightly

ER: uBlock icon is on the navigation bar, uBO is fully functional AR: Options button is missing in about:addons, uBO icon on the navigation bar is missing, network/cosmetic filtering doesn't work according to http://raymondhill.net/ublock/tiles1.html

Disabling/enabling uBO doesn't help. Outdated STR in comment 1 below, you shouldn't use it because it is more complicated.

SXZ1 avatar Jul 20 '17 10:07 SXZ1

STR (outdated, use simplified STR from the first post!)

Launch profile manager, create new profile with title n_ublock_longterm7 Launch Nightly, open new tab, go to https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/versions/beta Install uBO 1.13.7rc4, click on OK in "uBlock Origin has been added to Nightly" popup Close the browser Launch Nightly, Make Nightly default - no, click on uBO icon - Settings Check "Prevent WebRTC from leaking local IP", 3rd-party filters - check: Adblock Warning Removal List, RUS: BitBlock List, RUS: RU AdList

Click on "Apply Changes", click on "Update Now" in order to update filters and switch to "My filters tab" right after that Paste this text into "My filters" field:

!testskgjskgjskgj !skdgjskgghrje

Click Apply and close uBO settings Close Nightly

Launch Nightly, enable Menu bar, Tools - Addons - Extensions, click on Gear - "Check for updates" uBO will update, start counting to 5, uBO should blink during that period of time. Once you say 5, close about:addons and close nightly

Launch Nightly

ER: uBlock icon is on the navigation bar, uBO is fully functional AR: Options button is missing in about:addons, uBO icon on the navigation bar is missing, network/cosmetic filtering doesn't work according to http://raymondhill.net/ublock/tiles1.html

Disabling/enabling uBO doesn't help.

Here is video that shows STR: https://www.youtube.com/watch?v=3ecfzbqiqnA

SXZ1 avatar Jul 20 '17 11:07 SXZ1

Anything at the browser console?

gorhill avatar Jul 20 '17 11:07 gorhill

Yes, there are uBO-related entries in the browser console. I marked them with green. Screenshots below. Also, I've just reproduced this bug one more time using str from the first post and comment 1. I can post a video. image

SXZ1 avatar Jul 20 '17 12:07 SXZ1

Here is full screenshot of the browser console: image

SXZ1 avatar Jul 20 '17 12:07 SXZ1

Looks like there are file access issues? Look at the line "Failed to remove file C:\Users\...\trash\[email protected]". Something on your side is interfering with Firefox's file access?

gorhill avatar Jul 20 '17 12:07 gorhill

There is also the line "TypeError: parentDocShell ...", can you expand the stack?

gorhill avatar Jul 20 '17 12:07 gorhill

I have Kaspersky installed, I'll try to figure out if it is the source of the problem. There is one more user on mozillazine forum who reproduced this bug as well: http://forums.mozillazine.org/viewtopic.php?p=14756796#p14756796

Also, Screenshot dev team came across a similar issue, take a look at this comment and proposed solution: https://github.com/mozilla-services/screenshots/issues/3038#issuecomment-315234634 Also, here is the video of me reproducing the bug using str from the first post: https://www.youtube.com/watch?v=rwzfEjCtnDY

I'll expand the stack and post details here.

SXZ1 avatar Jul 20 '17 12:07 SXZ1

In the meanwhile, one more observation: I made a copy of my profile where bug was reproduced and launched this copy using profile manager. uBO 1.13.7rc4 was working normally again in that copied profile! I didn't do anything, just launched copied profile! Of course, these two profiles had different names but they were both stored in Firefox\Profiles folder. In other words:

Firefox\Profiles\Profile_where_bug_was_reproduced Firefox\Profiles\Profile_where_bug_was_reproduced_copy

SXZ1 avatar Jul 20 '17 12:07 SXZ1

About "TypeError: parentDocShell ..." I clicked on tab.js:62:23 and Nightly opened this page. It is pretty long so I uploaded it on imgur: http://i.imgur.com/fcm3YrG.jpg I don't know if that's what I was meant to do so please write back if I missed something. Imgur killed all the details so here it is:

SXZ1 avatar Jul 20 '17 12:07 SXZ1

My bad, I just realize there is no stack to expand for the TypeError error.

On my side I do not have this error either. Do you still have it without uBO installed?

gorhill avatar Jul 20 '17 12:07 gorhill

I've just created new profile, launched it, closed it, launched it and closed it: there is no TypeError in the browser console. Actually, the only error in the browser console is related to telemetry.

Also, I've reproduced this bug after I closed Nightly, closed Kaspersky (there were no Kaspersky-related processes in Task Manager), closed internet connection, connected to the internet again and launched Nightly in order to reproduce the bug.

SXZ1 avatar Jul 20 '17 12:07 SXZ1

I clicked on tab.js:62:23 and Nightly opened this page.

Just posting the URL of the page is better, all Nightly users have this file on their side.

gorhill avatar Jul 20 '17 13:07 gorhill

URL view-source:resource://devtools/server/actors/tab.js Marked line: let docShellsEnum = parentDocShell.getDocShellEnumerator(

SXZ1 avatar Jul 20 '17 13:07 SXZ1

My understanding is that this source code is related to dev tools. But then, how can dev tools be opened when you launch Nightly, this can only be done afterward. I don't know what to make of this. In any case, it could just be an error which is unrelated to the main issue here.

gorhill avatar Jul 20 '17 14:07 gorhill

I can reproduce this bug in a new profile that I created after I updated to Nightly 20-07-17. However, uBO1.13.9b0 started to function normally in my regular profile that I used to update Nightly from 19-07-17 to 20-07-17 (uBO1.13.9b0 was broken in this profile before I updated to 20-07-17). Strange.

SXZ1 avatar Jul 20 '17 14:07 SXZ1

Screenshots of the browser console from new profile&Nightly 20-07-17, some new errors in there: http://imgur.com/a/cKmM7

SXZ1 avatar Jul 20 '17 14:07 SXZ1

I think all this should be reported to bugzilla, I can't repro and I can't see any failure in uBO itself, the errors reported are outside uBO itself. I don't know what else to make of all this at this point.

gorhill avatar Jul 20 '17 16:07 gorhill

Thank you very much, gorhill! As far as I know, you're using Linux: did you try to reproduce this bug on Windows? Also, I have an account on bugzilla but I think it will be better if you file a bug because I don't understand anything at programming and the only thing I can contribute is STR and video from the first post. But I can file a bug if necessary.

SXZ1 avatar Jul 20 '17 17:07 SXZ1

Could you try your repro steps, but after you update to 1.13.9b0, keep your browser idle for a while, just to be sure uBO can complete it's storage conversion before quitting the browser. I would just like to see if this makes a difference, as I wonder what happens if one quit Firefox before uBO completes its storage conversion job (if ever this is something which can heppen).

gorhill avatar Jul 20 '17 18:07 gorhill

I tried to wait for 10 minutes after uBO updated to 1.13.9b0 but that didn't help: uBO was broken after I started Nightly.

SXZ1 avatar Jul 20 '17 19:07 SXZ1