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

Issue 13954010: Eliminate "temporary" and "uninitialized" isolated worlds (Closed)

Created:
7 years, 8 months ago by adamk
Modified:
7 years, 8 months ago
CC:
blink-reviews, haraken, jamesr, Nate Chapin, abarth_chromum.org, abarth-chromium, dcarney
Visibility:
Public.

Description

Eliminate "temporary" and "uninitialized" isolated worlds Temporary worlds were mostly used by the TestRunner. I've updated all layout tests to always pass a world ID > 0 (Chromium always passes such an ID). ASSERTs have been added in many places to check this invariant. The only remaining usage of these concepts is a hack in ScriptController. After isolating that hack (which itself should eventually be removed), there are no other uses of uninitializedWorldId to create temporary (or "weak") isolated worlds. R=abarth BUG=230460 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=148291

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -99 lines) Patch
M LayoutTests/http/tests/misc/execute-and-return-value.html View 1 chunk +5 lines, -5 lines 0 comments Download
M LayoutTests/http/tests/security/isolatedWorld/all-window-properties.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/isolatedWorld/all-window-prototypes.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/isolatedWorld/body-properties.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/isolatedWorld/body-prototype.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/isolatedWorld/click-event.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/isolatedWorld/context-destroy.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/isolatedWorld/dispatchEvent.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/isolatedWorld/document-open.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/isolatedWorld/document-properties.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/isolatedWorld/document-prototype.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/isolatedWorld/global-variables.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/isolatedWorld/image-properties.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/isolatedWorld/image-prototype.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/isolatedWorld/location-properties.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/isolatedWorld/location-prototype.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/isolatedWorld/number-prototype.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/isolatedWorld/object-prototype.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/isolatedWorld/sandboxed-iframe.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/isolatedWorld/storage-properties.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/isolatedWorld/storage-prototype.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/isolatedWorld/string-prototype.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/isolatedWorld/top-properties.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/isolatedWorld/window-properties.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/isolatedWorld/window-setTimeout-function.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/isolatedWorld/window-setTimeout-string.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/isolatedWorld/world-reuse.html View 1 chunk +0 lines, -6 lines 0 comments Download
M LayoutTests/http/tests/security/isolatedWorld/world-reuse-expected.txt View 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/plugins/npruntime/overrides-all-properties.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/storage/websql/open-database-creation-callback-isolated-world.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/storage/websql/statement-error-callback-isolated-world.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/storage/websql/statement-success-callback-isolated-world.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/storage/websql/transaction-callback-isolated-world.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/storage/websql/transaction-error-callback-isolated-world.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/storage/websql/transaction-success-callback-isolated-world.html View 1 chunk +1 line, -1 line 0 comments Download
M Source/WebKit/chromium/public/WebFrame.h View 2 chunks +3 lines, -0 lines 0 comments Download
M Source/WebKit/chromium/src/WebFrameImpl.cpp View 2 chunks +2 lines, -0 lines 0 comments Download
M Source/bindings/v8/DOMWrapperWorld.h View 3 chunks +6 lines, -9 lines 2 comments Download
M Source/bindings/v8/DOMWrapperWorld.cpp View 3 chunks +16 lines, -20 lines 2 comments Download
M Source/bindings/v8/ScriptController.h View 1 chunk +0 lines, -2 lines 0 comments Download
M Source/bindings/v8/ScriptController.cpp View 5 chunks +2 lines, -24 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
adamk
7 years, 8 months ago (2013-04-12 02:03:22 UTC) #1
abarth-chromium
I think there's more code you ran remove, but this is a great start. You're ...
7 years, 8 months ago (2013-04-12 02:14:10 UTC) #2
abarth-chromium
lgtm
7 years, 8 months ago (2013-04-12 02:14:13 UTC) #3
haraken
Great improvement. I'd like to add ASSERT(worldID > 0) for all exposed APIs. Does your ...
7 years, 8 months ago (2013-04-12 02:14:19 UTC) #4
adamk
I believe this patch covers all APIs (there aren't that many of them). Chromium calls ...
7 years, 8 months ago (2013-04-12 15:44:04 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/adamk@chromium.org/13954010/1
7 years, 8 months ago (2013-04-12 15:44:38 UTC) #6
adamk
On 2013/04/12 02:14:10, abarth wrote: > I think there's more code you ran remove, but ...
7 years, 8 months ago (2013-04-12 15:47:43 UTC) #7
commit-bot: I haz the power
7 years, 8 months ago (2013-04-12 16:26:49 UTC) #8
Message was sent while issue was closed.
Change committed as 148291

Powered by Google App Engine
This is Rietveld 408576698