Skip to content

Fix race condition with setting current tab#54

Merged
Stigmatoz merged 1 commit intoStigmatoz:masterfrom
tschettler:fix-current-tab
Oct 11, 2021
Merged

Fix race condition with setting current tab#54
Stigmatoz merged 1 commit intoStigmatoz:masterfrom
tschettler:fix-current-tab

Conversation

@tschettler
Copy link
Contributor

@tschettler tschettler commented Oct 11, 2021

  • Reverted tab match by host only and opted to try to find the active tab instead.
  • chrome.windows.getLastFocused drops focus for the current window when the extension is opened to show the chart. This causes a race condition where the current tab is most likely cleared out by the time the chart is displayed. The fix is to allow preserving currentTab when closing the time interval.
  • Removed activity.clearCurrentActiveTab as it is unused.
  • Fixed additional issue with setActiveTooltip to correctly find tooltip by host.

image

@tschettler tschettler mentioned this pull request Oct 11, 2021
@Stigmatoz Stigmatoz merged commit 94bce57 into Stigmatoz:master Oct 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants