Bug 17359 - iPod/iPhone freezes on onorientationchange event
Summary: iPod/iPhone freezes on onorientationchange event
Status: CLOSED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: 312.x
Hardware: Other OS X 10.5
: P2 Major
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2008-02-14 02:32 PST by Lon Boonen
Modified: 2008-11-27 01:21 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lon Boonen 2008-02-14 02:32:02 PST
Hi,

sorry for the bad tags above...
I'm working on a new iPod (bought feb 12 2008), don't know what Safari version is on there, don't know where to look.

My bug report is as follows:
put a JS line in your page saying: window.onorientationchange = alert;
load that page on your iPod (and I guess iPhone as well) and change orientation a few times without dismissing the alert: Safari/iPod freezes!

I made a test page, code pasted here:

<html>
  <head>
    <title>onorientationchange bug</title>
    <script type="application/x-javascript">
      window.onorientationchange = alert;
    </script>
  </head>
  <body>
    preparation: change the orientation of this page a few times without dismissing the alert box<br/>
    result: my iPod hangs<br/>
    workaround: press the home button, then press the on/off switch twice
  </body>
</html>


I hope this helps make Safari even better!

groetjes Lon
Comment 1 Mark Rowe (bdash) 2008-02-14 03:22:11 PST
Bugs related to Safari on iPhone or iPod should be filed at http://bugreport.apple.com/.
Comment 2 Robert Blaut 2008-02-14 03:51:27 PST
(In reply to comment #1)
> Bugs related to Safari on iPhone or iPod should be filed at
> http://bugreport.apple.com/.
> 

Mark, is it mean this bug report is INVALID?
Comment 3 Mark Rowe (bdash) 2008-02-15 13:48:34 PST
Yes, this bug report should be refiled at http://bugreport.apple.com/.
Comment 4 Lon Boonen 2008-02-25 13:44:23 PST
(In reply to comment #3)
> Yes, this bug report should be refiled at http://bugreport.apple.com/.

I tried filing it there: in IE and Safari I get "Please populate the following required field(s): Configuration.". But I populated all fields I could find!
Even the file-uploads. I tried it several times.

This is kind of discouraging...
I'm leaving this bug here. I'm done.
Comment 5 Alexey Proskuryakov 2008-02-26 09:25:40 PST
<rdar://problem/5765792>
Comment 6 Alexey Proskuryakov 2008-02-26 09:30:37 PST
If I remember correctly, one has to upload Mac OS X system profiler report for crash/hang bugs. This doesn't seem to make sense for iPhone issues. Sorry about this experience, I have moved the bug now.

Marking as INVALID, as this will be tracked by Apple internally.

<rdar://problem/5765792>
Comment 7 Alexey Proskuryakov 2008-11-21 14:21:11 PST
Could you please verify that this problem no longer occurs with iPhone 2.2?
Comment 8 Lon Boonen 2008-11-27 01:00:07 PST
Bug is fixed.
Great job!

It looks as if Safari processes no events during an alert-box, which is fine.
The orientation change event will fire after the alert box is dismissed.

Excellent.
All in all Webkit has improved considerably during the last few months.
And maybe it's just me, but it hasn't crashed once since OS2.2. Which is something I couldn't say before 2.2.

Thanks and groetjes.