mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 1197927 - Sanitize throws exception if browser goes away too quickly. r=felipe
This commit is contained in:
parent
fd0bbffded
commit
cde79a72b8
@ -406,7 +406,11 @@
|
||||
<method name="purgeSessionHistory">
|
||||
<body>
|
||||
<![CDATA[
|
||||
this.messageManager.sendAsyncMessage("Browser:PurgeSessionHistory");
|
||||
try {
|
||||
this.messageManager.sendAsyncMessage("Browser:PurgeSessionHistory");
|
||||
} catch (ex if ex.result == Components.results.NS_ERROR_NOT_INITIALIZED) {
|
||||
// This can throw if the browser has started to go away.
|
||||
}
|
||||
this.webNavigation.canGoBack = false;
|
||||
this.webNavigation.canGoForward = false;
|
||||
]]>
|
||||
|
Loading…
Reference in New Issue
Block a user