<p>As @RitterKnight points out, it does seem to be an issue with Garnish. I've managed to narrow it down to garnish-0.1.js:1020, which is to do with resize detection as adapted from <a href="http://www.backalleycoder.com/2013/03/18/cross-browser-event-based-element-resize-detection/" rel="nofollow">http://www.backalleycoder.com/2013/03/18/cross-browser-event-based-element-resize-detection/</a></p>

<p>As one of the <a href="http://fyre.it/tRMZHE.4" rel="nofollow">comments</a> points out, changing the following line fixes the issue:</p>

<pre><code>var obj = elem.__resizeTrigger__ = document.createElement('object');
to
var obj = elem.__resizeTrigger__ = document.createElement('iframe');
</code></pre>

<p>I'm not sure if this has any adverse effects on anything else, so would be keen to see if this is something already tested by the P&amp;T team.</p>

<p><strong>EDIT:</strong> This has now been fixed in <a href="http://buildwithcraft.com/updates#build2691" rel="nofollow">Craft 2.4.2691</a>.</p>

CC BY-SA 3.0
2015-09-03T00:12:55.337Z
2015-09-04T00:13:02.270Z
2015-09-04T00:13:02.270Z
crawf
<p>I'm having issues accessing the Control Panel using an iPad on iOS 7.0.4. When loading the Dashboard and any subsequent pages, 6 popup alerts will appear with the message:</p>

<pre><code>Safari cannot open this page because the address is invalid
</code></pre>

<p>After dismissing this alert 6 times, it'll disappear until you visit another CP page. I can confirm that there are no issues using iOS 8.1.2. I've tested on numerous sites without any plugins installed, along with a brand new <a href="https://demo.buildwithcraft.com/" rel="nofollow noreferrer">Craft Demo site</a>, and the issue persists.</p>

<p><a href="https://i.sstatic.net/1Acg2.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/1Acg2.png" alt="enter image description here"></a></p>

<p>Any ideas what could be causing this?</p>

CC BY-SA 3.0
2015-09-02T15:38:17.703Z
Tried googling without much luck, but what version of Safari is bundled with iOS 7.0.4?
Brad Bell
CC BY-SA 3.0
2015-09-02T17:05:53.997Z
Just busted out the Xcode simulator for 7.1, same issue.  ``User-Agent Mozilla/5.0 (iPad; CPU OS 7_1 like Mac OS X) AppleWebKit/537.51.2 (KHTML, like Gecko) Version/7.0 Mobile/11D167 Safari/9537.53``
RitterKnight
CC BY-SA 3.0
2015-09-02T17:15:17.527Z
On other pages, the dialog doesn't come up as often; e.g. on settings, it only comes up twice.  I think something in garnish is trying to call about:blank which Safari isn't happy about....
RitterKnight
CC BY-SA 3.0
2015-09-04T18:29:55.403Z
As noted in [your answer](http://craftcms.stackexchange.com/a/11301/45), this was a bug (which has since been resolved). Closing as a "bug report".
Lindsey D
<control-panel>
Issues accessing Control Panel with iPad on iOS 7
# Issues accessing Control Panel with iPad on iOS 7

(Asked by: username_0 on 2015-09-02)

I'm having issues accessing the Control Panel using an iPad on iOS 7.0.4. When loading the Dashboard and any subsequent pages, 6 popup alerts will appear with the message:
Safari cannot open this page because the address is invalid

After dismissing this alert 6 times, it'll disappear until you visit another CP page. I can confirm that there are no issues using iOS 8.1.2. I've tested on numerous sites without any plugins installed, along with a brand new Craft Demo site, and the issue persists.

Any ideas what could be causing this?

**Tags:** control-panel

> **Comments:**
> **username_1**: Tried googling without much luck, but what version of Safari is bundled with iOS 7.0.4?  
> **username_2**: Just busted out the Xcode simulator for 7.1, same issue.  ``User-Agent Mozilla/5.0 (iPad; CPU OS 7_1 like Mac OS X) AppleWebKit/537.51.2 (KHTML, like Gecko) Version/7.0 Mobile/11D167 Safari/9537.53``  
> **username_2**: On other pages, the dialog doesn't come up as often; e.g. on settings, it only comes up twice.  I think something in garnish is trying to call about:blank which Safari isn't happy about....  
> **username_3**: As noted in [your answer](http://craftcms.stackexchange.com/a/11301/45), this was a bug (which has since been resolved). Closing as a "bug report".  

---

## 1 answers

### Answer by username_0 on 2015-09-03. Score: 1

As @username_2 points out, it does seem to be an issue with Garnish. I've managed to narrow it down to garnish-0.1.js:1020, which is to do with resize detection as adapted from http://www.backalleycoder.com/2013/03/18/cross-browser-event-based-element-resize-detection/
As one of the comments points out, changing the following line fixes the issue:
var obj = elem.__resizeTrigger__ = document.createElement('object');
to
var obj = elem.__resizeTrigger__ = document.createElement('iframe');

I'm not sure if this has any adverse effects on anything else, so would be keen to see if this is something already tested by the P&T team.
EDIT: This has now been fixed in Craft 2.4.2691.


---

