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
+2012-04-16 Erik Arvidsson <arv@chromium.org>
+
+ [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.
+
+ * http/tests/security/isolatedWorld/context-destroy-expected.txt: Added.
+ * http/tests/security/isolatedWorld/context-destroy.html: Added.
+
2012-04-16 Vincent Scheib <scheib@chromium.org>
[Chromium] Marking test failing TEXT: css3/filters/custom/custom-filter-property-computed-style.html.
--- /dev/null
+<!DOCTYPE html>
+<p>FAIL</p>
+<iframe src="data:text/html,FAIL"></iframe>
+<script type="text/x-isolate" id="s1">
+
+window.onunload = function() {
+ Window;
+};
+
+</script>
+<script>
+
+window.onload = function() {
+ if (window.layoutTestController) {
+ layoutTestController.waitUntilDone();
+ layoutTestController.dumpAsText();
+
+ var iframeElement = document.querySelector('iframe');
+ iframeElement.focus();
+ layoutTestController.evaluateScriptInIsolatedWorld(0, document.querySelector('#s1').textContent);
+
+ iframeElement.onload = function() {
+ document.body.textContent = 'PASS';
+ layoutTestController.notifyDone();
+ };
+ iframeElement.src = 'data:text/html,PASS';
+ }
+};
+
+</script>
+</body>
+</html>
+2012-04-16 Erik Arvidsson <arv@chromium.org>
+
+ [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.
+
+ Test: http/tests/security/isolatedWorld/context-destroy.html
+
+ * bindings/v8/V8IsolatedContext.cpp:
+ (WebCore::V8IsolatedContext::destroy):
+
2012-04-16 Greg Billock <gbillock@google.com>
Add V8 code generation support for MessagePortArray attributes.
void V8IsolatedContext::destroy()
{
- m_perContextData.clear();
m_frame->loader()->client()->willReleaseScriptContext(context(), m_world->id());
m_context->get().MakeWeak(this, &contextWeakReferenceCallback);
m_frame = 0;