mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-10 09:19:28 +00:00
When cancel is pressed in the print dialog, this, by its current nature, causes an exception to be thrown, resulting in a really scary message on the console (for those blessed with one). This here patch quietens it. bug=64594, r=timeless, a=ben
This commit is contained in:
parent
c062803646
commit
83c3e701ec
@ -859,7 +859,14 @@ function BrowserPrintPreview()
|
||||
function BrowserPrint()
|
||||
{
|
||||
// using _content.print() until printing becomes scriptable on docShell
|
||||
_content.print();
|
||||
try {
|
||||
_content.print();
|
||||
} catch (e) {
|
||||
// Pressing cancel is expressed as an NS_ERROR_FAILURE return value,
|
||||
// causing an exception to be thrown which we catch here.
|
||||
// Unfortunately this will also consume helpful failures, so add a
|
||||
// dump(e); // if you need to debug
|
||||
}
|
||||
}
|
||||
|
||||
function BrowserSetDefaultCharacterSet(aCharset)
|
||||
|
Loading…
x
Reference in New Issue
Block a user