From 8eb9390ceaccc7b51f720a244e2bc63ac89cbbfe Mon Sep 17 00:00:00 2001 From: Bill McCloskey Date: Thu, 14 Mar 2013 12:02:28 -0700 Subject: [PATCH] Bug 671976 - Fix print preview asserts (r=smaug) --- .../chrome/printpreview_bug396024_helper.xul | 4 ++-- .../chrome/printpreview_bug482976_helper.xul | 4 ++-- .../base/tests/chrome/printpreview_helper.xul | 4 ++-- .../base/tests/chrome/test_printpreview.xul | 22 ------------------- .../chrome/test_printpreview_bug396024.xul | 22 ------------------- .../chrome/test_printpreview_bug482976.xul | 21 ------------------ .../test/test_bug536567_perwindowpb.html | 5 ----- layout/printing/nsPrintEngine.cpp | 6 +++++ 8 files changed, 12 insertions(+), 76 deletions(-) diff --git a/layout/base/tests/chrome/printpreview_bug396024_helper.xul b/layout/base/tests/chrome/printpreview_bug396024_helper.xul index 368e55114e1a..8fe2609f5bf8 100644 --- a/layout/base/tests/chrome/printpreview_bug396024_helper.xul +++ b/layout/base/tests/chrome/printpreview_bug396024_helper.xul @@ -14,7 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=396024 var is = window.opener.wrappedJSObject.is; var ok = window.opener.wrappedJSObject.ok; var todo = window.opener.wrappedJSObject.todo; -var parentFinish = window.opener.wrappedJSObject.parentFinish; +var SimpleTest = window.opener.wrappedJSObject.SimpleTest; var gWbp; function printpreview() { gWbp = window.frames[1].QueryInterface(Components.interfaces.nsIInterfaceRequestor) @@ -49,7 +49,7 @@ function exitprintpreview() { } function finish() { - parentFinish(); + SimpleTest.finish(); window.close(); } diff --git a/layout/base/tests/chrome/printpreview_bug482976_helper.xul b/layout/base/tests/chrome/printpreview_bug482976_helper.xul index be3e63fd1326..34c2d658ec74 100644 --- a/layout/base/tests/chrome/printpreview_bug482976_helper.xul +++ b/layout/base/tests/chrome/printpreview_bug482976_helper.xul @@ -14,7 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=482976 var is = window.opener.wrappedJSObject.is; var ok = window.opener.wrappedJSObject.ok; var todo = window.opener.wrappedJSObject.todo; -var parentFinish = window.opener.wrappedJSObject.parentFinish; +var SimpleTest = window.opener.wrappedJSObject.SimpleTest; var gWbp; function printpreview() { gWbp = window.frames[1].QueryInterface(Components.interfaces.nsIInterfaceRequestor) @@ -49,7 +49,7 @@ function exitprintpreview() { } function finish() { - parentFinish(); + SimpleTest.finish(); window.close(); } diff --git a/layout/base/tests/chrome/printpreview_helper.xul b/layout/base/tests/chrome/printpreview_helper.xul index 436336fd6c53..3ad11f5bc31a 100644 --- a/layout/base/tests/chrome/printpreview_helper.xul +++ b/layout/base/tests/chrome/printpreview_helper.xul @@ -12,7 +12,7 @@ var is = window.opener.wrappedJSObject.is; var isnot = window.opener.wrappedJSObject.isnot; var ok = window.opener.wrappedJSObject.ok; var todo = window.opener.wrappedJSObject.todo; -var parentFinish = window.opener.wrappedJSObject.parentFinish; +var SimpleTest = window.opener.wrappedJSObject.SimpleTest; var gWbp; var ctx1; var ctx2; @@ -66,7 +66,7 @@ function exitprintpreview() { } function finish() { - parentFinish(); + SimpleTest.finish(); window.close(); } diff --git a/layout/base/tests/chrome/test_printpreview.xul b/layout/base/tests/chrome/test_printpreview.xul index 64a2365ab042..6a63791f228c 100644 --- a/layout/base/tests/chrome/test_printpreview.xul +++ b/layout/base/tests/chrome/test_printpreview.xul @@ -10,28 +10,6 @@ diff --git a/layout/base/tests/chrome/test_printpreview_bug396024.xul b/layout/base/tests/chrome/test_printpreview_bug396024.xul index 651f494b1269..eb086d35a63d 100644 --- a/layout/base/tests/chrome/test_printpreview_bug396024.xul +++ b/layout/base/tests/chrome/test_printpreview_bug396024.xul @@ -16,28 +16,6 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=396024 diff --git a/layout/base/tests/chrome/test_printpreview_bug482976.xul b/layout/base/tests/chrome/test_printpreview_bug482976.xul index ff3181c62a20..52918d5ba0b6 100644 --- a/layout/base/tests/chrome/test_printpreview_bug482976.xul +++ b/layout/base/tests/chrome/test_printpreview_bug482976.xul @@ -16,28 +16,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=482976 diff --git a/layout/forms/test/test_bug536567_perwindowpb.html b/layout/forms/test/test_bug536567_perwindowpb.html index 61e2b04f9083..fc59071a5511 100644 --- a/layout/forms/test/test_bug536567_perwindowpb.html +++ b/layout/forms/test/test_bug536567_perwindowpb.html @@ -14,11 +14,6 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=536567