Skip to content

Commit

Permalink
Update to 2.6.9
Browse files Browse the repository at this point in the history
- Resolved cookies being cleared, even if not selected to be handled
  • Loading branch information
jrie committed Jan 4, 2018
1 parent ffc138f commit e6a477a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
16 changes: 12 additions & 4 deletions cookies.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,16 +322,24 @@ async function clearCookiesAction (action, data, cookies, domainURL) {
}
}
} else {
if (data[domainURL] === undefined) {
return
}

for (let cookie of cookieData[domainURL]) {
if (hasProfile && hasLogged && data['flagCookies_logged'][domainURL][cookie.name] !== undefined) {
let msg = "Allowed profile cookie on '" + action + "', cookie: '" + cookie.name + "' for '" + domainURL + "'"
if (data[domainURL][cookie.name] === undefined) {
continue
}

if (data[domainURL][cookie.name] === false) {
let msg = "Permitted cookie on '" + action + "', cookie: '" + cookie.name + "' for '" + domainURL + "'"
addToLogData(msg)
if (hasConsole) console.log(msg)
continue
}

if (data[domainURL] !== undefined && data[domainURL][cookie.name] !== undefined && data[domainURL][cookie.name] === false) {
let msg = "Permitted cookie on '" + action + "', cookie: '" + cookie.name + "' for '" + domainURL + "'"
if (hasProfile && hasLogged && data['flagCookies_logged'][domainURL][cookie.name] !== undefined) {
let msg = "Allowed profile cookie on '" + action + "', cookie: '" + cookie.name + "' for '" + domainURL + "'"
addToLogData(msg)
if (hasConsole) console.log(msg)
continue
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"homepage_url": "https://github.com/jrie/flagCookies",
"manifest_version": 2,
"name": "Flag Cookies",
"version": "1.6.8",
"version": "1.6.9",
"permissions": ["cookies", "tabs", "webNavigation", "<all_urls>", "storage", "unlimitedStorage"],
"background": {
"scripts": [
Expand Down

0 comments on commit e6a477a

Please sign in to comment.