Closed Bug 1863022 Opened 1 year ago Closed 1 year ago

Move Protection Panel Message to calling code

Categories

(Firefox :: Messaging System, enhancement, P1)

enhancement
Points:
5

Tracking

()

RESOLVED FIXED
123 Branch
Iteration:
123.2 - Jan 1 - Jan 12
Tracking Status
firefox123 --- fixed

People

(Reporter: pdahiya, Assigned: emcminn)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [omc])

Attachments

(1 file)

Scope of this bug is move PROTECTION_PANEL message to directly where its inserted inside
browser-siteProtections.js

See https://bugzilla.mozilla.org/show_bug.cgi?id=1724300#c9

This will unblock removing WhatsNewPanel code base and devtool whats new panel test messages from messaging system that's no longer supported

https://bugzilla.mozilla.org/show_bug.cgi?id=1724300

https://searchfox.org/mozilla-central/source/browser/components/newtab/lib/OnboardingMessageProvider.jsm#66

Assignee: nobody → emcminn
See Also: → 1863230
Iteration: --- → 121.2 - Nov 6 - Nov 17
Priority: -- → P1
See Also: → 1724300
Whiteboard: [omc]
Attachment #9362390 - Attachment description: WIP: Bug 1863022 - Duplicate ToolbarPanelHub functions in browser-siteProtections & render message → WIP: Bug 1863022 - Render message from browser-siteProtections.js and replace messaging system telemetry

Romain, do you know who will own the Protections Panel message once it's been moved into browser-siteProtections.js? The folks I know of who worked on it originally aren't around anymore. I'm also curious who I should check in with about the telemetry - in the attached patch I've created a recordEvent ping that kind of duplicates the old Messaging System telemetry, but it required adding some keys to the existing schema and I want to make sure that's OK!

Flags: needinfo?(rtestard)

Hi Emily, I'm not sure but NIing Tim and Paul who may know.

Flags: needinfo?(tihuang)
Flags: needinfo?(rtestard)
Flags: needinfo?(pbz)

Paul is currently the owner of the protection panel.

Flags: needinfo?(tihuang)
Flags: needinfo?(pbz)
Attachment #9362390 - Attachment description: WIP: Bug 1863022 - Render message from browser-siteProtections.js and replace messaging system telemetry → Bug 1863022 - Render message from browser-siteProtections.js and replace messaging system telemetry
Iteration: 121.2 - Nov 6 - Nov 17 → 122.1 - Nov 20 - Dec 1
Points: --- → 5
Iteration: 122.1 - Nov 20 - Dec 1 → 122.2 - Dec 4 - Dec 15
Attachment #9362390 - Attachment description: Bug 1863022 - Render message from browser-siteProtections.js and replace messaging system telemetry → Bug 1863022 - Remove references to ToolbarPanelHub and related files & functions
Attachment #9362390 - Attachment description: Bug 1863022 - Remove references to ToolbarPanelHub and related files & functions → Bug 1863022 - Render message from browser-siteProtections.js and replace messaging system telemetry
Iteration: 122.2 - Dec 4 - Dec 15 → 123.1 - Dec 18 - Dec 29
Attachment #9362390 - Attachment description: Bug 1863022 - Render message from browser-siteProtections.js and replace messaging system telemetry → Bug 1863022 - Render message from browser-siteProtections.js, replace messaging system telemetry, and migrate strings
Blocks: 1871067
Iteration: 123.1 - Dec 18 - Dec 29 → 123.2 - Jan 1 - Jan 12
Pushed by emcminn@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f737edc6cd59 Render message from browser-siteProtections.js, replace messaging system telemetry, and migrate strings r=pdahiya,omc-reviewers,pbz,fluent-reviewers,flod

Backed out for causing mochitests failures in browser_protectionsUI.js.

Flags: needinfo?(emcminn)
Blocks: 1874024

I've opted to remove the check for telemetry from the new test added to browser_protectionsUI.js; on top of it being kinda flaky itself, it also had a tendency to cause other tests looking at the telemetry to throw.

I’m also going to revert the use of BrowserTestUtils.waitForMutationCondition back to TestUtils.waitForCondition - some of the failures were caused by that promise hanging and never returning, plus all the other tests in the file use TestUtils.waitForCondition.

I've filed bug 1874024 to cover these, and will try to land the cleaned up patch this afternoon.

Pushed by emcminn@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2bc745cb5371 Render message from browser-siteProtections.js, replace messaging system telemetry, and migrate strings r=pdahiya,omc-reviewers,pbz,fluent-reviewers,flod

If you prefer you can also move your test to a separate file. Working around any timeout or intermittent issues with the existing test. Currently looking to reduce failures of this test in another bug.

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 123 Branch
Flags: needinfo?(emcminn)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: