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

Issue 521573002: Support for browser aliases in DevTools. (Closed)

Created:
6 years, 3 months ago by SeRya
Modified:
6 years, 3 months ago
Reviewers:
dgozman, pfeldman
CC:
chromium-reviews, vsevik, yurys, paulirish+reviews_chromium.org, devtools-reviews_chromium.org, aandrey+blink_chromium.org, pfeldman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Support for browser aliases in DevTools. This is convenience change that allow remote target to have duplicating IDs. This situation happen in devtool debugging environment while same browser becomes available by several communication means. In chrome://inspect it appears as 2 different browsers. When user inspect this target it hard to predict which communication channel is used. This change gives different internal IDs to targets of internal representations of remote browsers. If user inspects 2 aliases of the same target she may be sure that different communication channels are used. BUG=383418

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -7 lines) Patch
M chrome/browser/devtools/device/devtools_android_bridge.h View 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/devtools/device/devtools_android_bridge.cc View 6 chunks +11 lines, -7 lines 1 comment Download

Messages

Total messages: 6 (0 generated)
SeRya
serya@chromium.org changed reviewers: + vsevik@chromium.org
6 years, 3 months ago (2014-08-29 07:04:41 UTC) #1
SeRya
While we don't officially support socket aliases DovTools work just fine with them with this ...
6 years, 3 months ago (2014-08-29 07:04:41 UTC) #2
pfeldman
pfeldman@chromium.org changed reviewers: + dgozman@chromium.org, pfeldman@chromium.org - vsevik@chromium.org
6 years, 3 months ago (2014-08-29 08:01:43 UTC) #3
pfeldman
Lets not do this. It is actually a feature to have unique ids across the ...
6 years, 3 months ago (2014-08-29 08:01:43 UTC) #4
dgozman
On 2014/08/29 08:01:43, pfeldman-OOO-until-Sep-6 wrote: > Lets not do this. It is actually a feature ...
6 years, 3 months ago (2014-08-29 08:15:49 UTC) #5
SeRya
6 years, 3 months ago (2014-09-01 07:57:14 UTC) #6
Message was sent while issue was closed.
On 2014/08/29 08:15:49, dgozman wrote:
> On 2014/08/29 08:01:43, pfeldman-OOO-until-Sep-6 wrote:
> > Lets not do this. It is actually a feature to have unique ids across the
> > channels.
> +1. Having two IDs (and perhaps two instances of DevToolsAgentHost) can mess
all
> the logic which implicitly assumes unique IDs.
> 
> I'm not sure the purpose of this patch is useful. Why should user care about
the
> channel used? We are trying to hide usb vs adb as hard as we can. Duplicate
> browsers in chrome://inspect sounds like a bad UX.

This CL is not about different instances of DevToolsAgentHost. It only affects
IDs stored in DevToolsTargetsUIHandler::targets_ and therefore result of
InspectUI::FindTarget. That IDs are also propagated to Web UI.

Local IDs never leave Debugger side. There is no effect on the protocol and
debuggee side. There is no way DevToolsAgentHost may observe the difference.

So this change may no affect other users of DevTools protocol. But it may affect
any automation that relies on IDs in InspectUI.

Regarding user experience perspective you are right, this patch is only useful
if we failed to hide duplicates. We should not show duplicates to end users but
in development cycle it's useful.

I'm not completely understand what it's wrong with UI-specific IDs not equal to
external target IDs but if concerns are present I'd rather use this patch
locally.

Powered by Google App Engine
This is Rietveld 408576698