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 e7abbc1ec8
commit 169f4c3693

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;
}