| Summary: | iframe fires onload instead of onerror | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Gavin Lambert <gavinl> |
| Component: | Frames | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW --- | ||
| Severity: | Normal | CC: | karlcow |
| Priority: | P2 | Keywords: | NeedsReduction |
| Version: | 528+ (Nightly build) | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
|
Description
Gavin Lambert
2014-10-06 15:59:39 PDT
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.) This needs a testcase and a test across browsers. |