Skip to content

Fix type error in getPagesMap#5063

Merged
canova merged 2 commits into
firefox-devtools:mainfrom
ishitatsuyuki:patch-1
Jul 24, 2024
Merged

Fix type error in getPagesMap#5063
canova merged 2 commits into
firefox-devtools:mainfrom
ishitatsuyuki:patch-1

Conversation

@ishitatsuyuki

Copy link
Copy Markdown
Contributor

The top page has its innerWindowID inserted into the page map, instead of the page object itself. This seems wrong, so fix it.

Found when playing with TypeScript, but I've never got to find a test case that breaks with this.

The top page has its innerWindowID inserted into the page map, instead of the page object itself. This seems wrong, so fix it.

Found when playing with TypeScript, but I've never got to find a test case that breaks with this.
@codecov

codecov Bot commented Jul 20, 2024

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 88.48%. Comparing base (77f9c6a) to head (2bf5a8b).

Files Patch % Lines
src/selectors/profile.js 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5063   +/-   ##
=======================================
  Coverage   88.48%   88.48%           
=======================================
  Files         304      304           
  Lines       27444    27444           
  Branches     7423     7423           
=======================================
  Hits        24285    24285           
  Misses       2934     2934           
  Partials      225      225           

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

@canova canova left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the fix! This selector is not used in the current view, it was only used in one of our experimental views that never shipped. But I actually have plans to use it, so it's good that this issue is fixed :)

@canova canova merged commit 7d159da into firefox-devtools:main Jul 24, 2024
@ishitatsuyuki ishitatsuyuki deleted the patch-1 branch July 25, 2024 00:27
@canova canova mentioned this pull request Sep 5, 2024
canova added a commit that referenced this pull request Sep 5, 2024
[Tatsuyuki Ish] Fix type error in getPagesMap (#5063)
[Nazım Can Altınova] [Tab selector 1] Add a redux state for the tab
filter (#5072)
[Markus Stange] Remove a test for the inverted stack chart. (#5075)
[Markus Stange] Add an inverted tree test for getSamplesSelectedStates
and getTreeOrderComparator (#5076)
[Nazım Can Altınova] [Tab selector 2] Extract the page data in the full
view (#5073)
[Nazım Can Altınova] Do not crash on timeline hover/selection when a
profile doesn't have any samples or markers (#5086)
[Nazım Can Altınova] [Tab selector 3] Generate page information for all
tabs (#5082)
[Nazım Can Altınova] [Tab selector 4] Add a getTabToThreadIndexesMap
selector to get relevant threads per tab (#5087)
[joshuaobrien] Use the word 'archive' instead of 'zip file' in copy
(#5081)
[Markus Stange] Send a UserAgent header to the symbolication server
again (#5103)
[Julien Wajsberg] Add some console utilities to retrieve the current
profile and save it to disk (#5105)
[Nazım Can Altınova]  Add `selectedMarker` to the console APIs (#5107)
And various dependency updates.
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