[Webkit-unassigned] [Bug 137468] iframe fires onload instead of onerror

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Oct 7 15:18:16 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=137468





--- Comment #1 from Gavin Lambert <gavinl at compacsort.com>  2014-10-07 15:18:13 PST ---
FWIW, in the interim I've worked around this by running an XHR HEAD request first, and setting the iframe src only if that succeeds.  This is an unsatisfactory workaround as it requires three server hits instead of just one (as the XHR sends OPTIONS+HEAD, and then the iframe sends GET), and it requires that the target page be CORS-enabled, which should not be required for this scenario.  (There's also the possibility that the HEAD succeeds but then the GET fails, if the server happens to die in the interim, but this seems unlikely enough that it can probably be ignored fairly safely.)

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list