зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1197927 - Sanitize throws exception if browser goes away too quickly. r=felipe
This commit is contained in:
Родитель
fd0bbffded
Коммит
cde79a72b8
|
@ -406,7 +406,11 @@
|
|||
<method name="purgeSessionHistory">
|
||||
<body>
|
||||
<![CDATA[
|
||||
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;
|
||||
]]>
|
||||
|
|
Загрузка…
Ссылка в новой задаче