Bug 740862 - "ASSERTION: Freeze() failed" in nsEventSource::Observe(dom-window-frozen). r=smaug

This commit is contained in:
Wellington Fernando de Macedo 2012-09-01 17:24:42 -04:00
parent 6bc6767b50
commit 26a29dc321

View File

@ -413,10 +413,10 @@ nsEventSource::Observe(nsISupports* aSubject,
DebugOnly<nsresult> rv;
if (strcmp(aTopic, DOM_WINDOW_FROZEN_TOPIC) == 0) {
rv = Freeze();
NS_ASSERTION(rv, "Freeze() failed");
NS_ASSERTION(NS_SUCCEEDED(rv), "Freeze() failed");
} else if (strcmp(aTopic, DOM_WINDOW_THAWED_TOPIC) == 0) {
rv = Thaw();
NS_ASSERTION(rv, "Thaw() failed");
NS_ASSERTION(NS_SUCCEEDED(rv), "Thaw() failed");
} else if (strcmp(aTopic, DOM_WINDOW_DESTROYED_TOPIC) == 0) {
Close();
}