Bug 966730 - Disabling toggle buttons doesn't work

 - Avoid to set unnecessary state properties
 - Set the toggle on window level by default
 - Added test cases
Merge pull request #1376 from ZER0/toggle-disabled/966730

fix Bug 966730 - Disabling toggle buttons doesn't work r=@gozala