Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Issue 1442463002: Save-Page-As-Complete-HTML: Even better handling of <object> elements. (Closed)

Created:
5 years, 1 month ago by Łukasz Anforowicz
Modified:
5 years ago
CC:
dcheng, blink-reviews, chromium-reviews, darin-cc_chromium.org, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-blink_chromium.org, Randy Smith (Not in Mondays), site-isolation-reviews_chromium.org, yosin_UTC9
Base URL:
https://chromium.googlesource.com/chromium/src.git@objects-fix-for-complete-html
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Save-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... :-/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -33 lines) Patch
M chrome/browser/download/save_page_browsertest.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M chrome/test/data/save_page/frames-objects.htm View 1 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/savable_resources.cc View 1 2 3 4 3 chunks +42 lines, -22 lines 0 comments Download
M third_party/WebKit/Source/web/WebFrame.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 3 2 chunks +6 lines, -7 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 24 (9 generated)
Łukasz Anforowicz
Nasko, can you please take a look?
5 years ago (2015-11-23 23:12:30 UTC) #2
Łukasz Anforowicz
Adding yosin@ and rdsmith@ to CC.
5 years ago (2015-11-23 23:13:25 UTC) #3
nasko
content/ LGTM with a nit. https://codereview.chromium.org/1442463002/diff/20001/content/renderer/savable_resources.cc File content/renderer/savable_resources.cc (right): https://codereview.chromium.org/1442463002/diff/20001/content/renderer/savable_resources.cc#newcode50 content/renderer/savable_resources.cc:50: GURL u = current_doc.completeURL(value); ...
5 years ago (2015-11-23 23:38:19 UTC) #4
Łukasz Anforowicz
Randy, could you please take a look? https://codereview.chromium.org/1442463002/diff/20001/content/renderer/savable_resources.cc File content/renderer/savable_resources.cc (right): https://codereview.chromium.org/1442463002/diff/20001/content/renderer/savable_resources.cc#newcode50 content/renderer/savable_resources.cc:50: GURL u ...
5 years ago (2015-11-24 00:02:06 UTC) #6
yosin_UTC9
non-owner lgtm https://codereview.chromium.org/1442463002/diff/40001/content/renderer/savable_resources.cc File content/renderer/savable_resources.cc (right): https://codereview.chromium.org/1442463002/diff/40001/content/renderer/savable_resources.cc#newcode55 content/renderer/savable_resources.cc:55: bool frameContainsHtmlDoc = false; nit: Can we ...
5 years ago (2015-11-24 01:32:42 UTC) #8
Łukasz Anforowicz
Thank you for reviewing yosin@. Randy, can you please take a look? https://codereview.chromium.org/1442463002/diff/40001/content/renderer/savable_resources.cc File content/renderer/savable_resources.cc ...
5 years ago (2015-11-24 17:57:11 UTC) #9
Randy Smith (Not in Mondays)
chrome/* LGTM.
5 years ago (2015-11-28 00:07:18 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1442463002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1442463002/80001
5 years ago (2015-11-30 14:55:33 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-11-30 16:11:25 UTC) #14
Łukasz Anforowicz
Daniel, can you rubberstamp this CL for third_party/WebKit?
5 years ago (2015-11-30 17:01:42 UTC) #15
Łukasz Anforowicz
Actually adding Daniel this time...
5 years ago (2015-11-30 17:04:55 UTC) #17
dcheng
lgtm
5 years ago (2015-11-30 17:59:02 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1442463002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1442463002/80001
5 years ago (2015-11-30 18:13:48 UTC) #21
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years ago (2015-11-30 18:23:05 UTC) #22
commit-bot: I haz the power
5 years ago (2015-11-30 18:24:28 UTC) #24
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/c5aebc965aa088c133f20b51f62759c723e5797b
Cr-Commit-Position: refs/heads/master@{#362165}

Powered by Google App Engine
This is Rietveld 408576698