New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 762584 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Sep 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Android , Windows , Chrome , Mac
Pri: 3
Type: Task
Team-Security-UX



Sign in to add a comment

MITM interstitial: Unnecessary #if defined(OS_IOS) blocks in SSLErrorHandler

Project Member Reported by est...@chromium.org, Sep 6 2017

Issue description

chrome/browser/ssl/ssl_error_handler.cc contains some `#if defined(OS_IOS)` blocks for the MITM interstitial code. Unless I'm very confused, I don't think we need those since this code isn't used on iOS.
 
Do you mean #if !defined(OS_IOS)?

These are to replace ENABLE_CAPTIVE_PORTAL_INTERSTITIAL. SSLErrorAssistant code was behind ENABLE_CAPTIVE_PORTAL_INTERSTITIAL flag because it only handled captive portals. But now we enable it on all platforms except for IOS since it's doing more than captive portal related things.
Yeah, sorry, I meant !defined. e.g. https://cs.chromium.org/chromium/src/chrome/browser/ssl/ssl_error_handler.cc?q=ssl_error_handler&sq=package:chromium&l=287

I still don't understand why we need those? Isn't that whole file not used on iOS?
I don't see it being specifically excluded for iOS. It's part of the "browser" library. Is that not used in iOS builds? (I don't know much about iOS builds)

If so, yes we can get rid of them.
Cc: eugene...@chromium.org
I might be totally confused but I thought nothing in chrome/browser is used on iOS because it all has //content dependencies, which aren't allowed on iOS. +eugenebut to confirm
iOS does not use any code from //chrome. iOS uses //ios/chrome.
Cc: -mea...@chromium.org sperigo@chromium.org
Owner: mea...@chromium.org
I'll take this one. I was doing something similar for captive portals too.
Project Member

Comment 7 by bugdroid1@chromium.org, Sep 11 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/ac3e881ccf55479e3acc13ebb8a62eb2cfe17a2c

commit ac3e881ccf55479e3acc13ebb8a62eb2cfe17a2c
Author: Mustafa Acer <meacer@chromium.org>
Date: Mon Sep 11 20:31:01 2017

Remove extra OS_IOS statements from SSL error handling

iOS code doesn't depend on chrome/browser so these checks are not necessary.

Bug:  762584 
Change-Id: If4dd9fa9d08f43e1d76a9d14bc829bc30730d4ab
Reviewed-on: https://chromium-review.googlesource.com/660412
Reviewed-by: Emily Stark <estark@chromium.org>
Commit-Queue: Mustafa Emre Acer <meacer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#501023}
[modify] https://crrev.com/ac3e881ccf55479e3acc13ebb8a62eb2cfe17a2c/chrome/browser/ssl/ssl_browser_tests.cc
[modify] https://crrev.com/ac3e881ccf55479e3acc13ebb8a62eb2cfe17a2c/chrome/browser/ssl/ssl_error_handler.cc
[modify] https://crrev.com/ac3e881ccf55479e3acc13ebb8a62eb2cfe17a2c/chrome/browser/ssl/ssl_error_handler_unittest.cc

Comment 8 by mea...@chromium.org, Sep 11 2017

Status: Fixed (was: Assigned)

Sign in to add a comment