Bug 1452908 - Fix the about:blocked link while checking Safe Browsing site status. r=johannh

Fix the about:blocked link while checking Safe Browsing site status.

Differential Revision: https://phabricator.services.mozilla.com/D7410

--HG--
extra : moz-landing-system : lando
This commit is contained in:
prathiksha 2018-10-02 14:19:40 +00:00
Родитель 435e84add2
Коммит c7dc860142
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -75,7 +75,7 @@ class BlockedSiteChild extends ActorChild {
let desc = Services.prefs.getCharPref( let desc = Services.prefs.getCharPref(
"browser.safebrowsing.provider." + provider + ".reportURL", ""); "browser.safebrowsing.provider." + provider + ".reportURL", "");
if (desc) { if (desc) {
doc.getElementById("error_desc_link").setAttribute("href", desc + aEvent.detail.url); doc.getElementById("error_desc_link").setAttribute("href", desc + encodeURIComponent(aEvent.detail.url));
} }
// Set other links in error details. // Set other links in error details.