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

Issue 1458703004: Fixes document type detection on iOS 9. (Closed)

Created:
5 years, 1 month ago by stkhapugin
Modified:
5 years ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixes document type detection on iOS 9. On iOS 9, evaluating '' + document always results in [object HTMLDocument], even for PDFs. This introduces another way of checking document type on iOS 9. Unfortunately, it doesn't work on iOS 8, so the old implementation needs to stay too. BUG=549604 Committed: https://crrev.com/704def3b29d00bf39aca6553a079152171af4ad9 Cr-Commit-Position: refs/heads/master@{#361095}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed comments 1 #

Total comments: 8

Patch Set 3 : Comments 2 #

Patch Set 4 : git cl w #

Total comments: 2

Patch Set 5 : s/mimeType/MIMEType #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -18 lines) Patch
M ios/web/web_state/ui/crw_ui_web_view_web_controller.mm View 1 2 3 2 chunks +20 lines, -7 lines 0 comments Download
M ios/web/web_state/ui/crw_web_controller.mm View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
M ios/web/web_state/ui/crw_web_controller+protected.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M ios/web/web_state/ui/crw_wk_web_view_web_controller.mm View 1 2 3 4 1 chunk +2 lines, -11 lines 0 comments Download

Messages

Total messages: 19 (6 generated)
stkhapugin
PTAL
5 years, 1 month ago (2015-11-18 15:38:45 UTC) #2
Eugene But (OOO till 7-30)
https://codereview.chromium.org/1458703004/diff/1/ios/web/web_state/ui/crw_ui_web_view_web_controller.mm File ios/web/web_state/ui/crw_ui_web_view_web_controller.mm (right): https://codereview.chromium.org/1458703004/diff/1/ios/web/web_state/ui/crw_ui_web_view_web_controller.mm#newcode554 ios/web/web_state/ui/crw_ui_web_view_web_controller.mm:554: if (base::ios::IsRunningOnIOS9OrLater()) { Please explain in the comments why ...
5 years, 1 month ago (2015-11-18 16:30:57 UTC) #3
stkhapugin
PTAL https://codereview.chromium.org/1458703004/diff/1/ios/web/web_state/ui/crw_ui_web_view_web_controller.mm File ios/web/web_state/ui/crw_ui_web_view_web_controller.mm (right): https://codereview.chromium.org/1458703004/diff/1/ios/web/web_state/ui/crw_ui_web_view_web_controller.mm#newcode554 ios/web/web_state/ui/crw_ui_web_view_web_controller.mm:554: if (base::ios::IsRunningOnIOS9OrLater()) { On 2015/11/18 16:30:57, eugenebut wrote: ...
5 years, 1 month ago (2015-11-19 16:16:35 UTC) #4
Eugene But (OOO till 7-30)
lgtm with changes https://codereview.chromium.org/1458703004/diff/20001/ios/web/web_state/ui/crw_ui_web_view_web_controller.mm File ios/web/web_state/ui/crw_ui_web_view_web_controller.mm (right): https://codereview.chromium.org/1458703004/diff/20001/ios/web/web_state/ui/crw_ui_web_view_web_controller.mm#newcode559 ios/web/web_state/ui/crw_ui_web_view_web_controller.mm:559: NSString* documentType = [_uiWebView s/documentType/MIMEType https://codereview.chromium.org/1458703004/diff/20001/ios/web/web_state/ui/crw_web_controller+protected.h ...
5 years, 1 month ago (2015-11-19 16:29:01 UTC) #5
stkhapugin
Addressed comments. Thank you! https://codereview.chromium.org/1458703004/diff/20001/ios/web/web_state/ui/crw_ui_web_view_web_controller.mm File ios/web/web_state/ui/crw_ui_web_view_web_controller.mm (right): https://codereview.chromium.org/1458703004/diff/20001/ios/web/web_state/ui/crw_ui_web_view_web_controller.mm#newcode559 ios/web/web_state/ui/crw_ui_web_view_web_controller.mm:559: NSString* documentType = [_uiWebView On ...
5 years, 1 month ago (2015-11-20 10:50:44 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1458703004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1458703004/40001
5 years, 1 month ago (2015-11-20 10:51:02 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/97193) ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 1 month ago (2015-11-20 10:52:52 UTC) #11
stkhapugin
Oops, didn't sync for weeks. PTAL :)
5 years, 1 month ago (2015-11-20 17:01:04 UTC) #12
Eugene But (OOO till 7-30)
still lgtm https://codereview.chromium.org/1458703004/diff/60001/ios/web/web_state/ui/crw_wk_web_view_web_controller.mm File ios/web/web_state/ui/crw_wk_web_view_web_controller.mm (right): https://codereview.chromium.org/1458703004/diff/60001/ios/web/web_state/ui/crw_wk_web_view_web_controller.mm#newcode512 ios/web/web_state/ui/crw_wk_web_view_web_controller.mm:512: std::string mimeType = self.webState->GetContentsMimeType(); Optional NIT: Could ...
5 years, 1 month ago (2015-11-20 18:13:49 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1458703004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1458703004/80001
5 years ago (2015-11-23 13:35:35 UTC) #16
stkhapugin
Thanks Eugene! I corrected MIMEType. Checking CQ. https://codereview.chromium.org/1458703004/diff/60001/ios/web/web_state/ui/crw_wk_web_view_web_controller.mm File ios/web/web_state/ui/crw_wk_web_view_web_controller.mm (right): https://codereview.chromium.org/1458703004/diff/60001/ios/web/web_state/ui/crw_wk_web_view_web_controller.mm#newcode512 ios/web/web_state/ui/crw_wk_web_view_web_controller.mm:512: std::string mimeType ...
5 years ago (2015-11-23 13:35:49 UTC) #17
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years ago (2015-11-23 13:49:43 UTC) #18
commit-bot: I haz the power
5 years ago (2015-11-23 13:50:46 UTC) #19
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/704def3b29d00bf39aca6553a079152171af4ad9
Cr-Commit-Position: refs/heads/master@{#361095}

Powered by Google App Engine
This is Rietveld 408576698