Skip to content

Cross origin iframes don't trigger a load event in the parent frame element #6672

Closed

Description

@jdm

This happens because BrowsingContext::frame_element called by Document::dispatch_load can't handle cross-origin parent frames.

Probably requires #5242.

Activity

  1. added
    A-content/dom
    on Jul 20, 2015
  2. jdm commented on Jul 20, 2015

    @jdm
    MemberAuthor
    <iframe src="http://www.joshmatthews.net"></iframe>
    <script>
    document.addEventListener('load', function() { console.log("load") }, true);
    document.getElementsByTagName('iframe')[0].addEventListener('load', function() { console.log("frame load") }, true);
    </script>
  3. Ms2ger commented on Jul 20, 2015

    @Ms2ger
    Contributor

    Technically, this is allowed by the spec:

    This, in conjunction with scripting, can be used to probe the URL space of the local network's HTTP servers. User agents may implement cross-origin access control policies that are stricter than those described above to mitigate this attack, but unfortunately such policies are typically not compatible with existing Web content.

  4. added 2 commits that reference this issue on Jul 20, 2015
    f379b59
    41f9956
  5. added 3 commits that reference this issue on Aug 30, 2015
    55fea27
    bbd4938
    5dea7c0
  6. added 5 commits that reference this issue on Oct 20, 2015
    8d72360
    2f261d3
    636c8b0
    58ee71c
    7a80fca
  7. added a commit that references this issue on Nov 13, 2015
  8. added a commit that references this issue on Nov 17, 2015
    21eb3d3
  9. added a commit that references this issue on Nov 17, 2015
    061a9d6
  10. added a commit that references this issue on Nov 17, 2015
    c5e806f
  11. added a commit that references this issue on Nov 17, 2015
    cdc3275
  12. added a commit that references this issue on Nov 17, 2015
    89d5dbd
  13. added a commit that references this issue on Nov 17, 2015
    2781738
  14. added a commit that references this issue on Nov 17, 2015
    723af30
  15. added a commit that references this issue on Nov 25, 2015
    8b00c15
  16. added a commit that references this issue on Nov 30, 2015
    6aee242
  17. added a commit that references this issue on Nov 30, 2015
    c23cbd4
  18. added a commit that references this issue on Nov 30, 2015
    51c19fd
  19. added a commit that references this issue on Dec 2, 2015
    7b570fa
  20. added 3 commits that reference this issue on Dec 30, 2015
    b41933d
    81ac4da
    b9b905b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-content/dom

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions