Closed Bug 1465877 Opened 6 years ago Closed 6 years ago

Some options are not getting disabled or enabled; Tracking Protection does not work

Categories

(Firefox for Android Graveyard :: General, defect, P1)

Firefox 62
ARM
Android

Tracking

(firefox-esr52 unaffected, firefox-esr60 unaffected, firefox61 unaffected, firefox62+ verified, firefox63 verified)

VERIFIED FIXED
Firefox 63
Tracking Status
firefox-esr52 --- unaffected
firefox-esr60 --- unaffected
firefox61 --- unaffected
firefox62 + verified
firefox63 --- verified

People

(Reporter: jdms.contato, Assigned: esawin)

References

()

Details

(Keywords: regression, Whiteboard: [priority:high][geckoview:klar:p1])

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0 Build ID: 20180531101452 Steps to reproduce: After some updates that Firefox Nightly for Android received, some options are not getting enabled or disabled, for example, if I enable Cookies, excluding third parties (the default is Enabled) the option is enabled, but if I leave the browser and start it again, some options that I've enabled or disabled are not saved. Also, the tracking protection is not working, a test site is the "Apkmirror", when I enter the site, the icon that shows that the tracking option is enabled, is not enabled, I have done tests with several sites and all the sites I tested have the same problem. So I do not know if this is a bug. I've tested the Beta version of the browser, and everything works as it should. The tracking protection is working and the options are according to the option I chose. I'm using an Xiaomi Mi A1; System info: https://i.imgur.com/jbue1rW.jpg Firefox Nightly: https://1drv.ms/v/s!AhHaljE4bL520SiHz_GLqKSWAFQd (Onedrive) Firefox Beta: https://1drv.ms/v/s!AhHaljE4bL520Scf2nF3nnkqwLD6 (Onedrive) Expected results: The options should be enabled or disabled depending on the choice I made. The tracking protection should be working and the icon being displayed.
I think I discovered the problem, I do not know if I'm wrong, but the Firefox Nightly version of Google Play is in trouble, I downloaded the latest version of the browser through the Mozilla server and the browser worked correctly, the tracking protection worked and the options are saved, since the Google Play version does not work as it should, and it is having problems as mentioned above. Firefox Nightly (Google Play): https://1drv.ms/v/s!AhHaljE4bL520Sm-pploEUO1q1vb (Onedrive) Firefox FTP Mozilla: https://1drv.ms/v/s!AhHaljE4bL520SrMtQpbZ4aFswIq (Onedrive)
I have the tracking protection bug. It doesn't work anymore.
Some quick test showed urlclassifier.trackingTable is set to blank. You can reset to the default value but after browser restart it is again set to blank.
Flags: needinfo?(michael.l.comella)
Thanks for the analysis. Bogdan, can you reproduce? If so, can you NI Susheel on this bug? Not listening to user preferences seems like a bad regression.
Flags: needinfo?(michael.l.comella) → needinfo?(bogdan.surd)
Devices: Reproduced on: - Huawei MediaPad M2 (Android 5.1.1); - Nokia 6 (Android 7.1.1); Did not reproduce on: - Nexus 9 (Android 6.0.1); Hello and thank you for you report, regarding the tracking protection we do have Bug 1466511 that confirms it, this is available for both the google play and FTP versions. As for options toggling on and off only Cookies seem to always go back to Enabled from any other option selected. Tracking protection toggle is not affected, or any other options from what I've noticed on my devices. As mentioned in Comment 1 only the Play Store version of Nightly(2018-06-04) is affected, FTP version(2018-06-04) works as expected. NI-ing Susheel for input and prioritization.
Status: UNCONFIRMED → NEW
tracking-fennec: --- → ?
Ever confirmed: true
Flags: needinfo?(bogdan.surd)
OS: Unspecified → Android
Hardware: Unspecified → ARM
Flags: needinfo?(sdaswani)
The Softvision Dev Crew will take a look at this as a high priority item. I think we have some time before it ships.
Flags: needinfo?(sdaswani)
Whiteboard: --do_not_change--[priority:high]
https://www.androidauthority.com/state-of-usb-type-c-870996/ is an example of a page that in Nightly (from Play Store) with Tracking Protection enabled for all browsing shows a lot of ads, which based on spot-checks are supposed to be on the Tracking Protection list, and doesn't show the Tracking Protection shield icon while in release-channel Firefox (also from Play Store) the Tracking Protection shield is shown and the ads don't appear.
Severity: normal → major
Flags: needinfo?(francois)
(In reply to Rodze from comment #3) > Some quick test showed urlclassifier.trackingTable is set to blank. That's why tracking protection doesn't work. To make it work: 1. go into about:config and reset the value of urlclassifier.trackingTable so that it's set to the default (non-empty) value 2. go into about:url-classifier and trigger a list update for the "mozilla" provider 3. go to https://itisatrap.org/firefox/its-a-tracker.html and everything should be green (with the shield icon show it)
Flags: needinfo?(francois)
(In reply to François Marier [:francois] from comment #9) > (In reply to Rodze from comment #3) > > Some quick test showed urlclassifier.trackingTable is set to blank. > > That's why tracking protection doesn't work. > > To make it work: > > 1. go into about:config and reset the value of urlclassifier.trackingTable > so that it's set to the default (non-empty) value > 2. go into about:url-classifier and trigger a list update for the "mozilla" > provider > 3. go to https://itisatrap.org/firefox/its-a-tracker.html and everything > should be green (with the shield icon show it), The whole problem is the configuration are lost after browser restart, as explained in the bug filing.
Assignee: nobody → vlad.baicu
Status: NEW → ASSIGNED
Eugen, this seems related to your recent work.
Flags: needinfo?(snorp) → needinfo?(esawin)
The empty tracking table config is bug 1465877, should be fixed now. I can look into the cookies setting issue if that's reproducing.
Flags: needinfo?(esawin)
Sorry, I meant bug 1466511.
I can confirm that the tracking protection works, for me at least
(In reply to Vlad Baicu from comment #14) > I can confirm that the tracking protection works, for me at least Yeah, works fine now.
The general issue is that in GeckoView we override default pref values in GeckoRuntimeSettings since we don't want any persistence between runtime sessions. This is in conflict with Fennec's model that is based on persistent prefs. I've discussed this issue a while back with Nicholas [:njn], but this hasn't been a high priority yet. In the meanwhile, we can add an option to GeckoRuntimeSettings to not override prefs with GeckoView defaults on startup, which Fennec would use to avoid this issue.
Vlad, I'm going to steal this one, since it's a regression from bug 1445420 and is best solved on the GeckoView side.
Assignee: vlad.baicu → esawin
Blocks: 1445420
I haven't worked on Fennec long enough to forget if there is a better way to check for this, do we need this?
Attachment #8988314 - Flags: review?(snorp)
Let's keep track of modified settings to avoid overriding (persistent) prefs when not required.
Attachment #8988315 - Flags: review?(snorp)
Attachment #8988314 - Flags: review?(snorp) → review+
Comment on attachment 8988315 [details] [diff] [review] 0002-Bug-1465877-2.0-Keep-track-of-modified-settings-to-p.patch Review of attachment 8988315 [details] [diff] [review]: ----------------------------------------------------------------- Kinda gross, but probably about the best we can do right now.
Attachment #8988315 - Flags: review?(snorp) → review+
Pushed by esawin@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/dc04076339d3 [1.0] Add a mechanic to test whether we're running GeckoView in Fennec environment. r=snorp https://hg.mozilla.org/integration/mozilla-inbound/rev/a17a279fda0f [2.0] Keep track of modified settings to prevent overriding prefs when not desired. r=snorp
We should uplift this fix to Beta 62.
Priority: -- → P1
Whiteboard: --do_not_change--[priority:high] → [priority:high][geckoview:klar:p1]
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 63
Eugen, can you request uplift to beta? Bogdan, can you verify the fix in nightly? Thanks!
Flags: needinfo?(esawin)
Flags: needinfo?(bogdan.surd)
Keywords: regression
Ryan, n-i in case you want to consider this for a fennec 51 dot release.
Flags: needinfo?(ryanvm)
I mean 61. We should make totally sure that it's really a regression from 61 though.
It would be great if we could get confirmation that this indeed affects Fennec 61 currently on release.
Flags: needinfo?(ryanvm)
Bug 1468070 (which was marked as a duplicate of this one) was definitively caused by bug 1433968, which only affects Firefox 62 and onwards.
Devices: - Nexus 5 (Android 6.0.1); - OnePlus 5T (Andoid 8); - Pixel (Android 9) Tested on the above-mentioned devices and the issue is no longer reproducible. No other settings seem to be affected by this change. Marking as verified.
Flags: needinfo?(bogdan.surd)
Can you request uplift to 62 (since Eugen is out on PTO)? And, I wonder if you can help verify whether this affects 61 or not? We can also ask for help from QA.
Flags: needinfo?(michael.l.comella)
I'm going to aim for getting this into the beta 5 build today, and won't block beta updates on the issue.
I can't reproduce duped bug #1472543 in Firefox 61. Now only Firefox 62 is affected.
Forwarding uplift request to 62 to Snorp (comment 34) who is more appropriate to uplift because he's the reviewer.
Flags: needinfo?(michael.l.comella) → needinfo?(snorp)
Comment on attachment 8988314 [details] [diff] [review] 0001-Bug-1465877-1.0-Add-a-mechanic-to-test-whether-we-re.patch Approval Request Comment [Feature/Bug causing the regression]: 1445420 [User impact if declined]: Some Fennec features won't work, such as tracking protection and debug support. [Is this code covered by automated tests?]: No [Has the fix been verified in Nightly?]: Yes [Needs manual test from QE? If yes, steps to reproduce]: Yes. Ensure toggling tracking protection in settings has the intended effect. [List of other uplifts needed for the feature/fix]: Both patchs on this bug [Is the change risky?]: No [Why is the change risky/not risky?]: Tested in Nightly, can't break it anymore than it already is :) [String changes made/needed]: None
Attachment #8988314 - Flags: approval-mozilla-beta?
Comment on attachment 8988314 [details] [diff] [review] 0001-Bug-1465877-1.0-Add-a-mechanic-to-test-whether-we-re.patch Verified in nightly, very convincing risk assessment, please uplift for beta 6
Attachment #8988314 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Verified on Beta 62.0b7. The Cookies toggle and TP are working as expected. Device: Samsung Galaxy Tab 3 (Android 7.0)
tracking-fennec: ? → ---
Flags: needinfo?(esawin)
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: