Closed Bug 1838754 Opened 2 years ago Closed 1 year ago

Wrap WDBA functionality into XPCOM object.

Categories

(Toolkit :: Default Browser Agent, task, P3)

Unspecified
Windows
task

Tracking

()

RESOLVED FIXED
119 Branch
Tracking Status
firefox119 --- wontfix
firefox120 --- fixed

People

(Reporter: nrishel, Assigned: nrishel)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [fidedi])

Attachments

(16 files, 2 obsolete files)

48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review

In service of migrating WDBA to a Firefox Background Task we can take the existing WDBA functionality and wrap it in an XPCOM object, and gradually refactor that to better fit Firefox norms.

Priority: -- → P3

The following patch is waiting for review from an inactive reviewer:

ID Title Author Reviewer Status
D174973 Bug 1838754 - Part 2: Migrate WDBA command line handling out of XPCOM into background task. r=nalexander nrishel nalexander: Back Aug 21, 2023

:nrishel, could you please find another reviewer?

For more information, please visit BugBot documentation.

Flags: needinfo?(nrishel)
Attachment #9350739 - Attachment is obsolete: true
Attachment #9350740 - Attachment is obsolete: true

This is necessary as notification callbacks can not occur on an STA thread when the event loop is not running. We currently block while waiting for notification callbacks, therefore the event loop can not run.

Pushed by nrishel@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5a50ccbb53b0 Pre 1: Remove remote kill switch from WDBA. r=nalexander https://hg.mozilla.org/integration/autoland/rev/af624d29c748 Pre 2: Rename Default Agent's main.cpp to DefaultAgent.cpp. r=nalexander https://hg.mozilla.org/integration/autoland/rev/c4064dbb85a6 Pre 3: Normalize moz.build and components.conf build exclusions related to Windows Toast on excluding gcc builds. r=mossop https://hg.mozilla.org/integration/autoland/rev/626918ba3444 Part 1: Move WDBA into a background task. r=nalexander,mossop https://hg.mozilla.org/integration/autoland/rev/85eb99b90c26 Part 2: Migrate WDBA command line handling out of XPCOM into background task. r=nalexander https://hg.mozilla.org/integration/autoland/rev/19a063fe4fc3 Part 3: Handle WDBA uninstall task unscheduling in standalone proxy executable so that it's executed with the same permissions as the uninstaller. r=nalexander https://hg.mozilla.org/integration/autoland/rev/744552ffb916 Part 4: Ensure default agent notifications run on an MTA thread. r=nalexander https://hg.mozilla.org/integration/autoland/rev/b07c43c2d0e3 Post: Update documentation for Background Task and Default Browser Agent to reflect the latter being rewritten as the former. r=mossop

Backed out for causing multiple build bustages.
So far, this has only affected windows.

Flags: needinfo?(nrishel)
Flags: needinfo?(nrishel)
Flags: needinfo?(nrishel)
Pushed by nrishel@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/868fdde83bdc Pre 1: Remove remote kill switch from WDBA. r=nalexander https://hg.mozilla.org/integration/autoland/rev/617f15d7dff8 Pre 2: Rename Default Agent's main.cpp to DefaultAgent.cpp. r=nalexander https://hg.mozilla.org/integration/autoland/rev/ff651e1a09c7 Pre 3: Normalize moz.build and components.conf build exclusions related to Windows Toast on excluding gcc builds. r=mossop https://hg.mozilla.org/integration/autoland/rev/fb4dfb4d76c1 Part 1: Move WDBA into a background task. r=nalexander,mossop https://hg.mozilla.org/integration/autoland/rev/27b6015a6b28 Part 2: Migrate WDBA command line handling out of XPCOM into background task. r=nalexander https://hg.mozilla.org/integration/autoland/rev/ef4f82aa3980 Part 3: Handle WDBA uninstall task unscheduling in standalone proxy executable so that it's executed with the same permissions as the uninstaller. r=nalexander https://hg.mozilla.org/integration/autoland/rev/1da5e2dc15f9 Part 4: Ensure default agent notifications run on an MTA thread. r=nalexander https://hg.mozilla.org/integration/autoland/rev/33dc6c6f62d7 Post: Update documentation for Background Task and Default Browser Agent to reflect the latter being rewritten as the former. r=mossop
Regressions: 1851714
Regressions: 1851857
Flags: needinfo?(nrishel)
Regressions: 1851930
Regressions: 1851937
Regressions: 1852500

