summaryrefslogtreecommitdiffstats
path: root/platform/web/js
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit godotengine/godot@d09d82d433b03bb3773fd2a8cc8d6ccc2f8739ceSpartan3222024-11-263-11/+22
|\
| * Merge pull request #98069 from ↵Thaddeus Crews2024-11-252-9/+22
| |\ | | | | | | | | | | | | | | | thedinosoar/fix/service-worker-sandbox-error-98068 [Web] Fix PWA callback assignment causing crash in sandboxed iframes
| | * Fix PWA callback assignment and error handlingKeegan McGonigle2024-10-222-9/+22
| | |
| * | Merge pull request #99044 from Sticksman/bug-fix-98873Thaddeus Crews2024-11-221-2/+0
| |\ \ | | | | | | | | | | | | Remove deprecated worker.js file
| | * | Remove deprecated worker.js fileFelix Yuan2024-11-111-2/+0
| | | |
* | | | Merge commit godotengine/godot@cb411fa960f0b7fdbd97dcdb4c90f9346360ee0eSpartan3222024-11-121-38/+66
|\| | |
| * | | Fix issue where focus timer would throw continuouslyAdam Scott2024-11-111-9/+32
| | | |
| * | | Make IME code early return insteadAdam Scott2024-11-071-36/+41
| |/ /
* | | Merge commit godotengine/godot@1015a481ff43edb1126ab39a147fefda290131e5Spartan3222024-10-241-2/+14
|\| |
| * | Merge pull request #98431 from lodicolo/4.3-stable_GH_76825Thaddeus Crews2024-10-241-2/+14
| |\ \ | | |/ | |/| | | | Fix GodotFetch glue code for null response bodies
| | * Fix GodotFetch glue code for null response bodiesRobbie Lodico2024-10-231-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The spec says that Response.body can be null (in the event of requests that should have no body, like HEAD requests) and Firefox adheres to it which results in request failure for HEAD requests on Firefox for web exports. This commit addresses that by treating a null body as an "empty" body (without using a polyfill) and avoids changing the request lifecycle as much as possible. PR review changes: - Use == instead of strict === - Do not use ?? null - Comment formatting
* | | Rebrand preambles to RedotDubhghlas McLaughlin2024-10-1110-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Credits: Co-authored-by: Skogi <skogi.b@gmail.com> Co-authored-by: Spartan322 <Megacake1234@gmail.com> Co-authored-by: swashberry <swashdev@pm.me> Co-authored-by: Christoffer Sundbom <christoffer_karlsson@live.se> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: McDubh <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: radenthefolf <radenthefolf@gmail.com> Co-authored-by: John Knight <80524176+Tekisasu-JohnK@users.noreply.github.com> Co-authored-by: Adam Vondersaar <adam.vondersaar@uphold.com> Co-authored-by: decryptedchaos <nixgod@gmail.com> Co-authored-by: zaftnotameni <122100803+zaftnotameni@users.noreply.github.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: wesam <108880473+wesamdev@users.noreply.github.com> Co-authored-by: Mister Puma <MisterPuma80@gmail.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: SingleError <isaaconeoneone@gmail.com> Co-authored-by: Bioblaze Payne <BioblazePayne@gmail.com>
* | | Rebrand Godot to RedotRandolph W. Aarseth II2024-10-113-3/+3
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add Linux Editor tests workflow matrix Add Windows Editor w/ Mono workflow matrix Add Generate Glue Code job to Windows workflow Add Build GodotSharp job to Windows workflow Add godot compatibility version references Add Godot author info Add Godot version compatibility info Add Godot donor info Add Godot authors and donors to editor_about.cpp Credits: Co-authored-by: Skogi <skogi.b@gmail.com> Co-authored-by: Spartan322 <Megacake1234@gmail.com> Co-authored-by: swashberry <swashdev@pm.me> Co-authored-by: Christoffer Sundbom <christoffer_karlsson@live.se> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: McDubh <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: radenthefolf <radenthefolf@gmail.com> Co-authored-by: John Knight <80524176+Tekisasu-JohnK@users.noreply.github.com> Co-authored-by: Adam Vondersaar <adam.vondersaar@uphold.com> Co-authored-by: decryptedchaos <nixgod@gmail.com> Co-authored-by: zaftnotameni <122100803+zaftnotameni@users.noreply.github.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: wesam <108880473+wesamdev@users.noreply.github.com> Co-authored-by: Mister Puma <MisterPuma80@gmail.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: SingleError <isaaconeoneone@gmail.com> Co-authored-by: Bioblaze Payne <BioblazePayne@gmail.com>
* | [Web] Make audio bus fetching more resilient to errorsAdam Scott2024-10-021-7/+31
| |
* | Add `JavaScriptBridge` buffer methodsAdam Scott2024-09-161-0/+32
| |
* | Honor `pitch_scale` value before playing audio sampleAdam Scott2024-08-201-3/+7
| |
* | Merge pull request #95197 from yahkr/95128-audio-fixRémi Verschelde2024-08-163-3/+158
|\ \ | |/ |/| | | Fix AudioStreamPlayer `get_playback_position()` for web build
| * Fix AudioStreamPlayer get_playback_position() for web buildYahkub-R2024-08-083-3/+158
| |
* | Add missing null check before disconnecting sourceAdam Scott2024-07-301-1/+3
| |
* | [Web] Gracefully handle non-finite audio volumesA Thousand Ships2024-07-291-1/+4
| |
* | [Web] Enable the closure compiler in CIFabio Alessandrelli2024-07-261-13/+8
| | | | | | | | Also fixes some JSDoc annotations in GodotAudio
* | Merge pull request #94044 from adamscott/fix-web-sample-playback-finished-signalRémi Verschelde2024-07-071-2/+25
|\ \ | | | | | | | | | Fix Web samples finished missing signal
| * | Fix Web samples finished missing signalAdam Scott2024-07-071-2/+25
| | |
* | | Fix IME blocking controlsAnni Ryynänen2024-07-071-0/+1
|/ /
* | Merge pull request #93750 from ↵Rémi Verschelde2024-07-041-4/+12
|\ \ | | | | | | | | | | | | | | | adamscott/add-bigint-support-on-js-value-conversion Add `bigint` support on JS value conversion
| * | Add `bigint` support on JS value conversionAdam Scott2024-07-031-4/+12
| |/
* / Fix assignations to non-existing keys and clean-upAdam Scott2024-06-291-6/+4
|/
* Fix pausing issues when using Web Audio samplesAdam Scott2024-06-201-59/+117
|
* Add samples playback supportAdam Scott2024-06-182-31/+1586
|
* [Web] Use the module config to preload GDExtension libraries.Fabio Alessandrelli2024-06-142-16/+13
| | | | | | | | | Instead of calling loadDynamicLibraries ourselves, we add the GDExtension libraries to preload to the "dynamicLibraries" module config property. This seems to fix some threading issue with some browsers during the init phase.
* Merge pull request #91695 from bruvzg/web_ime_posRémi Verschelde2024-05-281-4/+13
|\ | | | | | | [Web IME] Fix suggestion window position in Chromium based browsers.
| * [Web IME] Fix suggestion window position in Chromium based browsers.bruvzg2024-05-091-4/+13
| |
* | Upgrade to eslint 9patwork2024-05-225-17/+17
|/
* [Web] Fix closure compiler typedef annotationFabio Alessandrelli2024-04-261-2/+1
| | | | | The typedef annotation is expected to come bofre a var (or const) since it's most commonly used in externs. Use an inline definition instead.
* Add option to ensure cross-origin isolation headers on web exportAdam Scott2024-02-121-3/+13
|
* Fix various typos with codespellRémi Verschelde2024-02-071-1/+1
| | | | | | | | | | | Using 2.2.7.dev115+g0eb441d6. Had to add `cancelled` to the ignore list, as it's a Wayland signal which we're handling in our code, so we don't want codespell to fix that "typo". Also includes the typo fix from #87927. Co-authored-by: Divyanshu Shekhar <61140213+divshekhar@users.noreply.github.com>
* Add THREADS_ENABLED macro in order to compile Godot to run on the main threadAdam Scott2024-01-172-8/+18
|
* [Web] Add IME input support.bruvzg2023-12-151-1/+134
|
* Add MSAA support for WebXRDavid Snopek2023-12-112-0/+33
|
* Fix various typos with codespellRémi Verschelde2023-11-111-2/+2
| | | | Using 2.2.7.dev51+geb4a58fe.
* [Web] Improve emscripten "locateFile" glue.Fabio Alessandrelli2023-10-111-1/+3
| | | | | Be more selective on what we rewrite, since in recent emscripten versions loading dynamic libraries relies on it.
* Merge pull request #79711 from adamscott/web-non-blocking-main-threadRémi Verschelde2023-10-097-0/+104
|\ | | | | | | Add `proxy_to_pthread` option to `platform=web`
| * Add `proxy_to_pthread` option to `platform=web`Adam Scott2023-10-097-0/+104
| | | | | | | | Co-authored-by: Fabio Alessandrelli <fabio.alessandrelli@gmail.com>
* | Web: Catch using GDExtensions in a non-dlink buildMario Liebisch2023-10-061-0/+4
|/ | | | | Previously this would simply fail with a cryptic `me.rtenv.loadDynamicLibrary is not a function` error.
* Fix godot_js_wrapper_create_cb regressionAdam Scott2023-10-031-1/+1
|
* Fix JavaScript callback memory leak issueSysError992023-09-071-1/+3
| | | | Typo fix
* Fix `JavaScriptBridge.eval()` never returning PackedByteArrayEmmanouil Papadeas2023-08-281-3/+3
| | | | | | It wrongly returned 20 on array buffers, which used to be the enumerator value of Godot 3.x's type PoolByteArray, and now is the value of type Color, while it should return 29 which is the enumerator value for PackedByteArray.
* Fix various typos with codespellRémi Verschelde2023-08-072-5/+5
| | | | | | | | | Also includes typo fixes from #79993, #80068, #80276, and #80303. Co-authored-by: betalars <contact@betalars.de> Co-authored-by: spaceyjase <429978+spaceyjase@users.noreply.github.com> Co-authored-by: Swarkin <102416174+Swarkin@users.noreply.github.com> Co-authored-by: Raul Santos <raulsntos@gmail.com>
* [Web] Update npm packagesFabio Alessandrelli2023-07-311-1/+1
|
* [Web] Always return -1 as body length in HTTPClientWeb.Fabio Alessandrelli2023-07-241-15/+0
| | | | | | | | | | | | | | | Body length cannot be reliably retrieved from the web. Reading the "content-length" value will return a meaningless value when the response is compressed, as reading will return uncompressed chunks in any case, resulting in a mismatch between the detected body size and the actual size returned by repeatedly calling read_response_body_chunk. Additionally, while "content-length" is considered a safe CORS header, "content-encoding" is not, so using the "content-encoding" to decide if "content-length" is meaningful is not an option either. We simply must accept the fact that browsers are awful when it comes to networking APIs.