Compare decoded URL's

In order to ensure to get equality if the encoding is different.

issue8124
review56621002
This commit is contained in:
Cédric Krier committed 2019-02-26 16:03:56 +01:00
1 parent 438bcc098e
commit fd98564d78
1 file changed
+2 -1
+2 -1
View File
@@ -373,9 +373,10 @@ var Sao = {};
Sao.set_url(tab.get_url(), tab.name);
}
} else {
url = decodeURIComponent(url);
for (var i = 0; i < Sao.Tab.tabs.length; i++) {
tab = Sao.Tab.tabs[i];
if (tab.get_url() == url) {
if (decodeURIComponent(tab.get_url()) == url) {
tab.show();
return;
}