Bug 1224007 part 4. Fix some cases in which ErrorResult instances are destroyed without doing anything useful with exceptions on them. r=peterv

This commit is contained in:
Boris Zbarsky
2015-11-20 16:29:41 -05:00
parent c7c13d9790
commit 11cee47d40
10 changed files with 19 additions and 4 deletions

View File

@@ -267,6 +267,7 @@ HTMLVideoElement::UpdateScreenWakeLock()
if (mScreenWakeLock && (mPaused || hidden || !mUseScreenWakeLock)) {
ErrorResult rv;
mScreenWakeLock->Unlock(rv);
rv.SuppressException();
mScreenWakeLock = nullptr;
return;
}