Commit Graph

5820 Commits (63c8550791a0221189f495d6458fee7db601c789)

Author SHA1 Message Date
David Baker 63c8550791 Supporting change for CVE-2024-47771 / GHSA-963w-49j9-gxj6 2024-10-15 12:38:16 +01:00
David Baker 8d7f2b5c13 Fix for CVE-2024-47779 / GHSA-3jm3-x98c-r34x 2024-10-15 12:37:21 +01:00
Michael Telatynski 994fcd6319
Update native OIDC callback url to be RFC8252 compliant
By switching the double slash for a single one

Fixes https://github.com/element-hq/element-desktop/issues/1889

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-09-24 16:56:08 +01:00
David Langley baac24adf3 Remove regexpunicodesets modernizr check 2024-09-16 12:46:47 +01:00
David Langley ea89fe3955 revert modernizr header change 2024-09-06 16:07:10 +01:00
David Langley 69c28ad74f Update license files 2024-09-06 15:44:31 +01:00
Travis Ralston 3080c97007 Switch from `self` to `global` for service worker 2024-08-01 19:46:03 -06:00
Michael Telatynski 1424314f12
Merge pull request #27881 from element-hq/t3chguy/make-sonar-happier
Make sonarcloud happier
2024-07-31 20:40:08 +00:00
Michael Telatynski d5f4b1bc86
Make sonarcloud happier
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-07-31 11:03:18 +01:00
t3chguy 676547e54c [create-pull-request] automated change 2024-07-31 06:07:35 +00:00
Michael Telatynski c9aa0ceb00
Fix toast changes in react-sdk
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-07-30 14:54:21 +01:00
Michael Telatynski 59e526e318
Update unsupported browser react component to new designs (#27857) 2024-07-30 14:16:19 +01:00
Michael Telatynski 88ddf05930
DRY
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-07-25 20:10:11 +01:00
Michael Telatynski 5a1b38cd74
Tidy
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-07-25 20:07:00 +01:00
Michael Telatynski dd17436eb0
Fix Jitsi by updating device mute updates over postMessage API
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-07-25 19:59:02 +01:00
David Baker 9f27685a54 Polyfill Intl.Segmenter
This fixes Element on older versions of Firefox by adding a Polyfill
for Intl.Segmenter. The Polyfill is conditionally imported so it only
inflates the initial bundle size by about 100 bytes. On browsers that
need it, the polyfill is quite large at 317Kb.

Users on these browser will still see the 'unsupported browser' screen,
but will be able to click through to use the app anyway. This keeps the
Intl.Segmenter modernizr check but this would also happen due to
https://github.com/element-hq/element-web/pull/27674
2024-07-23 11:57:12 +02:00
David Baker 36ff766be3 Add a modernizr check for WebAssembly support
We don't work at all without this now and currently fail in terrible
ways. This will cause us to display the 'unsupported browser' screen
if we don't have wasm.

Also comment the three different types of error page.

Playwright test coming for this in react-sdk.
2024-07-18 13:05:34 +02:00
Michael Telatynski 1eea7fffbe
Merge branch 'develop' of https://github.com/vector-im/element-web into t3chguy/modernizr-webaudio
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

# Conflicts:
#	src/vector/modernizr.js
2024-07-17 19:58:43 +01:00
Michael Telatynski 8ecf47bce8
Enable audio/webaudio Modernizr rule
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-07-17 19:58:02 +01:00
David Baker bc805d2989
Merge pull request #27767 from element-hq/dbkr/unminify_modernizr
Unminify modernizr
2024-07-17 15:09:07 +00:00
David Baker a32aca434c
Typo
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2024-07-17 15:30:01 +01:00
David Baker 73a8aad088 Unminify modernizr
It will get minified by webpack anyway, we may as well have vaguely
sensible diffs if we change it.
2024-07-17 15:44:37 +02:00
David Baker 0273909a43 Add comment on why we're adding a custom check 2024-07-17 15:42:49 +02:00
Travis Ralston 5eebd54baf Appease the linter 2024-07-16 13:54:02 -06:00
Travis Ralston 764654fffb Add debugging for service worker version check 2024-07-16 13:50:44 -06:00
Travis Ralston 39bdcafbe2
Merge pull request #27675 from element-hq/travis/authed-media-ipc
Add Electron IPC APIs for authenticated media
2024-07-10 13:41:40 +00:00
Michael Telatynski 99553210be
Ensure we do not load matrix-react-sdk is a manner which can white-screen
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-07-08 15:52:53 +01:00
Michael Telatynski 668450325c
Merge pull request #27677 from element-hq/t3chguy/intl-segmenter-modernizr
Add Modernizr rule for Intl.Segmenter
2024-07-05 11:56:08 +00:00
Michael Telatynski be92e64458
Merge branch 'develop' of https://github.com/vector-im/element-web into t3chguy/intl-segmenter-modernizr
# Conflicts:
#	src/vector/index.ts
2024-07-05 11:27:03 +01:00
Michael Telatynski 4d0c740ad2
Add Modernizr rule for Intl.Segmenter
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-07-05 11:26:22 +01:00
Richard van der Hoff 438d07bc75
Merge branch 'develop' into rav/remove_olm 2024-07-05 11:21:38 +01:00
Michael Telatynski b4d343053d
Merge pull request #25477 from SuperKenVery/superkenvery/webaudioapi
Remove message audio element (for another pr)
2024-07-04 18:36:53 +00:00
Michael Telatynski 88d507f4f9
Update index.html 2024-07-04 19:23:13 +01:00
Travis Ralston 8e03b273ae Add Electron IPC APIs for authenticated media 2024-07-04 11:58:32 -06:00
Robin e4d138f4d1 Add a Modernizr check for v mode regexes
I plan to use v mode regexes to test for emoji sequences, and Michael has advised me that we need to ensure that the "incompatible browser" screen shows if they are not supported.
2024-07-04 12:53:39 -04:00
Richard van der Hoff 7c7cbe655a Remove code which loads legacy libolm
Now that we use the Rust crypto stack
(https://github.com/matrix-org/matrix-react-sdk/pull/12630), the legacy olm
library is unneeded. Remove all the dedicated cruft for loading it.

(All this crap is why matrix-sdk-crypto-wasm has to base64 its wasm artifact,
cf https://github.com/matrix-org/matrix-rust-sdk/pull/1167.)
2024-06-26 16:27:14 +01:00
Michael Telatynski 6821a35444
Merge branch 'develop' into superkenvery/webaudioapi 2024-06-20 17:19:10 +01:00
Bart van der Braak b61d5b4475 Add SSO redirect option for login page
Signed-off-by: Bart van der Braak <bartvdbraak@gmail.com>
2024-06-14 10:23:16 +02:00
Michael Telatynski 6c3817fa34
Merge pull request #27566 from element-hq/t3chguy/fix/24694
Remove gfm.css, import from matrix-react-sdk
2024-06-13 17:10:26 +00:00
Travis Ralston e151d9ab53
Merge pull request #27558 from element-hq/travis/stable-msc3916
Use stable endpoints for MSC3916
2024-06-13 16:32:18 +00:00
Michael Telatynski ea16928d35
Remove setImmediate polyfill (#27567) 2024-06-13 16:59:56 +01:00
Michael Telatynski 6cf0809064
Remove gfm.css, import from matrix-react-sdk
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-06-13 10:51:37 +01:00
Michael Telatynski a0eb94704e
Conform to no-floating-promises (#27561) 2024-06-12 17:17:29 +01:00
Travis Ralston e1e0d37478 Use stable endpoints for MSC3916 2024-06-11 14:36:08 -06:00
Travis Ralston bcd5c838e8
Typescriptify & use service worker for MSC3916 authentication (#27326)
* Typescriptify & use service worker for MSC3916 authentication

* appease the linter

* appease jest

* appease linter

* Get the access token directly

* Add a bit of jitter

* Improve legibility, use factored-out functions for pickling

* Add docs

* Appease the linter

* Document risks of postMessage

* Split service worker post message handling out to function

* Move registration to async function

* Use more early returns

* Thanks(?), WebStorm

* Handle case of no access token for /versions

* Appease linter

* Apply suggestions from code review

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>

* Remove spurious try/catch

* Factor out fetch config stuff

* Apply suggestions from code review

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>

* Finish applying code review suggestions

---------

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2024-05-14 13:17:38 -06:00
Michael Telatynski 706f4c6e20
Merge branch 'develop' of https://github.com/vector-im/element-web into t3chguy/oidc-config 2024-05-13 17:49:02 +01:00
Michael Telatynski 64f0bb5460
Inline consts
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-05-13 13:05:50 +01:00
Michael Telatynski 58e5b3959d
Allow explicit configuration of OIDC dynamic registration metadata
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-05-10 13:13:59 +01:00
Michael Telatynski 9efa04da7a
Split out oidc callback url into its own method
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-05-10 11:58:58 +01:00
Michael Telatynski b82100ede8
Fix `element-desktop-ssoid being` included in OIDC Authorization call
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-05-03 12:47:40 +01:00