Reviewed by Darin.
- test for http://bugzilla.opendarwin.org/show_bug.cgi?id=8594
REGRESSION: Exception on closing a page containing (just) an mp3
* plugins/pluginDocumentView-deallocated-dataSource-expected.txt: Added.
* plugins/pluginDocumentView-deallocated-dataSource.html: Added.
* plugins/resources: Added.
* plugins/resources/orange.mov: Added.
WebKit:
Reviewed by Darin.
- fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8594
REGRESSION: Exception on closing a page containing (just) an mp3
Test: plugins/pluginDocumentView-deallocated-dataSource.html
* Plugins/WebPluginDocumentView.m:
(-[WebPluginDocumentView dealloc]): Release the dataSource.
(-[WebPluginDocumentView setDataSource:]): Retain the dataSource.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14201
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2006-05-04 Mitz Pettel <opendarwin.org@mitzpettel.com>
+
+ Reviewed by Darin.
+
+ - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=8594
+ REGRESSION: Exception on closing a page containing (just) an mp3
+
+ * plugins/pluginDocumentView-deallocated-dataSource-expected.txt: Added.
+ * plugins/pluginDocumentView-deallocated-dataSource.html: Added.
+ * plugins/resources: Added.
+ * plugins/resources/orange.mov: Added.
+
2006-05-04 Justin Garcia <justin.garcia@apple.com>
Reviewed by harrison
--- /dev/null
+Test for regression against http://bugzilla.opendarwin.org/show_bug.cgi?id=8594 REGRESSION: Exception on closing a page containing (just) an mp3.
+
+No crash (or exception) means PASS.
+
+
--- /dev/null
+<html>
+<head>
+<script>
+function finishTest()
+{
+ document.getElementById('plugin').src = 'about:blank';
+ if (window.layoutTestController)
+ layoutTestController.notifyDone();
+}
+
+function test()
+{
+ if (window.layoutTestController) {
+ layoutTestController.waitUntilDone();
+ layoutTestController.dumpAsText();
+ }
+
+ var i = 0;
+ var found = false;
+ while (!found && i < navigator.plugins.length) {
+ if (navigator.plugins[i].filename == "QuickTime Plugin.webplugin")
+ found = true;
+ i++;
+ }
+ if (!found) {
+ document.getElementById("result").innerText = "Test cannot run: QuickTime Plugin.webplugin missing.";
+ if (window.layoutTestController)
+ layoutTestController.notifyDone();
+ return;
+ }
+ setTimeout(finishTest, 0);
+}
+</script>
+</head>
+<body onload="test();">
+<p>
+ Test for regression against <i><a href="http://bugzilla.opendarwin.org/show_bug.cgi?id=8594">http://bugzilla.opendarwin.org/show_bug.cgi?id=8594</a>
+ REGRESSION: Exception on closing a page containing (just) an mp3</i>.
+</p>
+<p id="result">
+ No crash (or exception) means PASS.
+</p>
+<iframe id="plugin" src="resources/orange.mov"></iframe>
+</body>
+</html>
+2006-05-04 Mitz Pettel <opendarwin.org@mitzpettel.com>
+
+ Reviewed by Darin.
+
+ - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8594
+ REGRESSION: Exception on closing a page containing (just) an mp3
+
+ Test: plugins/pluginDocumentView-deallocated-dataSource.html
+
+ * Plugins/WebPluginDocumentView.m:
+ (-[WebPluginDocumentView dealloc]): Release the dataSource.
+ (-[WebPluginDocumentView setDataSource:]): Retain the dataSource.
+
2006-05-04 Tim Omernick <timo@apple.com>
Reviewed by Darin.
[plugin release];
[pluginController destroyAllPlugins];
[pluginController release];
+ [_dataSource release];
[super dealloc];
}
if (![self superview])
return;
- _dataSource = dataSource;
+ _dataSource = [dataSource retain];
[pluginController setDataSource:dataSource];
dataSourceHasBeenSet = YES;