Closed Bug 1878281 Opened 1 year ago Closed 1 year ago

China repack (CN) new tab extension fails with "Oops, something went wrong loading this content."

Categories

(Firefox :: New Tab Page, defect)

Firefox 122
defect

Tracking

()

VERIFIED FIXED
124 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox122 --- wontfix
firefox123 --- verified
firefox124 --- verified

People

(Reporter: ke5trel, Assigned: mconley)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(3 files, 2 obsolete files)

STR:

  1. Install the Firefox China repack.
  2. Alternatively install the extension china-newtab@mozillaonline.com.xpi in regular Nightly.
  3. Create a new tab.

"Oops, something went wrong loading this content."

DOMException: An exception was thrown  instrument.js:109:32
  sendMessage asrouter-utils.js:21
  requestMessage asrouter-content.jsx:192
  componentWillMount asrouter-content.jsx:212

Regression window:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=12253bf8fb887ca254a0a575fb7dbb1dfd6c404b&tochange=09d99f03f93eb8fb9c691180dd0ee16656ce6481

Regressed by Bug 1715158.

:mconley, since you are the author of the regressor, bug 1715158, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Flags: needinfo?(mconley)

Looking.

Assignee: nobody → mconley
Flags: needinfo?(mconley)

Hi! Do you have a moment to look at a very small kludge fix in ASRouterChild? Apparently, there are still some privileged addons out there that send the NEWTAB_MESSAGE_REQUEST message. :/

Flags: needinfo?(pdahiya)

(In reply to Mike Conley (:mconley) (:⚙️) from comment #4)

Hi! Do you have a moment to look at a very small kludge fix in ASRouterChild? Apparently, there are still some privileged addons out there that send the NEWTAB_MESSAGE_REQUEST message. :/

Thanks @mconley for fix, just accepted. @mkaply do you know what CN repack used this call for. Couldn't find it in https://github.com/mozilla-extensions/china-newtab?

Flags: needinfo?(pdahiya) → needinfo?(mozilla)

There's a script that is loaded remotely that uses it.

Flags: needinfo?(mozilla)
Pushed by mconley@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/312701582d83 Stub out NEWTAB_MESSAGE_REQUEST handling for legacy privileged addons. r=mkaply,omc-reviewers,pdahiya
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 124 Branch
Attachment #9379488 - Flags: approval-mozilla-beta?

Uplift Approval Request

  • User impact if declined: New Tab extension doesn't work
  • Is Android affected?: no
  • Steps to reproduce for manual QE testing: In bug
  • String changes made/needed: None
  • Code covered by automated testing: yes
  • Fix verified in Nightly: yes
  • Explanation of risk level: Automated test and just makes an old message do nothing
  • Risk associated with taking this patch: Very low
  • Needs manual QE test: no

Comment on attachment 9379488 [details]
Bug 1878281 - Stub out NEWTAB_MESSAGE_REQUEST handling for legacy privileged addons. r?mkaply!

We are in RC week now, uplift requests should target mozilla-release. Rejecting the uplift request as the patch needs to be rebased to apply to the branch.
We could target the planned desktop dot release mid cycle to uplift an updated patch. Thanks

Attachment #9379488 - Flags: approval-mozilla-beta? → approval-mozilla-release-
Attachment #9379488 - Attachment is obsolete: true
Attachment #9379488 - Flags: approval-mozilla-beta-
Flags: qe-verify+
Attachment #9381780 - Flags: approval-mozilla-release?
Attachment #9381780 - Attachment description: Bug 1878281 - Stub out NEWTAB_MESSAGE_REQUEST handling for legacy privileged addons. r?mkaply! → Bug 1878281 - Stub out NEWTAB_MESSAGE_REQUEST handling for legacy privileged addons. r=mconley
Attachment #9381786 - Flags: approval-mozilla-release?

Uplift Approval Request

  • Risk associated with taking this patch: Very low.
  • Explanation of risk level: Doesn't change behavior, just stubs out an old message. Has test.
  • User impact if declined: China build broken
  • String changes made/needed: None
  • Needs manual QE test: no
  • Code covered by automated testing: yes
  • Is Android affected?: no
  • Fix verified in Nightly: yes
  • Steps to reproduce for manual QE testing: In bug
Attachment #9381780 - Attachment is obsolete: true
Attachment #9381780 - Flags: approval-mozilla-release?
QA Whiteboard: [qa-triaged]
Attachment #9381786 - Flags: approval-mozilla-release? → approval-mozilla-release+

Hello!
Reproduced the issue on Windows 10x64 with Firefox 123.0 (20240213221259) this link (from my understanding the china-newtab@mozillaonline.com.xpi is included in this repack. I have also verified it's presence inside the profile > extension folder). Opening a new tab will show the error mentioned in comment 0 and the error in the web console.

The issue is verified fixed on Windows 10x64 with Firefox 123.0.1 (20240304104836) zh-CN and en-US builds from this link and Firefox 124.0b7 (20240304091753) zh-CN and en-US builds from this link. When opening a new tab, the errors referenced in comment 0 will no longer be displayed, and the new tab will appear as it did in Firefox 121 (before bug 1715158).

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

Attachment

General

Creator:
Created:
Updated:
Size: