Skip to content

spec a way to determine when an iframe fails to load #125

Open
@wanderview

Description

@wanderview

It currently seems there is no good way to determine if an iframe fails to load due to a network failure. In these cases the frame ends up at a browser-specific "network failure" page. As an extra complication these network pages are considered same-origin in some browsers (blink) and cross-origin in others (gecko).

This leads us to do evil timing things in the wpt tests to try to detect failed loads:

https://dxr.mozilla.org/mozilla-central/source/testing/web-platform/mozilla/tests/service-workers/service-worker/fetch-frame-resource.https.html#34

it would be nice if we could spec an onerror for iframe in these cases. Extra bonus points for solving this problem for window.open() as well.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions