Skip to content

Force canvas redraw when system theme changes#5861

Merged
fatadel merged 4 commits intofirefox-devtools:mainfrom
fatadel:redraw-canvases-5817
Feb 26, 2026
Merged

Force canvas redraw when system theme changes#5861
fatadel merged 4 commits intofirefox-devtools:mainfrom
fatadel:redraw-canvases-5817

Conversation

@fatadel
Copy link
Contributor

@fatadel fatadel commented Feb 25, 2026

Closes #5817.

Use the STR from original issue.
Profile with the patch.

@fatadel fatadel requested review from canova and mstange February 25, 2026 12:52
@canova
Copy link
Member

canova commented Feb 25, 2026

Nice. I also see that there is the same issue on the timeline markers (above the activity graph). Can you fix them as well?

Copy link
Member

@canova canova left a comment

Choose a reason for hiding this comment

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

(removing from my queue)

@fatadel
Copy link
Contributor Author

fatadel commented Feb 25, 2026

@canova Done ✅ It seems like these were all the places were changes needed...

@canova canova self-requested a review February 25, 2026 14:26
Copy link
Member

@canova canova left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks!

@codecov
Copy link

codecov bot commented Feb 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.57%. Comparing base (37b31b0) to head (67f9cf8).
⚠️ Report is 30 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5861      +/-   ##
==========================================
+ Coverage   85.56%   85.57%   +0.01%     
==========================================
  Files         319      319              
  Lines       31420    31449      +29     
  Branches     8661     8677      +16     
==========================================
+ Hits        26885    26914      +29     
  Misses       4104     4104              
  Partials      431      431              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@fatadel fatadel merged commit 6b4745d into firefox-devtools:main Feb 26, 2026
21 checks passed
@fatadel fatadel deleted the redraw-canvases-5817 branch February 26, 2026 13:23
tenderlove added a commit to tenderlove/profiler that referenced this pull request Mar 2, 2026
* main: (289 commits)
  Escape CSS URLs that are coming from profiles (firefox-devtools#5874)
  Memoize the computation of search filtering across threads.
  Memoize the computation of the implementation-filtered thread across threads.
  Memoize the computation of the call node table across threads.
  Reserve functions for collapsed resources globally.
  Correctly adjust transforms when merging profiles.
  Use Int32Array and oldXToNewXPlusOne convention in merge-compare.ts.
  Make profile compacting apply to the newly-shared tables.
  Update snapshots.
  Share the stackTable, frameTable, funcTable, resourceTable and nativeSymbols across threads.
  Update docsify to v4.13.1 with a PR manually patched
  Remove unused ga docsify plugin
  Remove async attribute from module script tag. (firefox-devtools#5870)
  Bump rollup from 2.79.2 to 2.80.0
  Remove unused defaultCategory parameter.
  Implement the "collapse resource" transform with the help of the "collapse direct recursion" transform.
  Persist selected marker in URL and show sticky tooltip on load (firefox-devtools#5847)
  Fix unhandled promise rejection in setupInitialUrlState (firefox-devtools#5864)
  Force canvas redraw when system theme changes (firefox-devtools#5861)
  Fix the color of dark mode back arrow svg (firefox-devtools#5863)
  ...
@canova canova mentioned this pull request Mar 3, 2026
canova added a commit that referenced this pull request Mar 3, 2026
Changes:

[fatadel] Fix crash when nativeSymbol index is out of bounds in assembly
view (#5850)
[depfu[bot]] Update all Yarn dependencies (2026-02-25) (#5859)
[Nazım Can Altınova] Fix the color of dark mode back arrow svg (#5863)
[fatadel] Force canvas redraw when system theme changes (#5861)
[Nazım Can Altınova] Fix unhandled promise rejection in
setupInitialUrlState (#5864)
[fatadel] Persist selected marker in URL and show sticky tooltip on load
(#5847)
[Markus Stange] Implement the "collapse resource" transform with the
help of the "collapse direct recursion" transform. (#5824)
[Markus Stange] Bump rollup from 2.79.2 to 2.80.0 (#5868)
[Markus Stange] Remove async attribute from module script tag. (#5870)
[Nazım Can Altınova] Update the docsify package that's used in the user
documentation (#5872)
[Markus Stange] Share stackTable, frameTable, funcTable, resourceTable
and nativeSymbols between threads (#5482)
[Nazım Can Altınova] Escape CSS URLs that are coming from profiles
(#5874)
[fatadel] Update home page message for the other browser case (#5866)
[fatadel] Add support for ternaries in marker labels (#5857)
[Markus Stange] Reduce allocations for getStackLineInfo +
getStackAddressInfo (#5761)

And special thanks to our localizers:

de: Ger
fy-NL: Fjoerfoks
it: Francesco Lodolo [:flod]
nl: Fjoerfoks
ru: berry
ru: Valery Ledovskoy
zh-TW: Pin-guang Chen
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.

Canvases don't redraw when system theme changes

2 participants