Skip to main content

Bug Tracker

Side navigation

#15172 closed bug (notabug)

Opened June 30, 2014 09:06AM UTC

Closed June 30, 2014 01:24PM UTC

DOMExcetion that occurs in $.fn.contents when elem is iframe

Reported by: unreal666 Owned by:
Priority: undecided Milestone: 1.next/2.next
Component: traversing Version:
Keywords: Cc:
Blocked by: Blocking:
Description

When $('iframe').contents(), DOMException exception occurs with SecurityError name, because elem.contentDocument and elem.contentWindow.document denied for iframe.

Attachments (0)
Change History (2)

Changed June 30, 2014 10:26AM UTC by unreal666 comment:1

_comment0: correction - if iframe on a different domain.1404126286562179
_comment1: correction - the exception occurs only if iframe yet not loaded..1404127008378671
_comment2: correction - the exception occurs only if iframe on different domain.1404127455438536

correction - the exception occurs only if iframe on different domain or protocol.

Changed June 30, 2014 01:24PM UTC by dmethvin comment:2

resolution: → notabug
status: newclosed

See the pull request, we don't want to swallow this exception or change the behavior for same-origin iframes.