From e0378530e2243ee73cc9d80bba7bfce5f4182061 Mon Sep 17 00:00:00 2001
From: Brendan Dahl <brendan.dahl@gmail.com>
Date: Thu, 12 Jul 2012 11:58:06 -0700
Subject: [PATCH] Use PDFView.error to avoid issues with alert.

---
 web/viewer.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/web/viewer.js b/web/viewer.js
index f75701816..cbe20bb66 100644
--- a/web/viewer.js
+++ b/web/viewer.js
@@ -1058,7 +1058,7 @@ var PDFView = {
     if (!this.supportsPrinting) {
       var printMessage = mozL10n.get('printing_not_supported', null,
           'Warning: Printing is not fully supported by this browser.');
-      alert(printMessage);
+      this.error(printMessage);
       return;
     }
     var body = document.querySelector('body');