[V8] Don't delete the per context data until the V8IsolatedContext is deleted
authorarv@chromium.org <arv@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Apr 2012 23:53:38 +0000 (23:53 +0000)
committerarv@chromium.org <arv@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Apr 2012 23:53:38 +0000 (23:53 +0000)
commitfa25bc2f84fa13387587366a7707a6b518cd2542
tree572f0db1af1484281bae8a36e7051d7daa1e14fd
parent892e3f66168a16b5dd93536d275f46255560abae
[V8] Don't delete the per context data until the V8IsolatedContext is deleted
https://bugs.webkit.org/show_bug.cgi?id=83831

Reviewed by Nate Chapin.

Source/WebCore:

Test: http/tests/security/isolatedWorld/context-destroy.html

* bindings/v8/V8IsolatedContext.cpp:
(WebCore::V8IsolatedContext::destroy):

LayoutTests:

* http/tests/security/isolatedWorld/context-destroy-expected.txt: Added.
* http/tests/security/isolatedWorld/context-destroy.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@114320 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/tests/security/isolatedWorld/context-destroy-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/security/isolatedWorld/context-destroy.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/bindings/v8/V8IsolatedContext.cpp