Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Limitations in input field value size in form post? Not OK to post to iFrame? (Safari on OSX10, browser crashes)

I am doing a form post where a hidden input field's value is set to a base64 image from a HTML canvas. This can be quite large.


In most browsers (including Safari on Windows) this goes through fine but the performance is quite slow in Safari on OSX. And worst of all, if the image approaches 800x600 and has decent variation (large size) the browser becomes so slow it becomes unresponsive and actually crashes.


Another thing I am doing is setting the target of this form POST to an iframe on the page, so the page itself does not unload (I handle the loading indication in the UI myself).


With the post to the iFrame (on a different domain) I get errors in the Developer console, but apparently these are not a problem as other 3rd party services from Google and Facebook also have this issue. (see http://stackoverflow.com/questions/3010170/unsafe-javascript-attempt-to-access-f rame-with-url-error-being-continuously). I mention that because maybe it contributes to the slow performance.


Any info on which of these things is causing a crash/performance problem would be greatly appreciated


Thanks!


Chris

MacBook, Mac OS X (10.6.7)

Posted on Jun 27, 2011 12:38 PM

Reply
5 replies

Jun 27, 2011 3:57 PM in response to cbosco

Make sure your system software is up to date. Click your Apple menu / Software Update...


If you post a crash report, we might be a better idea of what's causing Safari to crash.


If Safari has just crashed, press the Report button on the CrashReporter dialog box to view the crash information.

Copy/paste the entire contents of the Crash Reporter window into your reply. If the crash report dialog does not appear or the crash is hard to reproduce, crash logs can be retrieved from the ~/Library/Logs/CrashReporter> folder.

Jun 28, 2011 8:08 AM in response to Carolyn Samit

Hi Carolyn,


Nothing seems to get saved into the crash reporter folder you've mentioned but I have created an example where you can see the issue:


http://chrisbosco.com/proto/safari/


After clicking the "Post canvas data" you should get an alert that says "responded"


This works only for the small image in Safari mac. Large image never responds and endlessly waits.

(change image by clicking "Change image")


Since this is a fairly technical question I cross-posted in Stack Overflow:

http://stackoverflow.com/questions/6508650/when-posting-a-large-amount-of-data-f rom-html-canvas-to-an-iframe-target-safar


Thanks again

Limitations in input field value size in form post? Not OK to post to iFrame? (Safari on OSX10, browser crashes)

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.