DescriptionFix security checks when navigating remote frames to javascript: URLs.
When navigating a frame by setting an iframe element's src attribute,
HTMLFrameElementBase::isURLAllowed has a security check for
javascript: URLs, which wasn't getting called for remote frames. It
first referenced the contentDocument(), and only proceeded to do the
security check on that document's frame if the document is not null.
With a remote frame, there will be no Document, so this should
directly access the contentFrame() and use it for the security check.
BUG=588096, 582201
Committed: https://crrev.com/13de353d05728e9560672dd751402597efe3e6b8
Cr-Commit-Position: refs/heads/master@{#377040}
Patch Set 1 #Patch Set 2 : #Patch Set 3 : Fix check #
Total comments: 2
Patch Set 4 : Pass v8::Isolate directly #
Dependent Patchsets: Messages
Total messages: 14 (6 generated)
|