SeaUrchinBot / closure-library

Automatically exported from code.google.com/p/closure-library
0 stars 0 forks source link

Safari: IframeIo resubmit form warns about resubmitting form when navigating back #467

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
See also:
https://bugs.webkit.org/show_bug.cgi?id=82658

Safari has a regression concerning iframes submitting forms in combination with 
going back in history. Make an iframeio request on a page, navigate to a 
different page, and go back to the page with iframeio request in there. Due to 
a safari/webkit cache bug in iframe names, the browser will emit a warning 
asking to resumbit the form.

The problem occurs with Safari 5.1.7, both Windows and Mac OSX are affected.

Suggested fix:
The problem seems to be related to the iframe name. I suggest to randomize 
goog.net.IframeIo.FRAME_NAME_PREFIX by adding:
Math.floor(Math.random() * 2147483648).toString(36)

This randomization is the same as being done for goog.UID_PROPERTY_

Original issue reported on code.google.com by jo...@transip.nl on 12 May 2012 at 7:14

GoogleCodeExporter commented 9 years ago
I forgot to mention that I applied this fix to my working copy of closure and 
that this is a working fix :)

Original comment by jo...@transip.nl on 12 May 2012 at 7:18

GoogleCodeExporter commented 9 years ago
Bug report got closed and new bug report was filed here:"
https://bugs.webkit.org/show_bug.cgi?id=85969

Original comment by jo...@transip.nl on 24 Jun 2012 at 9:56