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

Issue 615433002: Add a resource throttle for sub frame unless scheme of uri is acceptable (Closed)

Created:
6 years, 2 months ago by Jaekyun Seok (inactive)
Modified:
6 years, 2 months ago
CC:
chromium-reviews, klobag.chromium
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add a resource throttle for sub frame unless scheme of uri is acceptable For now, a resource throttle is added only for main frame. But showing a dedicated app or an intent picker even for sub frame is better than showing an error page unless scheme of uri is acceptable on chrome on android. BUG=410524

Patch Set 1 #

Patch Set 2 : Fix typo #

Total comments: 4

Patch Set 3 : Check if the url has a downloadable scheme #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -1 line) Patch
M chrome/android/java/src/org/chromium/chrome/browser/UrlUtilities.java View 1 2 3 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/android/url_utilities.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/android/url_utilities.cc View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc View 1 2 2 chunks +10 lines, -1 line 0 comments Download

Messages

Total messages: 11 (2 generated)
Jaekyun Seok (inactive)
Please review my change. Thanks,
6 years, 2 months ago (2014-09-29 06:12:35 UTC) #2
David Trainor- moved to gerrit
The Android plumbing looks fine. Adding davidben@ who looks like he knows chrome_resource_dispatcher_host_delegate.cc. I'm not ...
6 years, 2 months ago (2014-09-29 18:26:45 UTC) #4
David Trainor- moved to gerrit
lgtm for android plumbing.
6 years, 2 months ago (2014-09-29 21:03:23 UTC) #5
davidben
That would be how you'd intercept a subframe navigation in today's setup, though are those ...
6 years, 2 months ago (2014-09-29 21:40:44 UTC) #6
davidben
On 2014/09/29 21:40:44, David Benjamin wrote: > That would be how you'd intercept a subframe ...
6 years, 2 months ago (2014-09-29 21:42:06 UTC) #7
Jaekyun Seok (inactive)
On 2014/09/29 21:40:44, David Benjamin wrote: > What happens right now if an intent dialog ...
6 years, 2 months ago (2014-09-29 22:16:13 UTC) #8
Jaekyun Seok (inactive)
https://chromiumcodereview.appspot.com/615433002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/UrlUtilities.java File chrome/android/java/src/org/chromium/chrome/browser/UrlUtilities.java (right): https://chromiumcodereview.appspot.com/615433002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/UrlUtilities.java#newcode26 chrome/android/java/src/org/chromium/chrome/browser/UrlUtilities.java:26: "about", "data", "file", "http", "https", "inline", "javascript"); I don't ...
6 years, 2 months ago (2014-09-29 22:17:19 UTC) #9
Jaekyun Seok (inactive)
PTAL. I modified codes to check if the url has a downloadable scheme as well ...
6 years, 2 months ago (2014-09-29 22:37:06 UTC) #10
Jaekyun Seok (inactive)
6 years, 2 months ago (2014-09-30 03:51:50 UTC) #11
According to Grace, url override only works for the top level url.

So I will abandon this patch.

Powered by Google App Engine
This is Rietveld 408576698