mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-10 01:07:31 +09:00
Issue #756 - Remove Contextual Identity from UnifiedComplete
reverts m-c 1287866
This commit is contained in:
parent
ac50c95756
commit
50bf383712
6 changed files with 40 additions and 116 deletions
|
|
@ -286,19 +286,19 @@ var addBookmark = Task.async(function* (aBookmarkObj) {
|
|||
}
|
||||
});
|
||||
|
||||
function addOpenPages(aUri, aCount=1, aUserContextId=0) {
|
||||
function addOpenPages(aUri, aCount=1) {
|
||||
let ac = Cc["@mozilla.org/autocomplete/search;1?name=unifiedcomplete"]
|
||||
.getService(Ci.mozIPlacesAutoComplete);
|
||||
for (let i = 0; i < aCount; i++) {
|
||||
ac.registerOpenPage(aUri, aUserContextId);
|
||||
ac.registerOpenPage(aUri);
|
||||
}
|
||||
}
|
||||
|
||||
function removeOpenPages(aUri, aCount=1, aUserContextId=0) {
|
||||
function removeOpenPages(aUri, aCount=1) {
|
||||
let ac = Cc["@mozilla.org/autocomplete/search;1?name=unifiedcomplete"]
|
||||
.getService(Ci.mozIPlacesAutoComplete);
|
||||
for (let i = 0; i < aCount; i++) {
|
||||
ac.unregisterOpenPage(aUri, aUserContextId);
|
||||
ac.unregisterOpenPage(aUri);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue