Closed Bug 1643649 Opened 4 years ago Closed 4 years ago

Yomichan extension broken on Nighly

Categories

(Firefox :: Extension Compatibility, defect)

79 Branch
x86_64
All
defect

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox-esr68 --- unaffected
firefox76 --- unaffected
firefox77 --- unaffected
firefox78 --- unaffected
firefox79 --- fixed

People

(Reporter: bugzilla, Unassigned)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

I am not certain which API(s) this concerns, but the problem exists on Nightly and not on Release according to the extension developers.

To reproduce:

There are several issues:

  • The options view is not populated until the extension button is clicked again
  • Attempting to import a dictionary will fail
  • If dictionaries were installed before, enumerating them will fail

See also these Github issues:

Attached an example extension demonstrating the issue in Firefox Nightly 79.0a1 (~2020-06-05) where chrome.tabs.sendMessage doesn't work correctly. Using chrome.runtime.sendMessage instead seems to work.

Expected behaviour:

Upon opening settings.html:

// settings.html prints:
onMessage { message: { message: "test2" }, sender: { ... } }
response { response: true, error: null }

// bg.html prints:
onMessage { message: { message: "test" }, sender: { ... } }
response { response: true, error: null }

Observed behaviour:

Upon opening settings.html:

// settings.html prints:
response { response: true, error: null }

// bg.html prints:
onMessage { message: { message: "test" }, sender: { ... } }
response { response: undefined, error: { message: "Could not establish connection. Receiving end does not exist." } }

using attached extension "Example WebExtension exhibiting the issue"
Steps to reproduce:

  1. Open Browser Console and enable "Show Content Messages"
  2. Install the extension
  3. Open about:addons and Click [...] of the extensions and choose "Options"

Actual results:
onMessage
Object { message: {…}, sender: {…} }
bg.js:4:11
response
Object { response: undefined, error: Error }
bg.js:9:13
response
Object { response: true, error: null }
settings.js:9:13

Expected results:
onMessage
Object { message: {…}, sender: {…} }
bg.js:4:11
onMessage
Object { message: {…}, sender: {…} }
settings.js:2:11
response
Object { response: true, error: null }
settings.js:9:13
response
Object { response: true, error: null }
bg.js:9:13

Regression window:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=e8d0f18c2300a223c31847d27196d1a8ad673515&tochange=ca3057f6cdc555f3ddfb1f10afa6805a43253a85

Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
Regressed by: 1583484
Has Regression Range: --- → yes

Thank you for the detailed report and minimal STR.

Marking this as duplicate of bug 1642967, as I already have a patch up there, and have confirmed Yomichan extension works with that applied locally.

This should be fixed in the next Nightly, but if you see further problems, please open a new bug.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---

bug 1642967 did not completely resolve this. Enumerating dictionaries still failed after the fix for bug 1642967 was merged. However, something else seems to have solved the enumeration problem in the meantime, so I'm marking this as resolved.

Status: REOPENED → RESOLVED
Closed: 4 years ago4 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: