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

Issue 257803006: Fixing wrong extension ID in Activity Log entries. (Closed)

Created:
6 years, 8 months ago by pmarch
Modified:
6 years, 6 months ago
CC:
blink-reviews, Nils Barth (inactive), jamesr, arv+blink, jsbell+bindings_chromium.org, sof, kouhei+bindings_chromium.org, abarth-chromium, marja+watch_chromium.org, dglazkov+blink, adamk+blink_chromium.org, Nate Chapin, watchdog-blink-watchlist_google.com, Inactive, Jeffrey Yasskin
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

A prerender process may be shared across two (or more) extensions when Chrome reaches prerender process limit. In this case, extensions' main worlds use the same Activity Logger (which is defined by whoever sets it first); thus producing incorrect extension ID in AL entries for extensions. This fix changes the way we locate Activity Logger for the main world of an extension. Now, the extension ID is required to locate the appropriate Activity Logger. Note, it is only required for the main world not an isolated world. Note: this CL contains contains stubs that allow modifications to Chromium. After the Chromium modifications, the stubs must be removed. BUG=366916 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175381

Patch Set 1 #

Patch Set 2 : URL protocol check #

Patch Set 3 : #

Patch Set 4 : typo #

Total comments: 5

Patch Set 5 : ActivityLogger moved to ScriptState #

Total comments: 4

Patch Set 6 : comments #

Total comments: 2

Patch Set 7 : moved ActivityLogger to V8PerContextData #

Total comments: 15

Patch Set 8 : comments #

Patch Set 9 : typos #

Patch Set 10 : rebase #

Total comments: 1

Patch Set 11 : rebase #

Patch Set 12 : rebase #

Patch Set 13 : nit #

Patch Set 14 : bug fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+188 lines, -95 lines) Patch
M Source/bindings/templates/attributes.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +7 lines, -7 lines 0 comments Download
M Source/bindings/templates/methods.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -3 lines 0 comments Download
M Source/bindings/tests/results/V8TestObject.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 20 chunks +60 lines, -60 lines 0 comments Download
M Source/bindings/v8/DOMWrapperWorld.h View 1 2 3 4 11 3 chunks +0 lines, -5 lines 0 comments Download
M Source/bindings/v8/DOMWrapperWorld.cpp View 1 2 3 4 11 1 chunk +0 lines, -1 line 0 comments Download
M Source/bindings/v8/V8DOMActivityLogger.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +16 lines, -3 lines 0 comments Download
M Source/bindings/v8/V8DOMActivityLogger.cpp View 1 2 3 4 5 6 7 8 9 11 1 chunk +64 lines, -8 lines 0 comments Download
M Source/bindings/v8/V8PerContextData.h View 1 2 3 4 5 6 11 3 chunks +7 lines, -0 lines 0 comments Download
M Source/bindings/v8/V8PerContextData.cpp View 1 2 3 4 5 6 11 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/v8/V8WindowShell.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M Source/web/WebDOMActivityLogger.cpp View 1 2 3 4 5 6 7 11 1 chunk +15 lines, -2 lines 0 comments Download
M public/web/WebDOMActivityLogger.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +13 lines, -5 lines 0 comments Download

Messages

Total messages: 42 (0 generated)
mvrable
Mostly seems okay to me, modulo a few comments. It's not completely clean but is ...
6 years, 7 months ago (2014-04-29 20:15:32 UTC) #1
Nils Barth (inactive)
+haraken: WDYT? (...as you're quite familiar with the fun of main world(s!))
6 years, 7 months ago (2014-04-30 00:37:27 UTC) #2
haraken
https://codereview.chromium.org/257803006/diff/60001/Source/bindings/v8/V8WindowShell.cpp File Source/bindings/v8/V8WindowShell.cpp (right): https://codereview.chromium.org/257803006/diff/60001/Source/bindings/v8/V8WindowShell.cpp#newcode215 Source/bindings/v8/V8WindowShell.cpp:215: m_scriptState->perContextData()->setActivityLogger( It's mis-designed that ActivityLogger is cached on V8PerContextData. ...
6 years, 7 months ago (2014-04-30 00:54:20 UTC) #3
pmarch
On 2014/04/30 00:54:20, haraken wrote: > https://codereview.chromium.org/257803006/diff/60001/Source/bindings/v8/V8WindowShell.cpp > File Source/bindings/v8/V8WindowShell.cpp (right): > > https://codereview.chromium.org/257803006/diff/60001/Source/bindings/v8/V8WindowShell.cpp#newcode215 > ...
6 years, 7 months ago (2014-05-07 15:28:09 UTC) #4
pmarch
https://codereview.chromium.org/257803006/diff/60001/Source/bindings/v8/V8DOMActivityLogger.cpp File Source/bindings/v8/V8DOMActivityLogger.cpp (right): https://codereview.chromium.org/257803006/diff/60001/Source/bindings/v8/V8DOMActivityLogger.cpp#newcode48 Source/bindings/v8/V8DOMActivityLogger.cpp:48: return it == loggers.end() ? 0 : it->value.get(); Blink ...
6 years, 7 months ago (2014-05-07 15:28:23 UTC) #5
pmarch
On 2014/05/07 15:28:09, pmarch wrote: > On 2014/04/30 00:54:20, haraken wrote: > > > https://codereview.chromium.org/257803006/diff/60001/Source/bindings/v8/V8WindowShell.cpp ...
6 years, 7 months ago (2014-05-07 15:37:33 UTC) #6
pmarch
On 2014/05/07 15:37:33, pmarch wrote: > On 2014/05/07 15:28:09, pmarch wrote: > > On 2014/04/30 ...
6 years, 7 months ago (2014-05-07 18:09:58 UTC) #7
pmarch
Kentaro, Michael Make another round of reviews. Thanks On 2014/05/07 18:09:58, pmarch wrote: > On ...
6 years, 7 months ago (2014-05-07 19:18:12 UTC) #8
Jeffrey Yasskin
https://codereview.chromium.org/257803006/diff/80001/Source/bindings/v8/V8DOMActivityLogger.cpp File Source/bindings/v8/V8DOMActivityLogger.cpp (right): https://codereview.chromium.org/257803006/diff/80001/Source/bindings/v8/V8DOMActivityLogger.cpp#newcode38 Source/bindings/v8/V8DOMActivityLogger.cpp:38: ASSERT(!extensionId.isEmpty()); This creates an intermediate state where any activity ...
6 years, 7 months ago (2014-05-08 00:17:33 UTC) #9
pmarch
https://codereview.chromium.org/257803006/diff/80001/Source/bindings/v8/V8DOMActivityLogger.cpp File Source/bindings/v8/V8DOMActivityLogger.cpp (right): https://codereview.chromium.org/257803006/diff/80001/Source/bindings/v8/V8DOMActivityLogger.cpp#newcode38 Source/bindings/v8/V8DOMActivityLogger.cpp:38: ASSERT(!extensionId.isEmpty()); On 2014/05/08 00:17:34, Jeffrey Yasskin wrote: > This ...
6 years, 7 months ago (2014-05-08 01:14:04 UTC) #10
haraken
On 2014/05/07 18:09:58, pmarch wrote: > On 2014/05/07 15:37:33, pmarch wrote: > > On 2014/05/07 ...
6 years, 7 months ago (2014-05-08 01:24:19 UTC) #11
pmarch
On 2014/05/08 01:24:19, haraken wrote: > On 2014/05/07 18:09:58, pmarch wrote: > > On 2014/05/07 ...
6 years, 7 months ago (2014-05-08 01:58:47 UTC) #12
haraken
OK, I understand that the ActivityLogger should be associated with contexts, not worlds. Then can ...
6 years, 7 months ago (2014-05-08 02:38:23 UTC) #13
haraken
https://codereview.chromium.org/257803006/diff/100001/Source/bindings/v8/V8WindowShell.cpp File Source/bindings/v8/V8WindowShell.cpp (right): https://codereview.chromium.org/257803006/diff/100001/Source/bindings/v8/V8WindowShell.cpp#newcode220 Source/bindings/v8/V8WindowShell.cpp:220: m_frame->document() ? m_frame->document()->baseURI() : KURL())); Is it possible that ...
6 years, 7 months ago (2014-05-08 02:38:31 UTC) #14
pmarch
https://codereview.chromium.org/257803006/diff/100001/Source/bindings/v8/V8WindowShell.cpp File Source/bindings/v8/V8WindowShell.cpp (right): https://codereview.chromium.org/257803006/diff/100001/Source/bindings/v8/V8WindowShell.cpp#newcode220 Source/bindings/v8/V8WindowShell.cpp:220: m_frame->document() ? m_frame->document()->baseURI() : KURL())); I do not know ...
6 years, 7 months ago (2014-05-08 17:55:47 UTC) #15
pmarch
On 2014/05/08 02:38:23, haraken wrote: > OK, I understand that the ActivityLogger should be associated ...
6 years, 7 months ago (2014-05-08 19:46:57 UTC) #16
haraken
LGTM with comments. abarth@: Would you take a look at web/ ? https://codereview.chromium.org/257803006/diff/120001/Source/bindings/v8/V8DOMActivityLogger.h File Source/bindings/v8/V8DOMActivityLogger.h ...
6 years, 7 months ago (2014-05-08 23:47:44 UTC) #17
pmarch
https://codereview.chromium.org/257803006/diff/120001/Source/bindings/v8/V8DOMActivityLogger.h File Source/bindings/v8/V8DOMActivityLogger.h (right): https://codereview.chromium.org/257803006/diff/120001/Source/bindings/v8/V8DOMActivityLogger.h#newcode56 Source/bindings/v8/V8DOMActivityLogger.h:56: // A render process may host multiple extensions when ...
6 years, 7 months ago (2014-05-09 14:53:51 UTC) #18
haraken
https://codereview.chromium.org/257803006/diff/120001/Source/bindings/v8/V8WindowShell.cpp File Source/bindings/v8/V8WindowShell.cpp (right): https://codereview.chromium.org/257803006/diff/120001/Source/bindings/v8/V8WindowShell.cpp#newcode220 Source/bindings/v8/V8WindowShell.cpp:220: m_world->worldId(), m_frame->document() ? m_frame->document()->baseURI() : KURL())); On 2014/05/09 14:53:52, ...
6 years, 7 months ago (2014-05-09 14:56:06 UTC) #19
pmarch
Hi Adam Could you take a look at web? Thanks
6 years, 7 months ago (2014-05-12 16:12:32 UTC) #20
pmarch
ping
6 years, 7 months ago (2014-05-21 20:25:50 UTC) #21
haraken
I think Adam is OOO.
6 years, 7 months ago (2014-05-21 20:26:15 UTC) #22
felt
On 2014/05/21 20:26:15, haraken wrote: > I think Adam is OOO. adam is OOO for ...
6 years, 7 months ago (2014-05-21 20:29:20 UTC) #23
pmarch
Hi Adam K, Could you approve web/* files in this CL since Adam B. is ...
6 years, 7 months ago (2014-05-21 21:01:55 UTC) #24
adamk
Unfortunately I'm not an API OWNER (so I can't approve changes in public/); +darin
6 years, 7 months ago (2014-05-22 06:56:35 UTC) #25
pmarch
On 2014/05/22 06:56:35, adamk wrote: > Unfortunately I'm not an API OWNER (so I can't ...
6 years, 7 months ago (2014-05-27 17:53:00 UTC) #26
pmarch
On 2014/05/27 17:53:00, pmarch wrote: > On 2014/05/22 06:56:35, adamk wrote: > > Unfortunately I'm ...
6 years, 6 months ago (2014-05-29 17:02:31 UTC) #27
jochen (gone - plz use gerrit)
lgtm https://codereview.chromium.org/257803006/diff/180001/public/web/WebDOMActivityLogger.h File public/web/WebDOMActivityLogger.h (right): https://codereview.chromium.org/257803006/diff/180001/public/web/WebDOMActivityLogger.h#newcode54 public/web/WebDOMActivityLogger.h:54: BLINK_EXPORT bool hasDOMActivityLogger(int worldId, const WebString&); nit, add ...
6 years, 6 months ago (2014-06-02 07:32:17 UTC) #28
pmarch
The CQ bit was checked by pmarch@chromium.org
6 years, 6 months ago (2014-06-02 18:48:17 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pmarch@chromium.org/257803006/240001
6 years, 6 months ago (2014-06-02 18:48:50 UTC) #30
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, 6 months ago (2014-06-02 20:17:19 UTC) #31
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-02 21:11:39 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/10401)
6 years, 6 months ago (2014-06-02 21:11:39 UTC) #33
pmarch
The CQ bit was checked by pmarch@chromium.org
6 years, 6 months ago (2014-06-02 22:17:58 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pmarch@chromium.org/257803006/240001
6 years, 6 months ago (2014-06-02 22:18:40 UTC) #35
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, 6 months ago (2014-06-02 23:46:32 UTC) #36
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-03 00:19:23 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/10436)
6 years, 6 months ago (2014-06-03 00:19:24 UTC) #38
pmarch
The CQ bit was checked by pmarch@chromium.org
6 years, 6 months ago (2014-06-03 13:39:35 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pmarch@chromium.org/257803006/250001
6 years, 6 months ago (2014-06-03 13:39:56 UTC) #40
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_blink_rel on tryserver.blink ...
6 years, 6 months ago (2014-06-03 14:56:37 UTC) #41
commit-bot: I haz the power
6 years, 6 months ago (2014-06-03 15:37:36 UTC) #42
Message was sent while issue was closed.
Change committed as 175381

Powered by Google App Engine
This is Rietveld 408576698