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

Issue 2189063002: [arc-intents] Properly qualify API-generated page transitions. (Closed)

Created:
4 years, 4 months ago by Ben Kwa
Modified:
3 years, 6 months ago
CC:
chromium-reviews, kalyank, sadrul, Yusuke Sato, Sergey Poromov
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[arc-intents] Properly qualify API-generated page transitions. Unqualified page transitions are treated as link-clicks, which can get sent to android via the arc intent mechanism. This can result in infinite-looping if the URL that is being opened originated from android in the first place. Marking this as an API-generated page transition ensures that the arc intent code does not forward this URL back to android. BUG=632360 Committed: https://crrev.com/b7af62bdaac59bc72d4a87581243a2ce634d0918 Cr-Commit-Position: refs/heads/master@{#408775}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Rename ShellDelegate::OpenUrl. #

Patch Set 3 : Fix new occurance of an OpenUrl call. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -15 lines) Patch
M ash/common/shell_delegate.h View 1 1 chunk +1 line, -1 line 0 comments Download
M ash/mus/shell_delegate_mus.h View 1 1 chunk +1 line, -1 line 0 comments Download
M ash/mus/shell_delegate_mus.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ash/shell/shell_delegate_impl.h View 1 1 chunk +1 line, -1 line 0 comments Download
M ash/shell/shell_delegate_impl.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ash/sysui/shell_delegate_mus.h View 1 1 chunk +1 line, -1 line 0 comments Download
M ash/sysui/shell_delegate_mus.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ash/test/test_shell_delegate.h View 1 1 chunk +1 line, -1 line 0 comments Download
M ash/test/test_shell_delegate.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/arc/arc_print_service.cc View 1 2 1 chunk +1 line, -1 line 1 comment Download
M chrome/browser/ui/ash/chrome_shell_delegate.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.cc View 1 2 chunks +7 lines, -3 lines 0 comments Download
M components/arc/intent_helper/arc_intent_helper_bridge.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 23 (14 generated)
Ben Kwa
4 years, 4 months ago (2016-07-28 15:41:31 UTC) #2
Ben Kwa
Per oshima@, rename "OpenUrl" to "OpenUrlFromArc" to avoid accidental misuse. +R lhchavez for ArcIntentHelperBridge.
4 years, 4 months ago (2016-07-29 19:11:30 UTC) #4
Luis Héctor Chávez
components/arc lgtm
4 years, 4 months ago (2016-07-29 19:15:52 UTC) #5
oshima
lgtm https://codereview.chromium.org/2189063002/diff/1/chrome/browser/ui/ash/chrome_shell_delegate.cc File chrome/browser/ui/ash/chrome_shell_delegate.cc (right): https://codereview.chromium.org/2189063002/diff/1/chrome/browser/ui/ash/chrome_shell_delegate.cc#newcode9 chrome/browser/ui/ash/chrome_shell_delegate.cc:9: #include <limits> thanks:)
4 years, 4 months ago (2016-07-29 19:17:19 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2189063002/40001
4 years, 4 months ago (2016-07-29 21:36:32 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-07-29 21:40:39 UTC) #18
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/b7af62bdaac59bc72d4a87581243a2ce634d0918 Cr-Commit-Position: refs/heads/master@{#408775}
4 years, 4 months ago (2016-07-29 21:43:08 UTC) #20
vkuzkokov
https://codereview.chromium.org/2189063002/diff/40001/chrome/browser/chromeos/arc/arc_print_service.cc File chrome/browser/chromeos/arc/arc_print_service.cc (right): https://codereview.chromium.org/2189063002/diff/40001/chrome/browser/chromeos/arc/arc_print_service.cc#newcode51 chrome/browser/chromeos/arc/arc_print_service.cc:51: ash::WmShell::Get()->delegate()->OpenUrlFromArc(gurl); This actually opens a file that's in Chrome's ...
3 years, 6 months ago (2017-06-09 14:00:09 UTC) #22
oshima
3 years, 6 months ago (2017-06-09 16:11:13 UTC) #23
Message was sent while issue was closed.
On 2017/06/09 14:00:09, vkuzkokov wrote:
>
https://codereview.chromium.org/2189063002/diff/40001/chrome/browser/chromeos...
> File chrome/browser/chromeos/arc/arc_print_service.cc (right):
> 
>
https://codereview.chromium.org/2189063002/diff/40001/chrome/browser/chromeos...
> chrome/browser/chromeos/arc/arc_print_service.cc:51:
> ash::WmShell::Get()->delegate()->OpenUrlFromArc(gurl);
> This actually opens a file that's in Chrome's /tmp (which is obviously broken
> after crrev.com/2464333004)
> Is there still a way to do this?

I'd recommend to contact hashimoto@

Powered by Google App Engine
This is Rietveld 408576698