DescriptionSave-Page-As-Complete-HTML: Even better handling of <object> elements.
crrev.com/1416113012 improved handling of <object> elements by
save-page-as-complete-html, but always treated them as resources.
The current CL tries to report them as subframes if they contain
a html document.
This CL also adjusts WebFrame::fromFrameOwnerElement and
WebLocalFrameImpl::fromFrameOwnerElement so that they truly work with
instances of HTMLFrameOwnerElement (as the name of these methods
suggests), rather than only with instances of HTMLFrameElementBase (a
subclass of HTMLFrameOwnerElement that only covers <frame> and <iframe>
elements and not <object> element or other frame-owning elements).
FWIW, I tracked down the comment in Web(Local)FrameImpl.cpp that questions
why we only check for <iframe> and <frame> to the following commit:
abarth@webkit.org fd5b347 2012-09-28 18:31:12 :
// FIXME: Why do we check specifically for <iframe> and <frame> here?
// Why can't we get the WebFrameImpl from an <object> element,
// for example.
BUG=553478
Committed: https://crrev.com/c5aebc965aa088c133f20b51f62759c723e5797b
Cr-Commit-Position: refs/heads/master@{#362165}
Patch Set 1 #Patch Set 2 : Rebasing... #
Total comments: 2
Patch Set 3 : s/\<u\>/element_url/g in savable_resources.cc #
Total comments: 4
Patch Set 4 : Addressed code review feedback from yosin@. #Patch Set 5 : Fixing a silly build issue... :-/ #
Depends on Patchset: Messages
Total messages: 24 (9 generated)
|