Bug 1467713 - Part 3 - Remove the unused setOrigin function. r=jaws
authorPaolo Amadini <paolo.mozmail@amadzone.org>
Tue, 05 Jun 2018 15:27:24 +0100
changeset 422018 cd9e34c79fdb5bb215f7175baa04c6c54bc519a3
parent 422017 702a0f9d90233a69b8761d2755ce97073a2d23f6
child 422019 2ebd60198511bd7465b04740c4a1b514dd039c34
push id34114
push userbtara@mozilla.com
push dateSat, 09 Jun 2018 15:31:58 +0000
treeherdermozilla-central@e02a5155d815 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws
bugs1467713
milestone62.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1467713 - Part 3 - Remove the unused setOrigin function. r=jaws MozReview-Commit-ID: 3CpU7zY9JFJ
browser/components/preferences/permissions.js
--- a/browser/components/preferences/permissions.js
+++ b/browser/components/preferences/permissions.js
@@ -453,21 +453,13 @@ var gPermissionManager = {
                                                         this._lastPermissionSortAscending);
     this._lastPermissionSortColumn = aColumn;
     let sortDirection = this._lastPermissionSortAscending ? "descending" : "ascending";
     let cols = document.querySelectorAll("treecol");
     cols.forEach(c => c.removeAttribute("sortDirection"));
     let column = document.querySelector(`treecol[data-field-name=${aColumn}]`);
     column.setAttribute("sortDirection", sortDirection);
   },
-
-  setOrigin(aOrigin) {
-    document.getElementById("url").value = aOrigin;
-  }
 };
 
-function setOrigin(aOrigin) {
-  gPermissionManager.setOrigin(aOrigin);
-}
-
 function initWithParams(aParams) {
   gPermissionManager.init(aParams);
 }