Skip to content
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

Blazor Client Side : iOS (Preview 6) #15588

Closed
mkArtakMSFT opened this issue Jul 5, 2019 · 14 comments
Closed

Blazor Client Side : iOS (Preview 6) #15588

mkArtakMSFT opened this issue Jul 5, 2019 · 14 comments

Comments

@mkArtakMSFT
Copy link

From @smjltd on Wednesday, July 3, 2019 6:31:33 PM

Describe the bug

Unable to browse same Blazor Client Side app on iOS 13.0

To Reproduce

Steps to reproduce the behavior:

  1. Open Safari/Chrome
  2. browse the app
  3. See error stuck starting animation

Screenshots

IMG_2048
Screenshot 2019-07-03 21 29 32

Where as working fine on desktop and android

Screenshot 2019-07-03 21 33 21

Copied from original issue: dotnet/aspnetcore#11862

@chucker
Copy link

chucker commented Jul 10, 2019

(This is a regression in Safari 13. Safari Version 12.1.1 (14607.2.6.1.1) is not affected.)

@lewing
Copy link
Member

lewing commented Jul 12, 2019

I can't reproduce it with Safari Version 13.0 (15608.1.31.1.2) either

@lewing
Copy link
Member

lewing commented Jul 12, 2019

Can you attach a test can and provide the exact safari version you are seeing problems with?

@chucker
Copy link

chucker commented Jul 25, 2019

@lewing

Output of dotnet --info:

.NET Core SDK (reflecting any global.json):
 Version:   3.0.100-preview7-012821
 Commit:    6348f1068a

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  10.14
 OS Platform: Darwin
 RID:         osx.10.14-x64
 Base Path:   /usr/local/share/dotnet/sdk/3.0.100-preview7-012821/

Host (useful for support):
  Version: 3.0.0-preview7-27912-14
  Commit:  4da6ee6450

.NET Core SDKs installed:
[..]
  3.0.100-preview7-012821 [/usr/local/share/dotnet/sdk]

.NET Core runtimes installed:
[..]
  Microsoft.AspNetCore.App 3.0.0-preview7.19365.7 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
[..]
  Microsoft.NETCore.App 3.0.0-preview7-27912-14 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

Install a Blazor project template, then create and run an empty project:

dotnet new -i Microsoft.AspNetCore.Blazor.Templates::3.0.0-preview7.19365.7
dotnet new blazor -o Mono15588
cd Mono15588/
dotnet run

Finally, navigate to http://localhost:5000 (or whichever dotnet run outputs).

Safari Technology Preview Release 88 (Safari 13.0, WebKit 14608.1.36) will almost immediately log a console error:

[Error] Unhandled Promise Rejection: TypeError: 'arguments', 'callee', and 'caller' cannot be accessed in this context.
	(anonymous function) (mono.js:1:207498)
	run (mono.js:1:207498)
	runCaller (mono.js:1:207402)
	removeRunDependency (mono.js:1:16179)
	receiveInstance (mono.js:1:17374)
	receiveInstantiatedSource (mono.js:1:17490)
	promiseReactionJob

Version 12.1.1 (14607.2.6.1.1) will not.

@kmiller68
Copy link

For what it's worth one of my coworkers investigated this and found the source of the bug... https://bugs.webkit.org/show_bug.cgi?id=201484.

If you want a work around, you can either access WebAssembly.Module/Instance before setting Module or you can put var Module or let Module in the global scope. Let me know or file a bug on bugs.webkit.org if you have any issues. Sorry for the inconvenience... :(

@chucker
Copy link

chucker commented Sep 10, 2019

Indeed. Simply putting

<script>var Module;</script>

In your wwwroot/index.html before the Blazor bootstrapper fixes it. Thanks @kmiller68!

@smj0x
Copy link

smj0x commented Sep 10, 2019

Getting this error.
after adding <script>var Module;</script>
Screen Shot 2019-09-10 at 7 11 08 PM

@chucker
Copy link

chucker commented Sep 10, 2019

That’s probably #15989.

chucker added a commit to chucker/BlazorStrap that referenced this issue Sep 11, 2019
See mono/mono#15588 (comment). blazorstrap.io currently won't load in preview versions of Safari (which will become non-preview in a few days); this one-liner tries to work around it.
jbomhold3 pushed a commit to chanan/BlazorStrap that referenced this issue Sep 12, 2019
See mono/mono#15588 (comment). blazorstrap.io currently won't load in preview versions of Safari (which will become non-preview in a few days); this one-liner tries to work around it.
@smj0x
Copy link

smj0x commented Sep 19, 2019

Now same thing happening with newly updated safari version 13.0 (14608.1.49)

Screen Shot 2019-09-19 at 8 41 43 PM

@frank12001
Copy link

I have same issue with iphoneX ios 13.
Dotnet core version is v3.0.0-rc1.
I use the basic template and deploy it on azure appservice. It stay at loading... when i use ios 13 but work fine on ios 12 device.

@kjpou1
Copy link
Contributor

kjpou1 commented Sep 23, 2019

There has been a PR submitted to rectify the <script>var Module;</script> iOS 13.

@smj0x
Copy link

smj0x commented Sep 25, 2019

doesn't work

@chucker
Copy link

chucker commented Sep 27, 2019

@smjltd I've found that applying both the var Module; workaround and replacing the boot script with the one in #16986 helped on iPhone, iPad, Mac (iOS 13.1 with Safari 13, macOS 10.14.6 with Safari 13).

@kjpou1
Copy link
Contributor

kjpou1 commented Oct 1, 2019

I am going to close this for now in favor of #16986 as they are related.

@kjpou1 kjpou1 closed this as completed Oct 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants