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

Issue 182903003: Make DOMWrapperWorld::current() callable from workers (Closed)

Created:
6 years, 9 months ago by haraken
Modified:
6 years, 9 months ago
CC:
blink-reviews, Nils Barth (inactive), kojih, arv+blink, jsbell+bindings_chromium.org, sof, abarth-chromium, marja+watch_chromium.org, adamk+blink_chromium.org, Nate Chapin, Inactive
Visibility:
Public.

Description

Make DOMWrapperWorld::current() callable from workers This CL does the following two things: - Makes DOMWrapperWorld::current() callable from workers. Now that a world is always stored in PerContextDataHolder::world(), DOMWrapperWorld::current() can just look up the PerContextDataHolder::world(). - Makes DOMWrapperWorld::current() callable even when a window object is being initialized. It's possible that some methods call DOMWrapperWorld::current() while the window is being initialized. To handles the subtle situation, this CL adds DOMWrapperWorld::worldOfInitializingWindow. BUG=341032 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168898

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Total comments: 1

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -44 lines) Patch
M Source/bindings/v8/DOMWrapperWorld.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +31 lines, -6 lines 0 comments Download
M Source/bindings/v8/DOMWrapperWorld.cpp View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +1 line, -14 lines 0 comments Download
M Source/bindings/v8/PageScriptDebugServer.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +7 lines, -2 lines 0 comments Download
M Source/bindings/v8/ScriptController.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -3 lines 0 comments Download
M Source/bindings/v8/V8Binding.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -2 lines 0 comments Download
M Source/bindings/v8/V8WindowShell.h View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M Source/bindings/v8/V8WindowShell.cpp View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +2 lines, -16 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
haraken
PTAL This change is needed to fix bot failures in https://codereview.chromium.org/176963017/
6 years, 9 months ago (2014-02-27 13:25:50 UTC) #1
dcarney
i'm not sure this makes sense. if a worker calls DOMWrapperWorld::current, we never want to ...
6 years, 9 months ago (2014-02-27 17:03:44 UTC) #2
jochen (gone - plz use gerrit)
I agree, this looks way to magic.
6 years, 9 months ago (2014-02-27 22:40:59 UTC) #3
haraken
> if a worker calls DOMWrapperWorld::current, we > never want to return worldOfInitializingWindow Good point. ...
6 years, 9 months ago (2014-02-28 00:06:24 UTC) #4
haraken
PTAL
6 years, 9 months ago (2014-02-28 00:06:32 UTC) #5
haraken
On 2014/02/28 00:06:32, haraken wrote: > PTAL Several tests are failing because in tests there ...
6 years, 9 months ago (2014-02-28 07:46:31 UTC) #6
dcarney
On 2014/02/28 07:46:31, haraken wrote: > On 2014/02/28 00:06:32, haraken wrote: > > PTAL > ...
6 years, 9 months ago (2014-02-28 10:18:59 UTC) #7
haraken
Now that I landed necessary changes to ensure that DOMWrapperWorld always exists in all webkit_unit_tests, ...
6 years, 9 months ago (2014-03-04 04:19:44 UTC) #8
dcarney
On 2014/03/04 04:19:44, haraken wrote: > Now that I landed necessary changes to ensure that ...
6 years, 9 months ago (2014-03-04 14:50:09 UTC) #9
haraken
The CQ bit was checked by haraken@chromium.org
6 years, 9 months ago (2014-03-11 01:00:58 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/182903003/200001
6 years, 9 months ago (2014-03-11 01:01:12 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-11 01:58:25 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel
6 years, 9 months ago (2014-03-11 01:58:26 UTC) #13
haraken
The CQ bit was checked by haraken@chromium.org
6 years, 9 months ago (2014-03-11 02:23:49 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/182903003/200001
6 years, 9 months ago (2014-03-11 02:23:58 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-11 03:09:23 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel
6 years, 9 months ago (2014-03-11 03:09:23 UTC) #17
haraken
The CQ bit was checked by haraken@chromium.org
6 years, 9 months ago (2014-03-11 03:44:44 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/182903003/200001
6 years, 9 months ago (2014-03-11 03:44:54 UTC) #19
commit-bot: I haz the power
Change committed as 168880
6 years, 9 months ago (2014-03-11 03:45:19 UTC) #20
haraken
The CQ bit was checked by haraken@chromium.org
6 years, 9 months ago (2014-03-11 07:06:44 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/182903003/210001
6 years, 9 months ago (2014-03-11 07:06:46 UTC) #22
commit-bot: I haz the power
Change committed as 168890
6 years, 9 months ago (2014-03-11 07:07:07 UTC) #23
haraken
The CQ bit was checked by haraken@chromium.org
6 years, 9 months ago (2014-03-11 07:11:38 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/182903003/210001
6 years, 9 months ago (2014-03-11 07:11:53 UTC) #25
commit-bot: I haz the power
6 years, 9 months ago (2014-03-11 08:40:51 UTC) #26
Message was sent while issue was closed.
Change committed as 168898

Powered by Google App Engine
This is Rietveld 408576698