Closed Bug 1642967 Opened 5 years ago Closed 5 years ago

Marking feeds as read in Feedbro RSS reader extension does not decrease unread number in sidebar

Categories

(WebExtensions :: General, defect, P1)

79 Branch
defect

Tracking

(firefox-esr68 unaffected, firefox77 unaffected, firefox78 unaffected, firefox79 verified)

VERIFIED FIXED
mozilla79
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)

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

(I didn't confirm, but given the mozregression output, it makes sense to link the two bugs)

Keywords: regression
Regressed by: 1583484
Has Regression Range: --- → yes

(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.

Flags: needinfo?(rob)

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.

Attachment #9153862 - Attachment is obsolete: true
Flags: needinfo?(rob)

Set release status flags based on info from the regressing bug 1583484

Severity: -- → S2
Priority: -- → P1
Assignee: nobody → rob

Here's a minimal test case:

  1. Install Feedbro
  2. Open Feedbro Reader view
  3. Open the background console Inspect view
  4. 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.

Thanks for the minimal STR, very helpful!

Assignee: rob → tomica
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

Here's a minimal test case as a standalone minimal webextension.

  1. Install the webextension
  2. Open the background console (Inspect)
  3. Run command: test();
  4. Go back to the background console and see the error
Pushed by tjovanovic@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9fb8cf0f6d60 tabs.sendMessage can also target extension pages r=robwu

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.

Pushed by tjovanovic@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c64311d6fbb9 tabs.sendMessage can also target extension pages r=robwu
See Also: → 1644039
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla79
Flags: needinfo?(tomica)
Flags: qe-verify+

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.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: