Ticket #2531608 (closed defect)
Reporter Stephen Murphy |
Opened: 12/14/11 Last modified: 05/10/12 Status: closed Type: defect Resolution: fixed |
Owner Ryan Grove |
Target Release: 3.5.0 Priority: P2 (high) |
|---|---|---|---|
| Summary: | Router state not properly restored in Mobile Safari | ||
| Description: | Router state is not properly restored on Mobile Safari when visiting an external link and coming back to the page. Desktop Safari behaves correctly. The quick hacky solution is to reload on the |
||
| Type: | defect | Observed in Version: | 3.5.0pr1 |
| Component: | None | Severity: | S2 (high) |
| Assigned To: | Ryan Grove | Target Release: | 3.5.0 |
| Location: | Library Code | Priority: | P2 (high) |
| Tags: | Relates To: | ||
| Browsers: | iOS 5 | ||
| URL: | http://produce.yahoo.com/murphys/router.html | ||
| Test Information: | Click "External" link |
||
Change History
|
Posted: 12/14/11
|
|
Posted: 12/14/11
|
|
Posted: 12/15/11
I've implemented a workaround that seems to fix this as far as I can tell. If you could test it in your own code and verify, I'd be much obliged: https://github.com/rgrove/yui3/commit/7dfbbf759aae9856f6ecc64a3f6e886385843627 |
|
Posted: 12/15/11
That was quick! Thanks, I will try it out. |
|
Posted: 01/19/12
The approach to solving this has changed, instead of doing fancy stuff to maintain a reference to the `location` object outside of the scope in which it is used, a new method, `Y.getLocation()` has been added to yui-core. All places in the source which were maintaining these references have been changed to not do so. |
|
Posted: 01/19/12
|
|
Posted: 01/19/12
|
|
Posted: 05/10/12
checkedin -> closed |
Looks like this nasty Safari bug is rearing its ugly head again: https://bugs.webkit.org/show_bug.cgi?id=34679
Y.HistoryHash contains a workaround for this (it subscribes to the 'unload' event to force Safari not to use the page cache), but iOS 5 continues to use the page cache in spite of the unload event (which is totally not cool).
I'm investigating other workarounds now.