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

Issue 1310873003: Implement PlatformUtil::OpenExternal() so that mailto: can work (Closed)

Created:
5 years, 3 months ago by qinmin
Modified:
5 years, 3 months ago
Reviewers:
Ted C, sky, PhistucK
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement PlatformUtil::OpenExternal() so that mailto: can work Clicking a mailto link inside an iframe doesn't work on android. This is because PlatformUtil::OpenExternal() is not implemented. This CL adds the implementation for this feature. BUG=523491 Committed: https://crrev.com/d4599b4ab7e5f934c434bb7ead0363c765731261 Cr-Commit-Position: refs/heads/master@{#347774}

Patch Set 1 : #

Total comments: 8

Patch Set 2 : addressing tedchoc's comments #

Total comments: 1

Patch Set 3 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -1 line) Patch
A chrome/android/java/src/org/chromium/chrome/browser/PlatformUtil.java View 1 1 chunk +34 lines, -0 lines 0 comments Download
M chrome/browser/android/chrome_jni_registrar.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/platform_util.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/platform_util_android.cc View 1 2 3 chunks +14 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
qinmin
PTAL +tedchoc for android/ +sky for chrome/
5 years, 3 months ago (2015-09-04 17:10:45 UTC) #3
Ted C
https://codereview.chromium.org/1310873003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/PlatformUtil.java File chrome/android/java/src/org/chromium/chrome/browser/PlatformUtil.java (right): https://codereview.chromium.org/1310873003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/PlatformUtil.java#newcode23 chrome/android/java/src/org/chromium/chrome/browser/PlatformUtil.java:23: intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); should we add: intent.addCategory(Intent.CATEGORY_BROWSABLE); I don't know if ...
5 years, 3 months ago (2015-09-04 17:32:26 UTC) #4
qinmin
https://codereview.chromium.org/1310873003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/PlatformUtil.java File chrome/android/java/src/org/chromium/chrome/browser/PlatformUtil.java (right): https://codereview.chromium.org/1310873003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/PlatformUtil.java#newcode23 chrome/android/java/src/org/chromium/chrome/browser/PlatformUtil.java:23: intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); On 2015/09/04 17:32:26, Ted C wrote: > should ...
5 years, 3 months ago (2015-09-04 17:51:38 UTC) #5
Ted C
lgtm
5 years, 3 months ago (2015-09-04 17:54:28 UTC) #6
sky
LGTM https://codereview.chromium.org/1310873003/diff/40001/chrome/browser/platform_util_android.cc File chrome/browser/platform_util_android.cc (right): https://codereview.chromium.org/1310873003/diff/40001/chrome/browser/platform_util_android.cc#newcode64 chrome/browser/platform_util_android.cc:64: nit: only one newline here.
5 years, 3 months ago (2015-09-08 15:09:15 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1310873003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1310873003/60001
5 years, 3 months ago (2015-09-08 18:50:06 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:60001)
5 years, 3 months ago (2015-09-08 20:06:26 UTC) #11
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/d4599b4ab7e5f934c434bb7ead0363c765731261 Cr-Commit-Position: refs/heads/master@{#347774}
5 years, 3 months ago (2015-09-08 20:07:07 UTC) #12
PhistucK
5 years, 3 months ago (2015-09-10 12:46:47 UTC) #14
Message was sent while issue was closed.
Sorry - is this allowing more than just mailto:?
I do not see anything specific to mailto: here...

I think Chrome for Android used to support launching external protocol handlers
within iFrames (perhaps at all?), but it was dropped in favor of a
funny-syntax-URI that gives a bit more power (launches a protocol handler if it
is installed, goes to the store if it is not installed and it also supports an
option to pass parameters), but it is not supported in iFrames or something
similar for security (or user experience) reasons.

Powered by Google App Engine
This is Rietveld 408576698