Opened on 08/07/2018 at 11:04:44 AM
Closed on 08/23/2018 at 11:48:06 AM
Last modified on 10/23/2018 at 07:57:29 AM
#6838 closed defect (fixed)
Sometimes all subscriptions are listed as additional subscriptions
Reported by: | Ross | Assignee: | greiner |
---|---|---|---|
Priority: | P1 | Milestone: | |
Module: | User-Interface | Keywords: | |
Cc: | sebastian, kzar, greiner, agiammarchi, saroyanm, wspee | Blocked By: | |
Blocking: | #6892 | Platform: | Unknown / Cross platform |
Ready: | yes | Confidential: | no |
Tester: | Ross | Verified working: | yes |
Review URL(s): |
https://gitlab.com/eyeo/adblockplus/adblockplusui/merge_requests/83 |
Description (last modified by Ross)
Environment
ABP 3.2.2102
Firefox 61 / 55 / 51 / Windows 10
Could not reproduce in Chrome 61 / 49.
Does not occur every time.
How to reproduce
- Install ABP.
- Open options.
- Close options.
- Navigate to http://testpages.adblockplus.org
- Select the subscribe link.
- Add the subscription.
- Close options.
- Open options.
Observed behaviour
Sometimes after adding what ABP considers "an additional subscription" the ABP options page seems to get confused and sometimes displays all of the installed subscriptions as additional subscriptions.
This means that UI elements (such as language, Anti-CV etc) are also displaying the wrong state.
See attached screenshot.
Sometimes the following error is displayed in the console:
Type error for parameter tabId (Integer -1 is too small (must be at least 0)) for tabs.get. background.js:146
Expected behaviour
Only actual additional subscriptions to be listed in the additional subscriptions section.
Attachments (1)
Change History (11)
Changed on 08/07/2018 at 11:06:52 AM by Ross
comment:2 Changed on 08/07/2018 at 11:29:53 AM by greiner
- Cc agiammarchi saroyanm wspee added
- Ready set
comment:3 Changed on 08/07/2018 at 11:35:49 AM by greiner
- Owner set to greiner
I was able to reproduce this behavior in Chrome by delaying the loadRecommendations() function by a second, confirming my suspicion of it being a race condition.
comment:4 Changed on 08/07/2018 at 12:47:29 PM by greiner
- Review URL(s) modified (diff)
- Status changed from new to reviewing
comment:5 Changed on 08/07/2018 at 01:55:29 PM by greiner
FYI: Dave and I agreed on IRC to not include this fix in the currently ongoing release since the issue doesn't appear to be a regression.
<greiner> kzar: the question is just whether you want to include the fix in the ongoing release since it's not technically a regression… my plan would be to get it through review and make it available as a dependency update shortly after in case we want to include it
<kzar> greiner: So this behaviour was also present in 3.2?
<greiner> kzar: I'd have to trace it back but it appears to have been present since the initial release of the new options page… I can double-check that if you want
<kzar> greiner: Yes please, if it's not a pain. If you can reproduce for 3.2 then it's no longer a release blocker
<greiner> kzar: unfortunately, I can't reproduce the issue based on the given instructions so all I have to go off of is the race condition I spotted that produces the given results by delaying the loading of subscriptions.xml… for that I can verify that (a) it happens on both Firefox and Chrome and (b) that it also happens with version 3.2
<kzar> greiner: OK, well if you can reproduce that race condition which produces the described symtoms on 3.2 as well I think that's good enough. I don't consider it a release blocker, what do you think?
<greiner> kzar: I'd agree, especially since we barely contributed any UI code to 3.3 due to the rush
comment:6 Changed on 08/23/2018 at 11:48:06 AM by greiner
- Resolution set to fixed
- Status changed from reviewing to closed
comment:7 Changed on 08/28/2018 at 12:31:39 PM by greiner
- Blocking 6892 added
comment:8 Changed on 09/13/2018 at 10:30:29 AM by abpbot
A commit referencing this issue has landed:
Issue 6838 - Fixed: Race condition caused recommended filter lists to be misplaced in UI
comment:9 Changed on 09/18/2018 at 02:11:17 PM by greiner
- Platform changed from Firefox to Unknown / Cross platform
- Summary changed from Sometimes all subscriptions are listed as additional subscriptions in Firefox to Sometimes all subscriptions are listed as additional subscriptions
Marked ticket as being cross-platform.
comment:10 Changed on 10/23/2018 at 07:57:29 AM by Ross
- Tester changed from Unknown to Ross
- Verified working set
Fixed. Could not reproduce misplaced filter lists at all.
ABP 3.3.2.2175
Firefox 62 / 51 / Windows 10
Chrome 69 / 49 / Windows 10
Opera 56 / 36 / Windows 10
On first glance, this sounds like a race condition since we may not have finished loading subscriptions.xml yet at the point when we're being passed the filter list to add.
I suspect the error message to be unrelated though.
Note that I don't see any indication of this being a regression to the previous release in case this makes a difference for the ongoing release.