# Safari in iOS 9.1 hangs after logging in

**URL:** https://meta.discourse.org/t/safari-in-ios-9-1-hangs-after-logging-in/35512
**Category:** Bug
**Created:** [13 november 2015 om 00:34 UTC](https://meta.discourse.org/t/safari-in-ios-9-1-hangs-after-logging-in/35512 "2015-11-13T00:34:05Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![kuyashi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kuyashi/32/82068_2.png) [@kuyashi](https://meta.discourse.org/u/kuyashi)
#### Post date: [13 november 2015 om 00:34 UTC](https://meta.discourse.org/t/safari-in-ios-9-1-hangs-after-logging-in/35512/1 "2015-11-13T00:34:05Z")

</div>

Hi there,

I’ve noticed this behaviour in the Safari browser in iOS 9.1 on an iPhone 6:

- User clicks on login and fills out modal login box.
- After submitting log in credentials - Safari attempts to log in but modal sticks on screen and browser hangs indefinitely.
- Only manually refreshing the page lets user proceed.
- User is looged in when browser is refreshed.

This has been tested on several different Discourse installations - occurs with each.

Other mobile browsers such as Chrome do not have the issue and work as normal. Desktop Safari is not effected also.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [13 november 2015 om 02:46 UTC](https://meta.discourse.org/t/safari-in-ios-9-1-hangs-after-logging-in/35512/2 "2015-11-13T02:46:27Z")

</div>

Can you repro this on your iPhone @techapj?

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [13 november 2015 om 09:04 UTC](https://meta.discourse.org/t/safari-in-ios-9-1-hangs-after-logging-in/35512/3 "2015-11-13T09:04:11Z")

</div>

Yes, I can repro this issue on my iPhone. Added on my list.

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [22 november 2015 om 13:00 UTC](https://meta.discourse.org/t/safari-in-ios-9-1-hangs-after-logging-in/35512/4 "2015-11-22T13:00:14Z")

</div>

Fixed via:

[https://github.com/discourse/discourse/commit/3053d48671f91d6dfcf5e8f26ad1c06476c6683c](https://github.com/discourse/discourse/commit/3053d48671f91d6dfcf5e8f26ad1c06476c6683c)

* * *

The issue was: In case of Safari (on iOS) the [hidden login form](https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/controllers/login.js.es6#L104) was not getting submitted, hence causing the page to freeze.

I realized that we do not need to submit hidden login form (in case of Safari on iOS) because the browser password manager is already getting triggered as soon as user successfully logs in.

---

<div class="post-metadata">

### Author: ![kuyashi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kuyashi/32/82068_2.png) [@kuyashi](https://meta.discourse.org/u/kuyashi)
#### Post date: [22 november 2015 om 15:29 UTC](https://meta.discourse.org/t/safari-in-ios-9-1-hangs-after-logging-in/35512/5 "2015-11-22T15:29:32Z")

</div>

Many thanks @techAPJ

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [24 november 2015 om 13:31 UTC](https://meta.discourse.org/t/safari-in-ios-9-1-hangs-after-logging-in/35512/6 "2015-11-24T13:31:06Z")

</div>

This topic was automatically closed after 2 days. New replies are no longer allowed.
