Title: [119505] trunk/Tools
- Revision
- 119505
- Author
- [email protected]
- Date
- 2012-06-05 11:23:27 -0700 (Tue, 05 Jun 2012)
Log Message
[Win] DumpRenderTree should call resetInternalsObject
https://bugs.webkit.org/show_bug.cgi?id=88346
Reviewed by Simon Fraser.
Invoke it on Windows in the same place it is invoked on Mac.
* DumpRenderTree/win/DumpRenderTree.cpp:
(resetWebViewToConsistentStateBeforeTesting):
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (119504 => 119505)
--- trunk/Tools/ChangeLog 2012-06-05 18:15:01 UTC (rev 119504)
+++ trunk/Tools/ChangeLog 2012-06-05 18:23:27 UTC (rev 119505)
@@ -1,3 +1,15 @@
+2012-06-05 Jessie Berlin <[email protected]>
+
+ [Win] DumpRenderTree should call resetInternalsObject
+ https://bugs.webkit.org/show_bug.cgi?id=88346
+
+ Reviewed by Simon Fraser.
+
+ Invoke it on Windows in the same place it is invoked on Mac.
+
+ * DumpRenderTree/win/DumpRenderTree.cpp:
+ (resetWebViewToConsistentStateBeforeTesting):
+
2012-06-05 Sudarsana Nagineni <[email protected]>
[GTK] Fix two more memory leaks in DRT
Modified: trunk/Tools/DumpRenderTree/win/DumpRenderTree.cpp (119504 => 119505)
--- trunk/Tools/DumpRenderTree/win/DumpRenderTree.cpp 2012-06-05 18:15:01 UTC (rev 119504)
+++ trunk/Tools/DumpRenderTree/win/DumpRenderTree.cpp 2012-06-05 18:23:27 UTC (rev 119505)
@@ -37,6 +37,7 @@
#include "PolicyDelegate.h"
#include "ResourceLoadDelegate.h"
#include "UIDelegate.h"
+#include "WebCoreTestSupport.h"
#include "WorkQueueItem.h"
#include "WorkQueue.h"
@@ -893,6 +894,11 @@
if (SUCCEEDED(webView->preferences(&preferences)))
resetDefaultsToConsistentValues(preferences.get());
+ if (gLayoutTestController) {
+ JSGlobalContextRef context = frame->globalContext();
+ WebCoreTestSupport::resetInternalsObject(context);
+ }
+
COMPtr<IWebViewEditing> viewEditing;
if (SUCCEEDED(webView->QueryInterface(&viewEditing)))
viewEditing->setSmartInsertDeleteEnabled(TRUE);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes