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

iOS 10 should be served javascript_version:es5 #11387

Merged
merged 2 commits into from Jan 5, 2018

Conversation

mnoorenberghe
Copy link
Contributor

Description:

iOS 10 can't handle javascript_version: latest and it's detected as being able to support it. See #11234 and other reports on the forums.

Related issue (if applicable): fixes #11234

Example entry for configuration.yaml (if applicable):

frontend:
  javascript_version: auto

@amelchio
Copy link
Contributor

It's not really working even on iOS 11, see #11201.

@balloob
Copy link
Member

balloob commented Jan 2, 2018

I can't repro it locally but can repro it on latest dev. We just merged a fix for Safari home-assistant/frontend#757 so I am going to update dev with that to see if that resolves it.

@balloob
Copy link
Member

balloob commented Jan 2, 2018

Dev updated: 0f914b4

@balloob
Copy link
Member

balloob commented Jan 2, 2018

Confirmed locally that this fixes it on Safari 11.01. I don't have access to Safari 10. @mnoorenberghe could you test the latest dev ?

@balloob
Copy link
Member

balloob commented Jan 2, 2018

Weird, now I can't get it to work on Safari 11 when loading it from my production instance (I run dev).

The weird thing is that it should work:
image

It complains that e does not contain the method includes. This is surprising because by looking at the screenshot, it's clear that e is defined on top in the const declaration (line 2). Looking at the value of e, it actually has picked up the e variable on the window object (used in adding polyfill)

CC @andrey-git

@balloob
Copy link
Member

balloob commented Jan 2, 2018

I have double checked, I am unable to confirm it locally 🤔

@balloob
Copy link
Member

balloob commented Jan 2, 2018

@andrey-git
Copy link
Contributor

We could rename the polyfill e to something longer so it won't collide.

@balloob
Copy link
Member

balloob commented Jan 2, 2018

I'll give it a try. The weird thing is that it shouldn't collide at all. Window is always the last scope to be checked.

@balloob balloob added this to the 0.60.1 milestone Jan 5, 2018
@balloob
Copy link
Member

balloob commented Jan 5, 2018

I am going to fix this later but for now adjusted this PR to serve ES5 to all Safari browsers and will include this PR in 0.60.1. Sorry about being a bit slow on releasing a hotfix for this, babies, holidays, etc

@balloob balloob merged commit 71fb7a6 into home-assistant:dev Jan 5, 2018
balloob pushed a commit that referenced this pull request Jan 5, 2018
* iOS 10 should be served javascript_version:es5

Fixes #11234

* Update min Safari version to 12
@balloob balloob mentioned this pull request Jan 5, 2018
@home-assistant home-assistant locked and limited conversation to collaborators May 29, 2018
@balloob
Copy link
Member

balloob commented Jul 3, 2018

Just a heads up for people following this issue: I am reverting this change in home-assistant/frontend#1398 as we changed to a new build pipeline and I am no longer unable to repro it. Will aim to include this in 0.73.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

After update to 0.60 Hass.IO doesn't load in iOS devices
6 participants