Backed out due to changes breaking both Default Agent telemetry and launching Firefox in response to interaction with the Default Agent notifications.

Depends on D190874

Backed out due to changes breaking both Default Agent telemetry and launching Firefox in response to interaction with the Default Agent notifications.

Depends on D190875

Backed out due to changes breaking both Default Agent telemetry and launching Firefox in response to interaction with the Default Agent notifications.

Depends on D190876

Backed out due to changes breaking both Default Agent telemetry and launching Firefox in response to interaction with the Default Agent notifications.

Depends on D190877

Backed out due to changes breaking both Default Agent telemetry and launching Firefox in response to interaction with the Default Agent notifications.

Depends on D190878

Backed out due to changes breaking both Default Agent telemetry and launching Firefox in response to interaction with the Default Agent notifications.

Depends on D190879

Backed out due to changes breaking both Default Agent telemetry and launching Firefox in response to interaction with the Default Agent notifications.

Depends on D190880

Backed out due to changes breaking both Default Agent telemetry and launching Firefox in response to interaction with the Default Agent notifications.

Depends on D190881

Attachment #9358195 - Attachment description: Backed out changeset 33dc6c6f62d7 (Bug 1838754) → WIP: Backed out changeset 33dc6c6f62d7 (Bug 1838754)
Attachment #9358196 - Attachment description: Backed out changeset 1da5e2dc15f9 (Bug 1838754) → WIP: Backed out changeset 1da5e2dc15f9 (Bug 1838754)
Attachment #9358197 - Attachment description: Backed out changeset ef4f82aa3980 (Bug 1838754) → WIP: Backed out changeset ef4f82aa3980 (Bug 1838754)
Attachment #9358198 - Attachment description: Backed out changeset 27b6015a6b28 (Bug 1838754) → WIP: Backed out changeset 27b6015a6b28 (Bug 1838754)
Attachment #9358199 - Attachment description: Backed out changeset fb4dfb4d76c1 (Bug 1838754) → WIP: Backed out changeset fb4dfb4d76c1 (Bug 1838754)
Attachment #9358200 - Attachment description: Backed out changeset ff651e1a09c7 (Bug 1838754) → WIP: Backed out changeset ff651e1a09c7 (Bug 1838754)
Attachment #9358201 - Attachment description: Backed out changeset 617f15d7dff8 (Bug 1838754) → WIP: Backed out changeset 617f15d7dff8 (Bug 1838754)
Attachment #9358202 - Attachment description: Backed out changeset 868fdde83bdc (Bug 1838754) → WIP: Backed out changeset 868fdde83bdc (Bug 1838754)
Attachment #9358195 - Attachment description: WIP: Backed out changeset 33dc6c6f62d7 (Bug 1838754) → Backed out changeset 33dc6c6f62d7 (Bug 1838754)
Attachment #9358196 - Attachment description: WIP: Backed out changeset 1da5e2dc15f9 (Bug 1838754) → Backed out changeset 1da5e2dc15f9 (Bug 1838754)
Attachment #9358197 - Attachment description: WIP: Backed out changeset ef4f82aa3980 (Bug 1838754) → Backed out changeset ef4f82aa3980 (Bug 1838754)
Attachment #9358198 - Attachment description: WIP: Backed out changeset 27b6015a6b28 (Bug 1838754) → Backed out changeset 27b6015a6b28 (Bug 1838754)
Attachment #9358199 - Attachment description: WIP: Backed out changeset fb4dfb4d76c1 (Bug 1838754) → Backed out changeset fb4dfb4d76c1 (Bug 1838754)
Attachment #9358200 - Attachment description: WIP: Backed out changeset ff651e1a09c7 (Bug 1838754) → Backed out changeset ff651e1a09c7 (Bug 1838754)
Attachment #9358201 - Attachment description: WIP: Backed out changeset 617f15d7dff8 (Bug 1838754) → Backed out changeset 617f15d7dff8 (Bug 1838754)
Attachment #9358202 - Attachment description: WIP: Backed out changeset 868fdde83bdc (Bug 1838754) → Backed out changeset 868fdde83bdc (Bug 1838754)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Regressions: 1864603

Backout only occurred in Beta, this issue is resolved.

Status: REOPENED → RESOLVED
Closed: 1 years ago1 year ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: