Skip to content

[browser] fix loading assets #89687

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Aug 2, 2023

Conversation

pavelsavara
Copy link
Member

@pavelsavara pavelsavara commented Jul 29, 2023

  • make sure that we resolve URLs from loadBootResource to absolute URL with document.baseURI
    • added makeURLAbsoluteWithApplicationBase
    • add new last parameter to loadBootResource call with runime behavior type,
    • removed double call to loadBootResource
  • add manifest, js-module-dotnet to AssetBehaviors
  • add WebAssemblyBootResourceType back to dotnet.d.ts
  • rename jsSymbols to wasmSymbols, this was a mistake
  • added browser-minimal-config sample
  • fix merging config
  • fix loading from legacy config.assets

Fixes #89510
Fixes #89570
Fixes #89766

@pavelsavara pavelsavara added arch-wasm WebAssembly architecture area-System.Runtime.InteropServices.JavaScript os-browser Browser variant of arch-wasm labels Jul 29, 2023
@pavelsavara pavelsavara added this to the 8.0.0 milestone Jul 29, 2023
@pavelsavara pavelsavara requested a review from maraf July 29, 2023 23:40
@pavelsavara pavelsavara self-assigned this Jul 29, 2023
@ghost
Copy link

ghost commented Jul 29, 2023

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details

Fixes #89510
Fixes #89570

Author: pavelsavara
Assignees: pavelsavara
Labels:

arch-wasm, area-System.Runtime.InteropServices.JavaScript, os-browser

Milestone: 8.0.0

…L with document.baseURI, added makeURLAbsoluteWithApplicationBase

- add new last parameter to loadBootResource call with runime behavior type, remove double call to loadBootResource
- add manifest, js-module-loader to AssetBehaviors
- add WebAssemblyBootResourceType back
- rename jsSymbols to wasmSymbols, this was a mistake
@pavelsavara pavelsavara marked this pull request as ready for review August 1, 2023 17:23
@radical
Copy link
Member

radical commented Aug 1, 2023

Is the sample testing the issue being fixed here? Can we please move to a WBT test? Having it in a sample makes it breakable in future, because we won't really know what it was testing necessarily. And somebody trying to clean up, or improve the code might break remove the things that we wanted to test.

@pavelsavara
Copy link
Member Author

Is the sample testing the issue being fixed here? Can we please move to a WBT test?

About browser-minimal-config: yes I want to do that in the future.

The Wasm.Build.Tests.TestAppScenarios.AppTestBase is currently Blazor based and I want non-blazor template for it. And I want to use the src\mono\wasm\testassets\ style. We can refactor AppTestBase and do that in another PR.

@pavelsavara pavelsavara merged commit 0d6d6c3 into dotnet:main Aug 2, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Sep 1, 2023
@pavelsavara pavelsavara deleted the browser_fix_loading_assets branch September 2, 2024 15:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-System.Runtime.InteropServices.JavaScript os-browser Browser variant of arch-wasm
Projects
None yet
3 participants