Bug 1080361 - Add check in setPointerCapture function. r=smaug

This commit is contained in:
Lebedev Maksim 2014-10-09 05:41:00 +02:00
parent 50f66ec121
commit 43cda7a31b

View File

@ -674,6 +674,10 @@ public:
aError.Throw(NS_ERROR_DOM_INVALID_POINTER_ERR);
return;
}
if (!IsInDoc()) {
aError.Throw(NS_ERROR_DOM_INVALID_STATE_ERR);
return;
}
if (!activeState) {
return;
}