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

Issue 802818 link

Starred by 4 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: 2018-08-01
OS: Android
Pri: 3
Type: Bug

Blocked on:
issue 747428



Sign in to add a comment

Avoid SafetyNet when reloading tab during startup

Project Member Reported by dskiba@chromium.org, Jan 16 2018

Issue description

Usually when Chrome starts on Android it reloads previously active tab. During reloading it checks URLs via SafetyNet, and that takes ~400ms on average for the first check (see the sheet below). Half of that renderer is idling, waiting for CommitNavigation.

Can we bypass SafetyNet in this specific case - when previously loaded tab is reloaded during startup?

I did a quick test, and hacked SafeBrowsingApiHandlerBridge::Core::CheckApiIsSupported() to always return false. That improved "Startup to MeaningfulPaint" metric by ~200ms (6%), see the data here: https://docs.google.com/spreadsheets/d/1hboQEfw6izXQRo9gz_JloQdDxEGHkFwccCcbtJPaK5s/edit?usp=sharing


 
master.html.gz
1.4 MB Download
master_fmp.png
93.1 KB View Download
nosafetynet_fmp.png
95.7 KB View Download
nosafetynet.html.gz
1.5 MB Download

Comment 1 by dskiba@chromium.org, Jan 16 2018

Cc: mariakho...@chromium.org csharrison@chromium.org
Status: Available (was: Untriaged)
Cc: vakh@chromium.org
My fear is that one of the URLs will become malicious or otherwise on some Safe Browsing list and we let the user navigate to a malicious site.

I think if we did it, it would be via some (explicit or implicit) cache to ensure we haven't let too much time pass since the check for that site.

Thankfully, I believe Safe Browsing team is working on a local cache to avoid SafetyNet lookups. Varun, can you confirm?

Comment 3 by dskiba@chromium.org, Jan 18 2018

I agree, local cache would be much more appropriate here. Varun, what's the status of it?

Comment 4 by vakh@chromium.org, Jan 18 2018

Re #c2, local cache is on our roadmap but isn't being worked on actively at the moment. It is planned for later in 2018.

Comment 5 by dskiba@chromium.org, Jan 18 2018

NextAction: 2018-08-01
NextAction: check the status of safe browsing' local cache feature.

Comment 6 by vakh@chromium.org, Jan 18 2018

Here's the issue for that: https://bugs.chromium.org/p/chromium/issues/detail?id=747428

Comment 7 by dskiba@chromium.org, Jan 18 2018

Blockedon: 747428

Comment 8 by vakh@chromium.org, Jan 19 2018

Labels: SafeBrowsing-Triaged
Owner: vakh@chromium.org
Status: Assigned (was: Available)
Related: crbug.com/817909
The NextAction date has arrived: 2018-08-01

Sign in to add a comment