Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(background/TabState): use tabId as tab isn't a live reference to tab #437

Merged
merged 8 commits into from
Jul 23, 2024

Conversation

dianafulga
Copy link
Contributor

@dianafulga dianafulga commented Jul 19, 2024

Closes #286
Closes #287

The data is deleted immediately after the tab closes because reopening the tab (cmd + shift + T) will generate a new tabId anyway.

@github-actions github-actions bot added the area: background Improvements or additions to extension background script label Jul 19, 2024
@raducristianpopa
Copy link
Member

raducristianpopa commented Jul 19, 2024

Extension builds preview

Name Link
Latest commit 0f2fe30
Latest job logs Run #10056657691
BadgeDownload
BadgeDownload

@dianafulga dianafulga changed the title Df overpay fix: Df overpay Jul 19, 2024
@dianafulga dianafulga changed the title fix: Df overpay fix: Overpay Jul 19, 2024
@sidvishnoi
Copy link
Member

sidvishnoi commented Jul 19, 2024

reopening the tab (cmd + shift + T) will generate a new tabId anyway

Does this work cross browser?

@sidvishnoi sidvishnoi changed the title fix: Overpay fix(background/TabState): use tabId as tab isn't a live reference to tab Jul 19, 2024
Copy link
Member

@sidvishnoi sidvishnoi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Some nits and that cross-browser concern to be addressed.

@dianafulga dianafulga requested a review from sidvishnoi July 23, 2024 04:58
@sidvishnoi
Copy link
Member

reopening the tab (cmd + shift + T) will generate a new tabId anyway

Does this work cross browser?

@dianafulga does it work same in Firefox?

@sidvishnoi
Copy link
Member

I checked and can confirm this works in Firefox also.

src/background/services/tabState.ts Outdated Show resolved Hide resolved
src/background/services/tabState.ts Outdated Show resolved Hide resolved
src/background/services/tabState.ts Outdated Show resolved Hide resolved
src/background/services/tabState.ts Outdated Show resolved Hide resolved
src/background/services/tabState.ts Outdated Show resolved Hide resolved
src/background/services/tabState.ts Outdated Show resolved Hide resolved
@sidvishnoi sidvishnoi merged commit 289191b into main Jul 23, 2024
8 checks passed
@sidvishnoi sidvishnoi deleted the df--overpay branch July 23, 2024 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: background Improvements or additions to extension background script
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Background] [TO REFINE] Clear outdated data regarding overpaying [Background] Overpaying
3 participants