Skip to content

Bug 2040381 - Show error state in Access Connector urlbar button and panel when proxy is unavailable#1048

Open
jporter-dev wants to merge 1 commit into
mozilla:enterprise-mainfrom
jporter-dev:enterprise-bug2040381-access-connector-error-message
Open

Bug 2040381 - Show error state in Access Connector urlbar button and panel when proxy is unavailable#1048
jporter-dev wants to merge 1 commit into
mozilla:enterprise-mainfrom
jporter-dev:enterprise-bug2040381-access-connector-error-message

Conversation

@jporter-dev

@jporter-dev jporter-dev commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Description

Bugzilla: Bug-2040381

This is part 2 of 3 for this bug. When the Access Connector proxy is unavailable and Firefox shows the accessConnectorFailure error page (implemented in #1033), the urlbar button now reflects the error state. The icon swaps to an "unavailable" variant displayed in a critical color, the tooltip and label update, and the Access Connector panel displays dedicated error content.


Dependencies / Related Issues


Screenshots

Screenshot 2026-06-16 at 1 04 48 PM

Access Connector in active state

access-connector-unavailable

Access Connector in error state


Testing

  • Added tests
  • Manual testing performed

Steps to verify changes:

  1. Enable the AccessConnector policy with a proxy server that is unreachable (ex: change Port by 1)
  2. Navigate to a site covered by the inclusion patterns
  3. Observe the Access Connector urlbar button and panel in an error state

Expected result:

The Access Connector error button renders with an error icon, and the panel title and message show error text.

@jporter-dev jporter-dev self-assigned this Jun 16, 2026
@jporter-dev jporter-dev added enhancement New feature or request branch:main PR that should be merged on enterprise-main branch labels Jun 16, 2026
@jporter-dev jporter-dev force-pushed the enterprise-bug2040381-access-connector-error-message branch 4 times, most recently from ed213fb to bd9814a Compare June 17, 2026 13:39
@jporter-dev jporter-dev marked this pull request as ready for review June 17, 2026 17:07
@jporter-dev jporter-dev requested review from 1rneh and lissyx June 17, 2026 19:47
@jporter-dev

jporter-dev commented Jun 17, 2026

Copy link
Copy Markdown
Contributor Author

This is blocked by both the UX PR and the upstream IPPProtection.getPrincipalRule patch, but it could be reviewed now in preparation of those both landing. This PR is based on #683 and I've added a temporary commit with the relevant changes from the upstream patch to get things working.

Looking for a review despite this being blocked just to get it to good state ahead of time 😄

Upstream blocking PRs have all landed!

@jporter-dev jporter-dev force-pushed the enterprise-bug2040381-access-connector-error-message branch 3 times, most recently from f2af383 to 3ebdae3 Compare June 18, 2026 14:07

@1rneh 1rneh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I started reviewing the Bug 2040381 - * commits only but noticed that they also include some changes from Bug-2026242 (or elsewhere) that by now have been merged to enterprise-main.

Could you rebase the PR to simplify the review?

Comment thread browser/components/enterprise/content/enterprise-urlbar-actions.css Outdated
Comment thread browser/components/enterprise/content/enterprise-urlbar-actions.css Outdated
const PANEL_HEADER_ID = "access-connector-panel-header";
const PANEL_MESSAGE_ID = "access-connector-panel-message";

const PROXY_ERROR_CODES = new Set([

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like it risks getting stale over future

Comment thread browser/components/ipprotection/IPProtection.sys.mjs
Comment thread browser/components/ipprotection/IPProtectionHelpers.sys.mjs

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure this is ok by l10n people?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what you're referencing - this adds new strings for the error state and uses the same conventions as the "active" state in the file. Maybe this had something else in it before I fixed the rebase?

@jporter-dev jporter-dev force-pushed the enterprise-bug2040381-access-connector-error-message branch from 3ebdae3 to 734ba1a Compare July 1, 2026 15:31

@1rneh 1rneh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reviewed the commits referencing "Bug 2040381":

Can we split this into two PRs - one for the UI and one for the telemetry? If this were to land upstream, the telemetry would need its own bug, since a data steward's review happens on that bug. Once it exists, you'd reference it under bugs and link the data-review response comment under data_reviews in the event config. We'll leave data_reviews as TBD for now since we don't perform data reviews at the moment, but it would help if bugs already listed a dedicated bug.

Bonus: I have only two minor comments on the UI changes, so this can already land.

Comment thread browser/components/enterprisepolicies/metrics.yaml Outdated
Comment thread browser/components/enterprise/AccessConnectorButton.sys.mjs Outdated
Comment thread browser/components/enterprise/AccessConnectorButton.sys.mjs Outdated
Comment thread browser/components/enterprise/content/enterprise-urlbar-actions.css
@jporter-dev jporter-dev force-pushed the enterprise-bug2040381-access-connector-error-message branch 4 times, most recently from 70c9f9b to 23dad37 Compare July 6, 2026 20:15
@jporter-dev jporter-dev force-pushed the enterprise-bug2040381-access-connector-error-message branch 2 times, most recently from 4427df4 to 1406bc8 Compare July 7, 2026 12:28
@jporter-dev jporter-dev force-pushed the enterprise-bug2040381-access-connector-error-message branch from 1406bc8 to 2930851 Compare July 7, 2026 18:23
@jporter-dev jporter-dev force-pushed the enterprise-bug2040381-access-connector-error-message branch from 2930851 to 2b8e1dd Compare July 7, 2026 18:50
@jporter-dev

Copy link
Copy Markdown
Contributor Author

Can we split this into two PRs - one for the UI and one for the telemetry? If this were to land upstream, the telemetry would need its own bug, since a data steward's review happens on that bug. Once it exists, you'd reference it under bugs and link the data-review response comment under data_reviews in the event config. We'll leave data_reviews as TBD for now since we don't perform data reviews at the moment, but it would help if bugs already listed a dedicated bug.

Thank you for pointing this out, splitting telemetry off makes sense with this context. I've removed the telemetry changes from this PR and created #1121 for adding it.

@jporter-dev jporter-dev requested a review from 1rneh July 7, 2026 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

branch:main PR that should be merged on enterprise-main branch enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants