Skip to content

Commit

Permalink
Removed calls to browser.history.deleteUrl() (issue #92)
Browse files Browse the repository at this point in the history
  • Loading branch information
aecreations committed Mar 16, 2024
1 parent be95624 commit 468f9bb
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 13 deletions.
5 changes: 1 addition & 4 deletions wx-src/background.js
Expand Up @@ -903,15 +903,12 @@ async function openChangeIconDlg()
}

let wnd = await browser.windows.create({
url, type: "detached_panel",
url, type: "popup",
width, height,
left, top
});

await aePrefs.setPrefs({_changeIconWndID: wnd.id});

// TO DO: This might not be needed anymore?
browser.history.deleteUrl({ url });
}
// END nested functions

Expand Down
1 change: 0 additions & 1 deletion wx-src/manifest.json
Expand Up @@ -21,7 +21,6 @@

"permissions": [
"cookies",
"history",
"menus",
"storage",
"tabs"
Expand Down
2 changes: 0 additions & 2 deletions wx-src/pages/changeIcon.js
Expand Up @@ -12,8 +12,6 @@ function $(aID)

async function init()
{
browser.history.deleteUrl({url: window.location.href});

let prefs = await aePrefs.getAllPrefs();

if (prefs.toolbarBtnRevContrastIco) {
Expand Down
2 changes: 0 additions & 2 deletions wx-src/pages/options.js
Expand Up @@ -45,8 +45,6 @@ async function init(aEvent)
tabCustomize.addEventListener("click", switchPrefsPanel);
tabCustomize.setAttribute("aria-selected", "false");

browser.history.deleteUrl({url: window.location.href});

gRadioPanels = [
{
radioBtnID: "panic-action-hide-and-replace",
Expand Down
2 changes: 0 additions & 2 deletions wx-src/pages/restoreSession.js
Expand Up @@ -12,8 +12,6 @@ function $(aID)

async function init(aEvent)
{
browser.history.deleteUrl({ url: window.location.href });

$("btn-accept").addEventListener("click", async (aEvent) => {
let resp = await browser.runtime.sendMessage({
msgID: "get-restore-sess-passwd",
Expand Down
2 changes: 0 additions & 2 deletions wx-src/pages/whatsnew.js
Expand Up @@ -12,8 +12,6 @@ function $(aID)

async function init()
{
browser.history.deleteUrl({url: window.location.href});

let extInfo = browser.runtime.getManifest();
let contribCTA = browser.i18n.getMessage("contribCTA", aeConst.URL_DONATE);

Expand Down

0 comments on commit 468f9bb

Please sign in to comment.