mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-02 06:22:20 +00:00
Bug 785167: Protect against already-canceled vibrations. r=jlebar
This commit is contained in:
parent
419d532f00
commit
8cf9f30595
@ -159,7 +159,7 @@ CancelVibrate(const WindowIdentifier &id)
|
||||
if (InSandbox()) {
|
||||
hal_sandbox::CancelVibrate(id);
|
||||
}
|
||||
else if (*gLastIDToVibrate == id.AsArray()) {
|
||||
else if (gLastIDToVibrate && *gLastIDToVibrate == id.AsArray()) {
|
||||
// Don't forward our ID to hal_impl. It doesn't need it, and we
|
||||
// don't want it to be tempted to read it. The empty identifier
|
||||
// will assert if it's used.
|
||||
|
Loading…
x
Reference in New Issue
Block a user