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

Issue 15764004: DevTools: show extension name in console context switcher (Closed)

Created:
7 years, 7 months ago by lushnikov
Modified:
6 years, 3 months ago
CC:
aandrey+blink_chromium.org, abarth-chromium, adamk+blink_chromium.org, alph+blink_chromium.org, apavlov+blink_chromium.org, blink-reviews, caseq+blink_chromium.org, eae+blinkwatch, eustas+blink_chromium.org, haraken, jamesr, Nate Chapin, jsbell+bindings_chromium.org, loislo+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, vsevik+blink_chromium.org, yurys+blink_chromium.org
Visibility:
Public.

Description

DevTools: show extension name in console context switcher The patch does the following: - Add DOMWrapperWorld.isolatedWorldHumanReadableName, which stores the name of extension. - In devtools remote debugging protocol, the executionContext.name in fact stores execution context origin. The patch sets "executionContextDecriptor.name" to store the isolated context human-readable name, and adds "executionContextDescriptor.origin" BUG=160977 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181086

Patch Set 1 #

Total comments: 2

Patch Set 2 : removing v8 api from agent code #

Total comments: 2

Patch Set 3 : rebaseline. #

Total comments: 6

Patch Set 4 : address comments #

Patch Set 5 : off-line consultation with @sergeyv #

Patch Set 6 : do not fetch isolatedHumanReadableName from non-isolated worlds #

Patch Set 7 : correct rebaseline #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -10 lines) Patch
M Source/bindings/core/v8/DOMWrapperWorld.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M Source/bindings/core/v8/DOMWrapperWorld.cpp View 1 2 3 1 chunk +20 lines, -0 lines 0 comments Download
M Source/core/inspector/InspectorRuntimeAgent.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/inspector/InspectorRuntimeAgent.cpp View 1 2 3 4 5 2 chunks +6 lines, -2 lines 0 comments Download
M Source/devtools/front_end/console/ConsoleView.js View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
M Source/devtools/front_end/extensions/ExtensionServer.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/devtools/front_end/sdk/RuntimeModel.js View 1 2 3 4 2 chunks +5 lines, -3 lines 0 comments Download
M Source/devtools/protocol.json View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/WebLocalFrameImpl.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/WebLocalFrameImpl.cpp View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M Source/web/WebRemoteFrameImpl.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/WebRemoteFrameImpl.cpp View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M public/web/WebFrame.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 1 comment Download

Messages

Total messages: 31 (1 generated)
lushnikov
Please have a look
7 years, 7 months ago (2013-05-23 15:35:20 UTC) #1
caseq
Alternatively, we could provide a InspectorClient method to map extension's security origin to a human-readable ...
7 years, 7 months ago (2013-05-23 17:39:38 UTC) #2
yurys
https://codereview.chromium.org/15764004/diff/1/Source/bindings/v8/DOMWrapperWorld.cpp File Source/bindings/v8/DOMWrapperWorld.cpp (right): https://codereview.chromium.org/15764004/diff/1/Source/bindings/v8/DOMWrapperWorld.cpp#newcode210 Source/bindings/v8/DOMWrapperWorld.cpp:210: IsolatedWorldHumanReadableNameMap::iterator it = humanReadableNames.find(worldId()); Hm, why does DOMWrapperWorld use ...
7 years, 7 months ago (2013-05-24 04:58:44 UTC) #3
lushnikov
removed v8 api usages in agent
7 years, 6 months ago (2013-05-29 13:11:54 UTC) #4
pfeldman
https://codereview.chromium.org/15764004/diff/7001/Source/bindings/v8/DOMWrapperWorld.cpp File Source/bindings/v8/DOMWrapperWorld.cpp (right): https://codereview.chromium.org/15764004/diff/7001/Source/bindings/v8/DOMWrapperWorld.cpp#newcode176 Source/bindings/v8/DOMWrapperWorld.cpp:176: DEFINE_STATIC_LOCAL(IsolatedWorldHumanReadableNameMap, map, ()); You should not create yet another ...
7 years, 4 months ago (2013-08-05 16:44:48 UTC) #5
lushnikov
I'm bringing this patch back to life. Please, take a look! https://codereview.chromium.org/15764004/diff/7001/Source/bindings/v8/DOMWrapperWorld.cpp File Source/bindings/v8/DOMWrapperWorld.cpp (right): ...
6 years, 4 months ago (2014-08-23 20:37:46 UTC) #6
lushnikov
This is a blink-side of the patch. The chromium side: https://codereview.chromium.org/500823002
6 years, 4 months ago (2014-08-23 20:48:37 UTC) #7
lushnikov
The patch doesn't solve the content scripts domain names in sources panel. But with this ...
6 years, 4 months ago (2014-08-23 20:52:11 UTC) #8
yurys
lgtm https://codereview.chromium.org/15764004/diff/17001/Source/bindings/core/v8/DOMWrapperWorld.cpp File Source/bindings/core/v8/DOMWrapperWorld.cpp (right): https://codereview.chromium.org/15764004/diff/17001/Source/bindings/core/v8/DOMWrapperWorld.cpp#newcode187 Source/bindings/core/v8/DOMWrapperWorld.cpp:187: IsolatedWorldHumanReadableNameMap::iterator it = humanReadableNames.find(worldId()); humanReadableNames.get(worldId()) ? https://codereview.chromium.org/15764004/diff/17001/Source/bindings/core/v8/DOMWrapperWorld.cpp#newcode194 Source/bindings/core/v8/DOMWrapperWorld.cpp:194: ...
6 years, 4 months ago (2014-08-25 09:22:30 UTC) #9
lushnikov
lushnikov@chromium.org changed reviewers: + sergeyv@chromium.org
6 years, 3 months ago (2014-08-26 09:57:46 UTC) #10
lushnikov
lushnikov@chromium.org changed reviewers: + dglazkov@chromium.org
6 years, 3 months ago (2014-08-27 08:18:46 UTC) #11
lushnikov
On 2014/08/27 08:18:46, lushnikov wrote: > mailto:lushnikov@chromium.org changed reviewers: > + mailto:dglazkov@chromium.org @dglazkov: could you ...
6 years, 3 months ago (2014-08-27 08:19:14 UTC) #12
lushnikov
https://codereview.chromium.org/15764004/diff/17001/Source/bindings/core/v8/DOMWrapperWorld.cpp File Source/bindings/core/v8/DOMWrapperWorld.cpp (right): https://codereview.chromium.org/15764004/diff/17001/Source/bindings/core/v8/DOMWrapperWorld.cpp#newcode187 Source/bindings/core/v8/DOMWrapperWorld.cpp:187: IsolatedWorldHumanReadableNameMap::iterator it = humanReadableNames.find(worldId()); On 2014/08/25 09:22:30, yurys wrote: ...
6 years, 3 months ago (2014-08-27 08:20:26 UTC) #13
dglazkov
lgtm
6 years, 3 months ago (2014-08-27 19:54:15 UTC) #14
lushnikov
The CQ bit was checked by lushnikov@chromium.org
6 years, 3 months ago (2014-08-27 19:55:00 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lushnikov@chromium.org/15764004/57001
6 years, 3 months ago (2014-08-27 19:55:16 UTC) #16
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 3 months ago (2014-08-27 20:44:47 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 3 months ago (2014-08-27 21:04:02 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_dbg on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_dbg/builds/22955)
6 years, 3 months ago (2014-08-27 21:04:03 UTC) #19
lushnikov
The CQ bit was checked by lushnikov@chromium.org
6 years, 3 months ago (2014-08-28 08:27:57 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lushnikov@chromium.org/15764004/57001
6 years, 3 months ago (2014-08-28 08:29:09 UTC) #21
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 3 months ago (2014-08-28 08:52:59 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 3 months ago (2014-08-28 09:12:55 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_dbg on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_dbg/builds/23008)
6 years, 3 months ago (2014-08-28 09:12:57 UTC) #24
lushnikov
The CQ bit was checked by lushnikov@chromium.org
6 years, 3 months ago (2014-08-29 09:21:26 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lushnikov@chromium.org/15764004/97001
6 years, 3 months ago (2014-08-29 09:21:54 UTC) #26
commit-bot: I haz the power
Committed patchset #7 (id:97001) as 181086
6 years, 3 months ago (2014-08-29 09:59:38 UTC) #27
dcheng
https://codereview.chromium.org/15764004/diff/97001/public/web/WebFrame.h File public/web/WebFrame.h (right): https://codereview.chromium.org/15764004/diff/97001/public/web/WebFrame.h#newcode290 public/web/WebFrame.h:290: virtual void setIsolatedWorldHumanReadableName( Please move this function to WebLocalFrame.h. ...
6 years, 3 months ago (2014-09-22 22:09:50 UTC) #29
lushnikov
On 2014/09/22 22:09:50, dcheng wrote: > https://codereview.chromium.org/15764004/diff/97001/public/web/WebFrame.h > File public/web/WebFrame.h (right): > > https://codereview.chromium.org/15764004/diff/97001/public/web/WebFrame.h#newcode290 > ...
6 years, 3 months ago (2014-09-23 09:08:25 UTC) #30
dcheng
6 years, 3 months ago (2014-09-23 09:10:05 UTC) #31
Message was sent while issue was closed.
On 2014/09/23 at 09:08:25, lushnikov wrote:
> On 2014/09/22 22:09:50, dcheng wrote:
> > https://codereview.chromium.org/15764004/diff/97001/public/web/WebFrame.h
> > File public/web/WebFrame.h (right):
> > 
> >
https://codereview.chromium.org/15764004/diff/97001/public/web/WebFrame.h#new...
> > public/web/WebFrame.h:290: virtual void setIsolatedWorldHumanReadableName(
> > Please move this function to WebLocalFrame.h. I don't think we'll ever
implement
> > it for WebRemoteFrame.
> 
> I believe we would like to support this for RemoteFrame as well - are there
any obstacles?

Can you help me understand why we'd need this for remote frames? They don't have
an execution context.

Powered by Google App Engine
This is Rietveld 408576698