Marking feeds as read in Feedbro RSS reader extension does not decrease unread number in sidebar
Categories
(WebExtensions :: General, defect, P1)
Tracking
(firefox-esr68 unaffected, firefox77 unaffected, firefox78 unaffected, firefox79 verified)
| Tracking | Status | |
|---|---|---|
| firefox-esr68 | --- | unaffected |
| firefox77 | --- | unaffected |
| firefox78 | --- | unaffected |
| firefox79 | --- | verified |
People
(Reporter: gwarser, Assigned: zombie)
References
(Regression)
Details
(Keywords: regression)
Attachments
(2 files, 1 obsolete file)
- install https://addons.mozilla.org/en-US/firefox/addon/feedbroreader/
- add feed https://www.reddit.com/r/all/.rss
- click on feed in sidebar
- click on "trash" or "O" icon to remove or make as read
- number in sidebar does not decrease
26:50.52 INFO: Downloading build from: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/Sd1X60QqQUKrsf7ZDi-6tA/runs/0/artifacts/public%2Fbuild%2Ftarget.tar.bz2
===== Downloaded 100% =====
27:47.35 INFO: Running autoland build built on 2020-06-01 16:46:03.924000, revision e8d0f18c
27:58.83 INFO: Launching /var/tmp/tmppvwkrdnb/firefox/firefox
27:58.83 INFO: Application command: /var/tmp/tmppvwkrdnb/firefox/firefox --allow-downgrade -profile /var/tmp/tmp9r9mnqgi.mozrunner
27:58.84 INFO: application_buildid: 20200601150729
27:58.84 INFO: application_changeset: e8d0f18c2300a223c31847d27196d1a8ad673515
27:58.84 INFO: application_name: Firefox
27:58.84 INFO: application_repository: https://hg.mozilla.org/integration/autoland
27:58.84 INFO: application_version: 78.0a1
Was this integration build good, bad, or broken? (type 'good', 'bad', 'skip', 'retry', 'back' or 'exit' and press Enter): good
28:14.28 INFO: Narrowed integration regression window from [a540f1bf, ca3057f6] (4 builds) to [e8d0f18c, ca3057f6] (2 builds) (~1 steps left)
28:14.28 INFO: No more integration revisions, bisection finished.
28:14.28 INFO: Last good revision: e8d0f18c2300a223c31847d27196d1a8ad673515
28:14.28 INFO: First bad revision: ca3057f6cdc555f3ddfb1f10afa6805a43253a85
28:14.28 INFO: Pushlog:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=e8d0f18c2300a223c31847d27196d1a8ad673515&tochange=ca3057f6cdc555f3ddfb1f10afa6805a43253a85
Comment 1•5 years ago
|
||
(I didn't confirm, but given the mozregression output, it makes sense to link the two bugs)
Updated•5 years ago
|
| Comment hidden (obsolete) |
| Comment hidden (obsolete) |
| Assignee | ||
Comment 4•5 years ago
|
||
(In reply to Rob Wu [:robwu] from comment #3)
STR:
Unless I'm misunderstanding something, I get the same result on current Beta 78 as described above, so not sure that's the difference.
Comment 5•5 years ago
|
||
Comment on attachment 9153862 [details]
sendResponse-gc.zip
Apparently it's a pre-existing bug, which I discovered by looking at code. I've moved it to bug 1643186.
I guess that we actually need to run the extension from the report and debug it.
Comment 6•5 years ago
|
||
Set release status flags based on info from the regressing bug 1583484
| Assignee | ||
Updated•5 years ago
|
Updated•5 years ago
|
Here's a minimal test case:
- Install Feedbro
- Open Feedbro Reader view
- Open the background console Inspect view
- Give this command in the console:
chrome.tabs.query({title: "Feedbro"}, function(tabs) { chrome.tabs.sendMessage(tabs[0].id, {}); });
-> Error:
Unchecked lastError value: Error: Could not establish connection. Receiving end does not exist.
Note that this is obviously not Feedbro related. The bug can be repeated with any webextension.
Looks like chrome.tabs.sendMessage is broken.
| Assignee | ||
Comment 8•5 years ago
|
||
Thanks for the minimal STR, very helpful!
Here's a minimal test case as a standalone minimal webextension.
- Install the webextension
- Open the background console (Inspect)
- Run command: test();
- Go back to the background console and see the error
| Assignee | ||
Comment 10•5 years ago
|
||
| Assignee | ||
Comment 11•5 years ago
|
||
Comment 13•5 years ago
|
||
Comment 14•5 years ago
|
||
Backed out for perma failures on test_ext_test.html.
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=305345495&repo=autoland&lineNumber=6009
Backout: https://hg.mozilla.org/integration/autoland/rev/7edbb956e164818ee37f09412029db4f6b0d90ab
Comment 15•5 years ago
|
||
text_ext_text.html is failing because it is running the content script logic twice, due to a stray test_sample.html from a previous test.
In logcat (logcat-emulator-5554.log, line 132346) I can see that test_ext_tabs_sendMessage.html ends prematurely after window.open("file_sample.html"). This is because there is another file_sample.html that already triggered the content script of this test: the "Response from iframe" messaging came before "Response from top level", and the only way to observe that in the test is if there was a pre-existing file_sample.html window.
Because the "extension-frame-responded" had been sent before in the test, the end of the test is comparable to window.open("file_sample.html").close() (to be precise: with just one microtask between open and close).
I'm surprised that this somehow extended the lifetime of the window (or was it a previous file_sample.html window?) to the test_test_in_content_script part of the next test. But in any case, this is not an issue with the patch from this bug itself.
I suggest to reland without changes if the test succeeds on try, and otherwise skip it on Android for now.
The failure message is very misleading, and it would have been easier to spot if the test runner on GeckoView actually checks for stray windows after each test (i.e. the "Test left extra windows or tabs:" message). That is part of bug 1565700.
Comment 16•5 years ago
|
||
Comment 17•5 years ago
|
||
| bugherder | ||
| Assignee | ||
Updated•5 years ago
|
| Assignee | ||
Updated•5 years ago
|
Comment 18•5 years ago
|
||
Hello,
Verified the fix using the latest Nightly (79.0a1/20200617215206) under Windows 10 Pro 64-bit and Ubuntu 16.04 LTS. Also reproduced the issue on an older Nightly (79.0a1/20200601214228) for comparison purposes.
Tested with the original STR and also the ones from Comment 7 and on the latest Nightly scrolling through the feed content/marking articles as read/removing articles will properly decrease the number from the add-on icon in the toolbar and in the sidebar. Furthermore, the Error: Unchecked lastError value: Error: Could not establish connection. Receiving end does not exist. will not be displayed in the console.
Description
•