Fix libs and tests for marionette's chrome window handling

Those are changes to the libs and tests, to ensure that our code is up-to-date with the code as landed on https://bugzilla.mozilla.org/show_bug.cgi?id=941749.
This method is already part of BaseWindow