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:
@@ -267,6 +267,7 @@ HTMLVideoElement::UpdateScreenWakeLock()
|
||||
if (mScreenWakeLock && (mPaused || hidden || !mUseScreenWakeLock)) {
|
||||
ErrorResult rv;
|
||||
mScreenWakeLock->Unlock(rv);
|
||||
rv.SuppressException();
|
||||
mScreenWakeLock = nullptr;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user