discourse/plugins/chat/assets/javascripts/discourse
David Taylor 55980a2a84
DEV: Add workaround for chrome crash (#30157)
Some users are seeing consistent "Error 5" crashes in chrome when saving/deleting bookmarks on chat messages.

When crash logging is enabled, the message is:

`[33466:259:1206/122312.195048:ERROR:ax_object.cc(3400)] Check failed: !NeedsToUpdateCachedValues(). Stale values: "Group" axid#7543 <svg#discourse-emojis> needsToUpdateCachedValues/disallowed isIgnored inUserAgentShadowRoot:<use> isInert needsToUpdateChildren hasDirtyDescendants`

This seems to be influenced by a few factors, including the re-render of the bookmarks button, the adjacent 'reactions' button, and also the opening/closing of the modal.

Adding this `activeElement.blur` seems to avoid the issue in my manual testing. Hopefully, this can be dropped after future chrome releases.

Internal topic: t/143485
2024-12-06 16:05:09 +00:00
..
adapters FIX: better chat-api error handling (#19550) 2022-12-21 16:11:35 +01:00
components UX: fix channel name style for unread threads (#30152) 2024-12-06 17:38:13 +04:00
connectors DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
controllers DEV: Bump @discourse/lint-configs and autofix (#29847) 2024-11-20 14:15:04 +00:00
helpers DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
initializers FIX: show urgent badge for mentions in DM threads (#29821) 2024-11-29 12:52:55 +04:00
lib DEV: Add workaround for chrome crash (#30157) 2024-12-06 16:05:09 +00:00
models FIX: improve chat channel sorting for DMs (#30124) 2024-12-05 13:33:55 +04:00
modifiers/chat FIX: ensures last read is updated on new message (#26772) 2024-04-26 18:27:39 +02:00
pre-initializers DEV: allows a context when creating a message (#25647) 2024-02-13 11:37:15 +01:00
routes DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
services FIX: improve chat channel sorting for DMs (#30124) 2024-12-05 13:33:55 +04:00
templates FEATURE: Convert chat plugin UI to new show plugin and admin UI guidelines (#28632) 2024-09-10 15:16:16 +10:00
admin-chat-route-map.js FEATURE: Convert chat plugin UI to new show plugin and admin UI guidelines (#28632) 2024-09-10 15:16:16 +10:00
chat-route-map.js FEATURE: Create a link to start a new chat (#25722) 2024-02-20 18:08:57 +08:00
preferences-chat-route-map.js