Commit Graph

18141 Commits

Author SHA1 Message Date
Pranav K de2fa4c69c Update versions
* Update Blazor version to preview4
* Update ASP.NET Core references to 3.1.3
* Remove DisableImplicitComponentsAnalyzers workaround
2020-03-25 15:59:17 -07:00
Steve Sanderson bbe9cca327
Write hash to service worker on publish (#20131)
* Write SWAM version into service worker output

* Update project template

* Add publishing test

* Update src/Components/WebAssembly/Build/src/targets/ServiceWorkerAssetsManifest.targets

Co-Authored-By: Pranav K <prkrishn@hotmail.com>

* Add E2E test for hosted PWA too

* Avoid test clashes

* E2E test fix

* E2E test fix

* E2E test fix

Co-authored-by: Pranav K <prkrishn@hotmail.com>
2020-03-25 20:06:03 +00:00
Pranav K 9f9783c0df
Tweaks for WASM stress runs (#20109)
Prevent interleaved console writes when reporting stats
Do not print browser logs by defualt
2020-03-25 09:04:29 -07:00
Pranav K 47536a3c14
Blazor wasm preview4 (#20117)
* Restore public API contract on WebAssemblyJSRuntime (#19968)

* Shrink icon-512.png (#19999)

* Use custom DebugProxyHost to initialize DebugProxy config (#19980)

Addresses #19909

* Spruce up WebAssemblyHostEnvironment interface and use (#20008)

* Load .dlls/.wasm/.pdb in parallel with dotnet.*.js. Fixes #18898 (#20029)

* Add BaseAddress property to WebAssemblyHostEnvironment (#20019)

- Adds `BaseAddress` to `IWebAssemblyHostEnvironment`
- Uses unmarshalled APIs to extract application host
- Move NavigationManager initialization to startup code
- Fix subdir mapping in ClientSideHostingTest

Addresses #19910

Co-authored-by: Steve Sanderson <SteveSandersonMS@users.noreply.github.com>
Co-authored-by: Safia Abdalla <safia@safia.rocks>
Co-authored-by: Safia Abdalla <safia@microsoft.com>
2020-03-25 01:51:55 +00:00
Pranav K 56d22a817b
Turn on scope validation for service provider in Development (#19908)
* Turn on scope validation for service provider

* Make WebAssemblyJSRuntime interop-specific overloads extension methods
Fixes https://github.com/dotnet/aspnetcore/issues/9365
2020-03-17 10:26:50 -07:00
Pranav K cb293661e1
Make extensions
Make WebAssemblyJSRuntime interop-specific overloads extension methods
2020-03-17 09:49:27 -07:00
Safia Abdalla 49bf3bb738
Resolve issues in Blazor PWA template (#19898) 2020-03-16 16:55:21 -07:00
Pranav K c37f3fefce
Turn on scope validation for service provider
Fixes https://github.com/dotnet/aspnetcore/issues/9365
2020-03-16 16:20:02 -07:00
Safia Abdalla 0582767e67
Fix Blazor icon for PWAs on iOS (#19897)
- Add link reference to Blazor icon in index.html to support icons on iOS
 - Make Blazor icon background white instead of transparent
- Remove deleted projects from solution file

Addresses #19883
2020-03-16 14:20:01 -07:00
Steve Sanderson f1b812e21e
Update ws-proxy code (#19826) 2020-03-13 11:34:09 +00:00
Steve Sanderson 9343d2bca0
Log unhandled exceptions to custom logger (#19606) 2020-03-13 10:40:02 +00:00
Steve Sanderson 2e9bb2ff5f
Debug proxy as external tool (#19767) 2020-03-12 18:42:13 +00:00
Pranav K 147c39289a
Add support for configuration (#19544)
* Add support for configuration

Fixes https://github.com/dotnet/aspnetcore/issues/18675
2020-03-12 11:38:06 -07:00
Artak 0006fdf093
Revert "Remove inspectUri launch setting (#19672)" (#19786)
* Revert "Remove inspectUri launch setting (#19672)"

This reverts commit 9f4904886e.

* React to review feedback
2020-03-12 11:35:44 -07:00
Pranav K 064f1562fa
Remove WebAssembly.JSInterop 2020-03-10 13:57:32 -07:00
Pranav K a0c76e5a4c
Rename WebAssembly.JSInterop -> Microsoft.JSInterop.WebAssembly 2020-03-10 13:42:35 -07:00
Pranav K 6833facda4
Use TargetPath in blazor dev server (#19658)
The linker's changed since the issue report and correctly resolves paths.
However the dev-server was doing weird things to calculate the path to the output.

Fixes https://github.com/dotnet/aspnetcore/issues/18288
2020-03-10 11:06:15 -07:00
Pranav K 4741da1451
Allow BlazorWasm benchmark driver to perform stress runs (#19619)
* Allow BlazorWasm benchmark driver to perform stress runs

Adds an option that allows running the driver in a loop until timeout expires
2020-03-09 15:21:30 -07:00
Daniel Roth 810a9fad0f
Update SurveyPrompt.razor (#19712) 2020-03-09 13:02:50 -07:00
Javier Calvarro Nelson adc81c94de
[Blazor] Fix default value for response type (#19706) 2020-03-09 11:54:51 -07:00
Artak 9f4904886e
Remove inspectUri launch setting (#19672)
* Remove inspectUri launch setting

* Removed inspectUri from launchSettings
2020-03-07 09:50:22 -08:00
Pranav K 247c0ddae9
Make BlazorLinkerDescriptor public (#19649)
This was accidentally made non-public as part of the API review
2020-03-06 10:18:53 -08:00
Pranav K e40fc36783
Update debug proxy to match 5973519784 (#19618) 2020-03-05 15:26:32 -08:00
Pranav K b02978e0d8
React to dotnet.js having a version number (#19603) 2020-03-05 14:36:32 -08:00
msftbot[bot] 28c44ce1c1
[Blazor] API cleanups for the authentication Package (#19601)
* Add missing OIDC provider options

* Convert string to enum

* Revert changes to JS files
2020-03-05 14:47:47 +00:00
msftbot[bot] e5cd390a8c
Update ws-proxy to match Mono commit 4c348d6567f42be (#19600) 2020-03-05 14:46:56 +00:00
Pranav K f4446f373f
Use browser APIs to calculate Blazor's download size (#19547) 2020-03-05 06:38:35 -08:00
Javier Calvarro Nelson e15e1c2415
[Blazor] Fix incrementalism with unlinked files (#19596) 2020-03-05 05:44:08 -08:00
Steve Sanderson 98cd3ab349 Allow loading dlls with arbitrary extensions 2020-03-04 12:30:10 +00:00
Steve Sanderson fee14d8e13 Update debug proxy to match Mono commit b91580bafa7208b4a52d66cfadce070551f1904a 2020-03-03 11:43:55 +00:00
Javier Calvarro Nelson 085f6e1585
[Blazor][Fixes #19503] Exclude gzip files from manifest (#19525)
* Exclude gzip files from manifest
* Add a test to validate the service-worker manifest
2020-03-03 03:41:58 -08:00
Pranav K 555cf52454
Initialize the runtime state correctly for debugging (#19426)
* Initialize the runtime state correctly for debugging

On startup the DebugProxy needs to know when the runtime
has initialized enough to be able to begin interaction
this is accomplished by breaking in mono_wasm_runtime_ready()
which the Proxy sees does initialization and then resumes from.
Simply setting mono_wasm_runtime_is_ready breaks that logic,
but even worse it appears that the variable is linked out
in the release version

* Regen webassembly.js

Co-authored-by: Larry Ewing <lewing@microsoft.com>
2020-02-28 08:17:24 -08:00
Steve Sanderson 0216ca2086
Stop service worker interfering with Identity UI (#19400) 2020-02-27 22:42:44 -08:00
Javier Calvarro Nelson 2b72b637bf
[Blazor][Wasm] Add missing state callbacks (#19405)
* Adds missing callback when logging in and logging out successfully
2020-02-27 09:48:48 -08:00
Steve Sanderson eed3605ae5
In debug mode, don't enable the linker by default (plus other minor build fixes) (#19374)
* In debug mode, don't enable the linker by default

* Fixup

* Update Blazor.MonoRuntime.targets

* Ensure we have a true/false value. Stop inferring from BlazorLinkOnBuild.

* Avoid doing work for ServiceWorkerAssetsManifest when it's not being used

* React to BlazorLinkOnBuild->BlazorWebAssemblyEnableLinking rename

Co-authored-by: Pranav K <prkrishn@hotmail.com>
2020-02-27 11:49:47 +00:00
Steve Sanderson d9ed5166ff Cache authentication configuration in IndividualLocalAuth && Hosted case 2020-02-26 17:43:03 +00:00
Steve Sanderson 90d7d0b368 Include favicon in service worker cache 2020-02-26 17:43:03 +00:00
Javier Calvarro Nelson b2d01f80d3
[Blazor] Fix error handling in AuthorizeService.ts 2020-02-26 09:08:38 -08:00
Javier Calvarro Nelson a52e708e55
[Blazor] Add instructions to configure the authority when it is missing
* For individual auth cases, when creating the template from Visual Studio there is no way to provide parameters.
* This change adds a message in the index.html to indicate the steps that need to be followed.
2020-02-26 07:39:28 -08:00
Steve Sanderson f3633f3c38
Remove unused DevToolsClient.cs source file (#19364) 2020-02-26 15:33:31 +00:00
Pranav K d8ff2743a0
Target the Razor SDK in Driver app (#19344)
Fixes https://github.com/dotnet/aspnetcore/issues/19307
2020-02-25 13:33:49 -08:00
Artak 20a5d7a086
Include `inspectUri` in the launch profiles (#19308) 2020-02-25 10:33:47 -08:00
Steve Sanderson 34b165a0ef
Update Mono debug proxy (#19335)
* Update to match Mono sources at a8d34b2

* Update to match Mono sources at fafa41f

* Update to match Mono sources at ed012b6

* Change class/struct/enum types to internal

* Use ILogger in proxy code

* Update to match https://github.com/mono/mono/pull/19026
2020-02-25 14:51:46 +00:00
Steve Sanderson bfcf72dfdf
Fix boot json on mac/linux (#19332) 2020-02-25 11:48:31 +00:00
Javier Calvarro Nelson 226f461806
[Blazor] Remove compression middleware from the template (#19285)
Remove response compression from the template
2020-02-24 11:03:00 -08:00
Ryan Nowak 9c16db3e89 Add service provider factory support
Fixes: #18814

This adds back support on the Blazor WASM Host for using
ISerivceProviderFactory<>.

We previously had this support when the Blazor WASM host was a clone of
generic host, but I accidentally lost it when simplifying the host
(sorry :( ).
2020-02-21 16:28:17 -08:00
Pranav K 7ba8d06717
BlazorWASM: API review (#19219)
Fixes https://github.com/dotnet/aspnetcore/issues/13174
2020-02-21 12:58:02 -08:00
Steve Sanderson 6fe946e633
Blazor WebAssembly caching fixes (#19235)
* Support logging errors that happen really early

* Tolerate all the ways caching might be unavailable

* Include dotnet.js in blazor.boot.json

* Reorganize boot manifest to categorize files by role, not just by filename extension

* Enable cache-busting and SRI check on dotnet.js

* Change cache-busting to vary filename, not using querystring. Needed to make PWA manifest still work.
2020-02-21 17:35:36 +00:00
Javier Calvarro Nelson c9c06f573d
[Blazor] Adds support for statically pre-compressing assets using gzip (#19157)
* Adds a task to perform gzip compession.
* Gzips framework files incrementally
* Serves pre-compressed versions of the framework files when possible.
2020-02-21 09:32:07 -08:00
Javier Calvarro Nelson 0541e19ac2
[Blazor][Wasm] Adds support for AAD and AADB2C using msal.js (#19190)
* Adds a new library Microsoft.Authentication.WebAssembly.Msal that handles authentication for Blazor Webassembly applications using msal.js
2020-02-21 09:12:36 -08:00