Skip to content

Conversation

@lissyx
Copy link
Contributor

@lissyx lissyx commented Dec 17, 2025

UX is open to discussion.

@lissyx lissyx force-pushed the enterprise-handle_crashes branch from 6f4ba5c to 343de12 Compare December 18, 2025 08:19
);
if (this.abnormalExitCounter < this.abnormalExitLimit) {
// Cookies would be out of private browsing anyway at that point.
// TODO: Assume they have not expired and just restart things or
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see why we care about them being valid at this particular point compared to anywhere else.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was thinking of the case where we would handle a crash after long running period, but maybe we should just try to refresh token there and handle it this way ?

Services.cpmm.sendAsyncMessage(
"FeltParent:FirefoxAbnormalExit",
{}
this.abnormalExitCounter += 1;
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't ever seem to reset this. I think it makes sense to consider the last crash timing. If we crash say twice in 2 weeks (and Felt isn't restarted), it's probably not worth escalating. However if we crash twice immediately in succession, that's another matter.

Copy link
Contributor Author

@lissyx lissyx Dec 23, 2025

Choose a reason for hiding this comment

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

Good point, I'll change it

this._win = Services.ww.openWindow(
null,
"chrome://felt/content/felt.xhtml",
`chrome://felt/content/felt.xhtml${queryString}`,
Copy link
Contributor

Choose a reason for hiding this comment

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

Needs encodeURIComponent

});

if (window.location.search) {
const params = Array.from(new URL(window.location).searchParams);
Copy link
Contributor

Choose a reason for hiding this comment

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

https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/get

const errorClass = new URLSearchParams(window.location.search).get("error");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants