Bug 747919 - browser/devtools/layoutview/test/browser_layoutview.js leaks chrome and content windows. r=dao a=test-only
authorPaul Rouget <paul@mozilla.com>
Wed, 25 Apr 2012 16:53:21 +0200
changeset 95575 da65f130ceb218ec49b813c739313a6334b53cb1
parent 95574 620975d07853d4eace9118fb683bc5e8f4a454c1
child 95576 3e32c74580f6014636a6af144f3f737d55425dd0
push id886
push userlsblakk@mozilla.com
push dateMon, 04 Jun 2012 19:57:52 +0000
treeherdermozilla-beta@bbd8d5efd6d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdao, test-only
bugs747919
milestone14.0a2
Bug 747919 - browser/devtools/layoutview/test/browser_layoutview.js leaks chrome and content windows. r=dao a=test-only
browser/devtools/layoutview/test/browser_layoutview.js
--- a/browser/devtools/layoutview/test/browser_layoutview.js
+++ b/browser/devtools/layoutview/test/browser_layoutview.js
@@ -77,16 +77,18 @@ function test() {
     highlighter.lock();
 
     window.addEventListener("message", viewReady, true);
   }
 
   function viewReady(e) {
     if (e.data != "layoutview-ready") return;
 
+    window.removeEventListener("message", viewReady, true);
+
     info("Layout view ready");
 
     view = InspectorUI._sidebar._layoutview;
 
     ok(!!view, "LayoutView document is alive.");
 
     view.open();