Bug 1055761 - Navigating to a URL can incorrectly switch to an existing browser window

This should solve:

* https://bugzilla.mozilla.org/show_bug.cgi?id=1055761
* https://bugzilla.mozilla.org/show_bug.cgi?id=1055723
* https://bugzilla.mozilla.org/show_bug.cgi?id=1045894


Could you point me out what's failing? This is not a rushing feature and there might be a hidden bug we never know. Is it related to the browser part because we are comparing url with origin?