100 Commits
Author SHA1 Message Date
Penar MusarajandGitHub 162ea0b18a DEV: Improve checking for selected text (#30967)
After you've selected and deselected text, `selection.rangeCount` will
return `true` on future events. Checking for `selection.toString` is
more robust.

Followup to 890f96d68c
2025-02-07 12:13:39 -05:00
Penar MusarajandGitHub 1b6d057bc1 UX: Fix HTML showing in delete user button (#31201)
Also rewords it to clarify the action. And ensures both `delete` buttons
get the `btn-danger` class.
2025-02-05 16:28:10 -05:00
Penar MusarajandRoman Rizzi b6eb6a07f9 SECURITY: Disable access to "activate-account" route for existing users 2025-02-04 13:32:38 -03:00
Penar MusarajandGitHub d686053641 UX: remove animation for back button on mobile (#31048)
We're seeing drops in CLS performance and the animation of this element
may likely be the culprit. We can try removing and seeing if this is
indeed the issue.
2025-01-30 09:26:47 -05:00
Penar MusarajandGitHub e942ae6ce1 DEV: Add proper error response when searching with an invalid page param (#31026)
Previously, for a search query with `page=11` or higher, we were quietly
returning the page 10 results. The frontend app isn't affected because
it sets its own limit to 10 pages, but still, this response from the
search endpoint does not make sense.

This change switches to returning a 400 error when the `page` parameter
is above the allowed limit (a max of 10).
2025-01-28 15:12:52 -05:00
Penar MusarajandGitHub 797b2ee936 A11Y: Show focus when tabbing to user menu items (bottom bar) (#31015) 2025-01-27 15:38:54 -05:00
Penar MusarajandGitHub 66664b70b8 A11Y: Allow tabbing to members link in chat channel card (#31016) 2025-01-27 14:42:23 -05:00
Penar MusarajandGitHub 890f96d68c FIX: Allow touchmove in composer when there is a selection (#30957)
We stop propagating the `touchmove` event in the composer to ensure that
the page doesn't scroll inadvertently. We should only do this if no text
is selected, otherwise we block making changes to the text selection on
the `textarea` element.
2025-01-23 12:29:34 -05:00
Penar MusarajandGitHub 3a0710cf38 FIX: Keep active state in sidebar button for category/tag hot routes (#30954)
Fixes issue reported in
https://meta.discourse.org/t/sidebar-links-loose-active-state-on-the-hot-list-filter/348468
2025-01-23 11:36:48 -05:00
Penar MusarajandGitHub c9e99ebd38 UX: Fix minimized composer position on iOS PWA and app (#30926)
See
https://meta.discourse.org/t/minimized-composer-reply-control-issues/348337
2025-01-22 13:38:34 -05:00
Penar MusarajandGitHub 6ec6615a29 UX: Fix scrolling of form template composer on mobile (#30883)
This was a regression in recent composer refactors, this change ensures the `with-form-template` container is scrollable.
2025-01-20 17:32:32 -08:00
Penar MusarajandGitHub be741301d1 UX: Remove table editor transition effect (#30878)
This fixes a bit of jitteriness on mobile, noticeable mostly when going
from the topic list to a post that has a table.
2025-01-20 17:08:53 -05:00
Penar MusarajandGitHub a0237a5944 DEV: Remove isTablet capability (#30799)
Reverts b286c20. 

This is an imperfect detection of tablets and more generally, we want to
move away from detecting specific devices. THere's a broader effort to
remove mobile/desktop detection and rely instead on viewport-width-based
patterns and feature detection (touch, hover, etc.). See
https://github.com/discourse/discourse/pull/30642

To reach the same results in CSS/jS, we can use the `touch` and `hover`
media queries.

In CSS, something like: 

```
@media (hover: none) {
  // hover non excludes touchscreen desktops
  .discourse-touch {
    // we detect touch capability on the JS side, a bit of a belts and suspenders approach
  }
}
```

And in JS: 

```
this.capabilities.touch` plus `window.matchMedia("(hover: none)").matches
```
2025-01-16 10:19:01 -05:00
Penar MusarajandGitHub d01bfa6e47 DEV: Target tablets differently for composer position tweaks (#30798) 2025-01-15 14:09:51 -05:00
Penar MusarajandGitHub b638c48263 UX: Adjust styling of Back button in topic progress (#30769)
Before: 
<img width="300" alt="image"
src="https://github.com/user-attachments/assets/66c07c49-9603-4eb4-84d5-db3821a7af1a"
/>

After: 
<img width="300" alt="image"
src="https://github.com/user-attachments/assets/ba90d74a-4f63-41ae-9dd7-f5999a2d21ef"
/>
2025-01-15 17:41:00 +11:00
Penar MusarajandGitHub eec355b78b FIX: Safari on iOS crashes when pinch-zooming (#30779)
Not sure why, but it looks like this `z-index: -1` on the composer
causes iOS to crash super quickly when pinch zooming . This change was
introduced in bafc6adcb3 and is not
strictly necessary, let's try removing.
2025-01-14 23:56:20 +01:00
Penar MusarajandGitHub 7fc5242103 DEV: Improve composer positioning on tablets (#30745)
Followup to bafc6ad.

See report https://meta.discourse.org/t/-/346876
2025-01-13 15:04:06 -05:00
bafc6adcb3 DEV: Consolidate mobile positioning strategies on mobile and iPad (#30241)
This removes some longstanding Safari iOS positioning hacks and refactors the mobile positioning strategy across Safari, Chrome and Firefox. See PR descriptions for more details. 

Co-authored-by: Joffrey JAFFEUX <[email protected]>
2025-01-10 11:00:15 -05:00
Penar MusarajandGitHub 8b09db05b3 DEV: User page layout backwards compatibility (#30515)
Followup to #30499, fixes CSS for older browsers.
2024-12-31 11:43:49 -05:00
Penar MusarajandGitHub d0db8e5a19 A11Y: Fix screen reader access to user directory (#30499) 2024-12-31 08:10:00 +11:00
Penar MusarajandGitHub 148dcf3241 DEV: Fix flakey spec (#30382) 2024-12-19 14:19:34 -05:00
Penar MusarajandGitHub 77d3166c17 DEV: Do not delay DButton actions on iOS (#30322)
Followup to #28019, on iOS this delay means that we don't properly set
focus on the composer.
2024-12-17 11:57:15 -05:00
Penar MusarajandGitHub 13d7b40f18 FIX: Composer position on DiscourseHub iOS (#30204)
Ensures composer does not go out of view after adding an upload.
2024-12-10 09:42:20 -05:00
Penar MusarajandGitHub e97ae711a0 FIX: Bug with edit reason on iOS (#29987) 2024-11-28 13:47:39 -05:00
Penar MusarajandGitHub 185e385b2a FIX: Correctly toggle bulk select checkboxes for regular users (#29984)
Non-admin/moderator users can bulk select items in new/unread, but not in
latest/top/hot. This commit ensures that when the user can no longer
bulk select items in a list, the bulk select checkboxes in the topic list
rows are hidden.
2024-11-28 09:39:17 -05:00
Penar MusarajandGitHub a38f293706 FIX: Missing translations for empty config area (#29966) 2024-11-27 15:49:58 -05:00
Penar MusarajandGitHub 33eba63355 FIX: Do not ignore redirects containing "/login" in the path (#29960) 2024-11-27 11:22:45 -05:00
Penar MusarajandGitHub c44f967abf DEV: Remove experimental_topics_filter setting (#29902) 2024-11-25 10:49:40 -05:00
Penar MusarajandGitHub e5dd74c83f DEV: Enable experimental_topics_filter by default (#29897) 2024-11-22 12:40:17 -05:00
Penar MusarajandGitHub 7ca4b98b82 Revert "UX: Codeblocks edits (#29893)" (#29896)
This reverts commit 47ac882bd6.
2024-11-22 12:09:40 -05:00
Penar MusarajandGitHub 77a3cf916d FIX: Simplify max-height calculation for chat composer (#29822)
In some rare cases, this was causing the input to be invisible. The
change here means the input will have a smaller max height, but since
here we are limiting this to 25% of the viewport height, it should be
more than fine.

It's also not necessary to include the `chat-header-offset`, it ends up
being only a few pixels' difference (since, again, it is divided by 4).
2024-11-19 12:18:05 -05:00
Penar MusarajandGitHub 69e5afe50f A11Y: Allow dismissing the discard drafts modal via keyboard (#29802) 2024-11-18 15:43:36 -05:00
bc7666358d FIX: Dismiss unread posts in subcategories (#29671)
When a parent category shows topics from subcategories, dismissing
should dismiss posts in both parent and subcategories.

Co-authored-by: Alan Guo Xiang Tan <[email protected]>
2024-11-14 10:06:12 -05:00
Penar MusarajandGitHub c7b2bcd23c UX: Fix Android Firefox Mobile reply position (#29751) 2024-11-14 10:01:55 -05:00
Penar MusarajandGitHub efc8e7b6bb UX: Fix modal header background color in webview (#29717) 2024-11-12 12:47:14 -05:00
Penar MusarajandGitHub 5b01b48da3 DEV: Fix updating header background in webview (#29668)
This regressed in https://github.com/discourse/discourse/pull/28912 for media query changes.
2024-11-08 22:18:09 -05:00
Penar MusarajandGitHub e5e4f468c9 UX: Change the authorize button color to primary (#29666)
Primary is a more appropriate color here than "danger". Authorizing is
important, but we usually use "danger" for destructive actions and
nothing is being destroyed here.
2024-11-08 17:33:50 -05:00
Penar MusarajandGitHub 51e8c8da5f DEV: Hide experimental lightbox setting (#29519)
This setting is not ready for use, we should hide it from the UI.
2024-10-31 12:01:58 -04:00
Penar MusarajandGitHub 8bd8b87ac5 DEV: Remove body docked class and its scroll event listener (#29515)
Docking is a leftover from older header code, it looks like it is no
longer used in the app. This helper was registering a scroll event
listener to check if the header should be docked or not. Initially, a
"docked" class was added to the body element. This class persisted
through the lifecycle of the app and the scroll event was doing no
useful work.

Some older themes may still use it in CSS, that will cause a regression,
from a quick look at existing code, the surface area should be small
(2-3 themes). It's worth removing the event listener for performance
reasons. We could possibly add the class "docked" statically to the body
element, but it's redundant. It's best to clean up the relevant CSS in
themes, where applicable.
2024-10-31 10:21:50 -04:00
Penar MusarajandGitHub 00e5f36335 DEV: Refactor header offset calculations (#29398) 2024-10-31 09:50:01 -04:00
Penar MusarajandGitHub bdc43d8563 FIX: remove redundant body scroll lock (#29395)
PR #26784 adds the scroll lock in the modal which renders this second scroll lock for SK component redundant. Having it there in fact causes issues on iPads, where it isn't necessary.
2024-10-24 13:41:08 -04:00
Penar MusarajandGitHub a25565819a DEV: restore custom route for custom homepage (#29343) 2024-10-22 13:17:36 -04:00
Penar MusarajandGitHub 720cb9ce85 Revert "FEATURE: Enable image optimization on iOS >= 18 (#29257)" (#29287)
This reverts commit a9e3e31504.
2024-10-18 13:01:14 -04:00
Penar MusarajandGitHub c1d56f8cdd DEV: update rake task to disable 2FA for a user (#29052)
- limits security key deletes to second factor keys
- also deletes backup codes (lingering backup codes break login flow entirely)

* Add spec for rake task to disable 2FA for a user
2024-10-16 09:11:29 +11:00
Penar MusarajandGitHub e864b9f109 DEV: Fix build by removing custom route that triggers error (#29131) 2024-10-08 13:27:43 -04:00
Penar MusarajandGitHub 9e2b23c012 FIX: Routing back to homepage from admin sidebar (#29125) 2024-10-08 10:05:08 -04:00
Penar MusarajandGitHub 66b95a6c0e DEV: Add app webview event when triggering login (#29075)
Mobile app can capture event and launch a separate login flow. Should
help resolve issues with passkeys (which aren't available in webviews)
and non-local login methods.
2024-10-08 10:04:48 -04:00
Penar MusarajandAlan Guo Xiang Tan 9b3d94445e SECURITY: prevent topic list filtering by hidden tags for unathorized users
This fixes an issue where unathorized users were able to filter topics
by tags that are hidden from them.
2024-10-07 11:48:55 +08:00
Penar MusarajandGitHub 761e5e60e3 UX: Improve bottom padding to chat index on mobile (#29086)
Minor adjustment to #29082
2024-10-04 11:33:38 -04:00
Penar MusarajandGitHub 6db5087c65 DEV: Do not include passkey metadata needlessly (#29074)
Only current user should see passkey metadata.
2024-10-03 15:44:21 -04:00
Penar MusarajandGitHub d59e3750a6 FIX: Retry updating webview background color (#28912)
In some very rare cases, the header element doesn't yet have the bg
when this code is run. This PR adds a simple retry mechanism.

No tests because this relies on specific load timing from the browser.
2024-09-16 11:58:36 -04:00
Penar MusarajandGitHub 14ec1205f8 DEV: Add plugin outlet wrapper around footer nav (#28863) 2024-09-13 07:57:46 -04:00
Penar MusarajandGitHub b79e46d1cd DEV: Skip flakey admin flags test (#28895) 2024-09-13 09:22:30 +10:00
Penar MusarajandGitHub d85ed262f9 DEV: Shorter PR draft template (#28862) 2024-09-11 16:25:00 -04:00
Penar MusarajandGitHub c595c5c566 FIX: Poll voters list wasn't expanding properly (#28823) 2024-09-10 11:46:12 -04:00
6fc2714f14 FIX: Passkey login when Discourse used as SSO provider (#28672)
Co-authored-by: Osama Sayegh <[email protected]>
2024-09-03 11:46:23 -04:00
Penar MusarajandGitHub 1e75345a89 DEV: Ignore invalid tag parameter in TagsController (#28557)
This had no effect in the app, but it was resulting in errors in the logs.
2024-08-27 12:06:54 -04:00
Penar Musaraj a0263d4d1c Bump version to v3.4.0.beta2-dev 2024-08-27 10:54:25 -04:00
Penar Musaraj 90527fd8a8 Bump version to v3.4.0.beta1 2024-08-27 10:54:25 -04:00
Penar MusarajandGitHub 90daeac01a FIX: Respect the End key when last post is already rendered (#28524)
Given we are a single-page-app, we hijack the browser's default behavior
for keyboard shortcuts like End because on long topics (20+ posts) we
need to load the last post before really reaching the end of the page.

However, when the last post is already rendered, the End shortcut
currently does nothing, it takes the user to the start of the last post.
If that post is too long, the user will have to scroll down manually.

This change ensures that if the last post of a topic is already rendered
(whether it is in the viewport or not), pressing End will take the user
to the very bottom of the page.

Note for the reviewer: the test added here is for the general case, it
is too hard to test the case where the last post is already rendered,
that isn't covered here.
2024-08-26 14:39:30 -04:00
Penar MusarajandGitHub d777937168 FEATURE: "Hot" replacing "Top" as default in the top menu (#28252)
This change only applies to instances that have not modified the
`top_menu` site setting.
2024-08-08 13:57:42 -04:00
83e472a756 UX: Do not delete narrative bot PM when skipping user tips (#28265)
Should fix https://meta.discourse.org/t/skip-tips-option-in-user-tip-should-not-delete-welcome-message/303420

Co-authored-by: Joffrey JAFFEUX <[email protected]>
2024-08-08 12:12:01 -04:00
Penar MusarajandGitHub e5e8076bad UX: Change bookmark menu label from "Custom..." to "More options…" (#28266) 2024-08-07 17:57:18 -04:00
Penar MusarajandGitHub 1843ee4b42 DEV: Fix flakey user tips test (#28087)
When we show user tips, we immediately send an AJAX request to mark the
tiup as seen. This is done in the background. However, when system tests
are run, sometimes that request is not completed before the test ends.
This causes the test to be flakey.

One way to fix this is to force the system test run to wait for the AJAX
request to complete. However, this is not ideal because it makes the
test suite slower on each run.

Instead, this commit removes the flakey assertion and adds an alternative
assertion in the frontend tests that ensures the background request is
sent when the user tip is shown.
2024-07-25 16:39:30 -04:00
Penar MusarajandGitHub 52cc48926c FIX: Restore missing modal scss (#28085)
Regressed in https://github.com/discourse/discourse/pull/28047

Should fix issue reported in https://meta.discourse.org/t/broken-password-confirmation-box-on-registration/318386
2024-07-25 15:20:52 -04:00
Penar MusarajandGitHub b98db39397 FIX: Regression in custom homepage modifier used in theme components (#27569) 2024-06-21 11:24:11 -04:00
Penar MusarajandGitHub 384a652141 DEV: Remove deprecated DisableSidebar mixin (#26425) 2024-06-20 12:00:48 -04:00
Penar MusarajandGitHub 35b8f7f9d8 DEV: Extract theme resolution to a helper (#27426)
This ensures that the theme id is resolved as early as possible in the
request cycle. This is necessary for the custom homepage to skip
preloading the wrong data.
2024-06-20 11:33:46 -04:00
Penar MusarajandGitHub 5f02392dea UX: Fix user bookmark list keyboard focus state (#27515) 2024-06-18 12:04:48 -04:00
Penar MusarajandGitHub c2125105e7 FIX: Do not reset sidebar defaults in wizard (#27156)
We removed the option to enable/disable the sidebar in the wizard in
https://github.com/discourse/discourse/pull/26926, but these lines of
code were resetting it quietly to `header_dropdown`.
2024-05-23 16:45:47 -04:00
Penar MusarajandGitHub fe14f5fd0d DEV: Fix a flakey test, skip another one (#27132) 2024-05-22 11:59:47 -04:00
Penar MusarajandGitHub 7d919500ad DEV: Update Discover URL (#27116) 2024-05-22 09:53:09 -04:00
Penar MusarajandGitHub cd2faa3c7a FIX: Broken link to theme in customize colors page (#27069)
This regressed in https://github.com/discourse/discourse/pull/26644
2024-05-17 15:04:12 -06:00
Penar MusarajandGitHub 7c273268b4 FIX: Restore legacy popup menu SCSS (#26864)
Were removed in 3b52450 but some plugins rely on them. Let's restore
them for now and address cleaning up once plugins/themes no longer use
them.

Should fix https://meta.discourse.org/t/see-who-voted-display-issue/306641
2024-05-03 12:27:09 -04:00
Penar MusarajandGitHub a5d9d9f673 FIX: Allow deleting avatars from the selectable avatars setting (#26720)
Fixes two issues:

- frontend was reloading the page when clicking-to-remove avatar
- backend wasn't allowing resetting the setting by deleting all avatars
2024-04-24 16:07:12 -04:00
Penar MusarajandGitHub 8e0bd4f7f7 DEV: Refactor discover setting reporting (#26706) 2024-04-23 09:52:01 -04:00
Penar MusarajandGitHub 6f69b19bb7 UX: Fix styling for focused row (#26698) 2024-04-22 13:17:00 -04:00
Penar MusarajandGitHub 82ff4a394a FIX: Ensure invalid timezone does not block critical emails (#26607)
See https://meta.discourse.org/t/invalid-user-timezone-jams-up-their-mail/303306

This ensures that "account silenced" and "account suspended" emails don't
fail to send if the user has an invalid timezone.
2024-04-12 10:53:44 -04:00
947826fb77 FIX: Let users reset their homepage choice if custom homepage is from… (#26536)
Co-authored-by: RĂ©gis Hanol <[email protected]>
2024-04-09 15:54:44 -04:00
Penar MusarajandGitHub ec52a5a9ef DEV: Fix issues with "admin guide" tip (#26520)
- Adjusts placement
- Closes the tip when the user clicks on a link in the tip description
2024-04-04 12:50:08 -04:00
Penar MusarajandGitHub b120e85932 DEV: Fix flakey user tips spec (#26516) 2024-04-04 12:40:09 -04:00
Penar MusarajandGitHub e604917916 DEV: Update copy for topic timeline tip (#26494) 2024-04-03 13:55:05 -04:00
02162c1faf UX: Improvements to user tips (#26480)
- Add a "Skip tips" button to first notification tip
- Add a "Skip tips" button to the admin guide tip
- Fixes the timeline tip showing when no timeline was present
- Fixes post menu tip showing when no "..." button is present
- Adds system tests
- Marks each tip as seen as soon as it is displayed so that refreshing,
clicking outside, etc. won't show it again
- Change just above means we no longer need a MessageBus track

Co-authored-by: Bianca Nenciu <[email protected]>
2024-04-03 11:43:56 -04:00
Penar MusarajandGitHub c4094d0696 DEV: allow themes to render their own custom homepage (#26291)
This PR adds a theme modifier and route so that custom themes can opt to show their own homepage. See PR description for example usage.
2024-04-02 11:05:08 -04:00
Penar MusarajandGitHub afed7d5534 DEV: Add {{hide-application-sidebar}} helper (#26310) 2024-03-28 15:03:40 -04:00
Penar MusarajandGitHub e4a4347edb DEV: Allow user api key scope for notifications#totals (#26205)
The `/notifications/totals` route is a stripped down version of `notifications#index`. This just allows the mobile app to use this new route.
2024-03-15 16:06:32 -04:00
1bebfa0940 DEV: Dedicated route for current user notification counts (#26106)
Co-authored-by: Alan Guo Xiang Tan <[email protected]>
2024-03-15 12:08:37 -04:00
Penar MusarajandNat fee6b4f282 SECURITY: Limit invites params length 2024-03-15 14:24:07 +08:00
Penar MusarajandGitHub 83c3bb840b DEV: Improve localizability for a few labels (#26178)
Using separate prefix + date elements makes it harder to translate in
some languages. This moves a few dates inside i18n strings.
2024-03-14 15:01:43 -04:00
Penar MusarajandGitHub 31185c282c DEV: Update the description for include_in_discourse_discover (#26142) 2024-03-12 15:18:45 -04:00
Penar MusarajandGitHub efbab09621 A11Y: Update bulk selection keyboard shortcuts (#26069)
* A11Y: Update bulk selection keyboard shortcuts

Still a draft, but in current state this:

- adds `shift+b` as a keyboard shortcut to toggle bulk select
- adds `shift+d` as a keyboard shortcut to dismiss selected topic(s) (this
replaces `x r` and `x t` shortcuts)
- adds `x` as a keyboard shortcut to toggle selection (while in bulk select mode)
- fixes a bug with the `shift+a` shortcut, which was not working properly

Note that there is a breaking change here. Previously we had:

- `x r` to dismiss new topics
- `x t` to dismiss unread topics

However, this meant that we couldn't use `x` for selection, because the
itsatrap library does not allow the same character to be used both as a
single character shortcut and as the start of a sequence. The proposed
solution here is more consistent with other apps (Gmail, Github) that use
`x` to toggle selection.

Also, we never show both "Dismiss New" and "Dismiss Unread" in the same
screen, hence it makes sense to consolidate both actions under `shift+d`.

* Address review
2024-03-08 09:54:10 -05:00
Penar MusarajandGitHub c27b923f0d Revert "FIX: Show Uncategorized in category-chooser (#25794)" (#25843)
This reverts commit 79505d9043.
2024-02-23 12:21:44 -05:00
Penar MusarajandGitHub cfeb60347b Revert "UX: allow fullscreen composer on mobile (#25787)" (#25842)
This reverts commit b14a8314d9.
2024-02-23 12:21:26 -05:00
Penar MusarajandGitHub 4d041774a2 UX: Allow resetting password when confirming session (#25708)
This is particularly useful in scenarios where 2FA is enforced and users have forgotten their password.
2024-02-16 12:18:07 -05:00
Penar MusarajandGitHub 6cbc1cafdf DEV: Do not require session confirmation for new users (#24799)
When making sensitive changes to an account (adding 2FA or passkeys), we
require users to confirm their password. This is to prevent an attacker
from adding 2FA to an account they have access to.

However, on newly created accounts, we should not require this, it's an
extra step and it doesn't provide extra security (since the account was
just created). This commit makes it so that we don't require session
confirmation for accounts created less than 5 minutes ago.
2024-02-15 12:29:16 -05:00
Penar MusarajandGitHub 0ec367491e DEV: Add post_id parameter to reset_bump_date route (#25372)
This would allow a theme component (or an API call) to reset the bump
date of a topic to a given post's created_at date.

I picked `post_id` as the parameter here because it provides a bit of
extra protection against accidentally resetting the bump date to a date
that doesn't make sense.
2024-02-15 16:42:42 +11:00
Penar MusarajandGitHub feabb85322 FIX: Webauthn origin was incorrect for subfolder setups (#25651) 2024-02-12 16:27:24 -05:00
Penar MusarajandGitHub b570d1c809 FIX: Respect date range in top traffic sources report (#25599)
See https://meta.discourse.org/t/reports-top-traffic-sources-topics-stat-issue/179850
2024-02-08 11:17:59 -05:00
Penar MusarajandGitHub e1e9bd275a FIX: Handle old Firefox versions that do not support isConditionalMediationAvailable (#25549)
Some versions of Firefox will throw a TypeError when calling
PublicKeyCredential.isConditionalMediationAvailable() because the
method does not exist. That would previously lead to a "Sorry, an error
has occurred." modal when trying to login.

This commit fixes the issue by properly checking if the method exists.
Since it only affects older Firefox versions, no tests are added.
2024-02-02 16:39:37 -05:00
Penar MusarajandGitHub 7c7d4e731e DEV: Add general pretender for passkey challenge (#25432)
* DEV: Add general pretender for passkey challenge

* Limit a test to Chrome because of Firefox ESR flakiness
2024-01-30 08:13:59 +11:00