Bug 1531013: Replace makeURI with Services.io.newURI in browser-places.js r=johannh
authorShruti <shruti10gandotra@gmail.com>
Wed, 06 Mar 2019 09:27:55 +0000
changeset 520467 578e042ec884828152da1c5f0c556d44f8068f64
parent 520466 a5128f7a48e2be86fe97f05266bb71e1218d9a25
child 520468 f1dd1d737828a3a177a7d885bf0d2f8ed1e337e1
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjohannh
bugs1531013
milestone67.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 1531013: Replace makeURI with Services.io.newURI in browser-places.js r=johannh Differential Revision: https://phabricator.services.mozilla.com/D21668
browser/base/content/browser-places.js
--- a/browser/base/content/browser-places.js
+++ b/browser/base/content/browser-places.js
@@ -448,17 +448,17 @@ var PlacesCommandHook = {
     }
 
     let defaultInsertionPoint = new PlacesInsertionPoint({
       parentId: PlacesUtils.bookmarksMenuFolderId,
       parentGuid: PlacesUtils.bookmarks.menuGuid,
     });
     PlacesUIUtils.showBookmarkDialog({ action: "add",
                                        type: "bookmark",
-                                       uri: makeURI(url),
+                                       uri: Services.io.newURI(url),
                                        title,
                                        defaultInsertionPoint,
                                        hiddenRows: [ "location", "keyword" ],
                                      }, window.top);
   },
 
   /**
    * List of nsIURI objects characterizing tabs given in param.