Bug 866333: Added extra check to avoid wrong events property returned in cases, when, for example event type coincides with Object property, such as nonstandard Object.prototype.watch, for instance
(cherry picked from commit 09f7197a85475fd9fdbaf64ffeec553e86fe2da8)
Bug 866333: adding test for event names like "watch"
abstract out the addon-page url check to ensure that we also close those addon-pages on unload. fix up the addon-page tests so they match.
bind the xul window to the hideChromeForLocation function

In order to avoid a "can't access dead object" TypeError we need to
bind the hideChromeForLocation back to the XULBrowserWindow object.
I've been struggling to write a test for this but can't come up with
anything to easily trigger and catch the error.
Bug 887013 - test-url.js should not create a file in the profile dir (and using new test framework)
Revert "Merge pull request #1049 from Gozala/bug/websocket@820953" for causing test failures

This reverts commit a3aa373b4d4ae110318d1fd4a37b60f0232a715f, reversing
changes made to 5d5aa58a47293c3d23f80c0a66784ba0aa4a6cba.
Merge pull request #1061 from erikvold/887013

Bug 887013 - test-url.js should not create a file in the profile dir (and using new test framework) r=@jsantell
Merge pull request #1052 from clarkbw/addon-page-unload-fixes

Bug 887677 abstract out the addon-page url check r=@erikvold
Merge pull request #1053 from clarkbw/addon-page-hideChromeForLocation-bind

Bug 887675 bind the xul window to the hideChromeForLocation function r=@erikvold
Merge pull request #980 from erikvold/866333

Bug 866333: using event names like 'watch' dnw for port in content scripts r=@jsantell r=@erikvold
Bug 787392 - Add Action/Toggle Button type

Added Button class and the "state" mechanism