humphd/mozilla-central — pull request #9 by mjschranz (2011-12-01 22:43:31+00:00)
Title: Added user preference for allowing mouselock

Added in user preference, set default to true (meaning they are allowing it) for now to ensure we didn't break other peoples testing code.

Added checks in top of nsDOMMouseLockable::ShouldLock(nsIDOMElement* aTarget) to prevent other checks being done needlessly in the event the user doesn't want mouselock to be enabled.

Test file not included because of issues with the results being displayed.