Fix for bug 816088 (webIDL bindings try to extract nsISupports from the global object in static properties in workers). r=bz.

--HG--
extra : rebase_source : 5668d9e01bff0fe7831d98018428856e5940a620
Fix for bug 715156 (JS code no longer work for select options as array in a Greasemonkey script (index and name setters don't really work via XrayWrapper)). r=bz.

--HG--
extra : rebase_source : 2ced75b6d49dbab5afe9a6ce7c322bf18a634026