@@ -22,7 +22,6 @@ import {
2222 type CookieTableData ,
2323 type TabCookies ,
2424 BLOCK_STATUS ,
25- filterCookiesByFrame ,
2625} from '@ps-analysis-tool/common' ;
2726import {
2827 RefreshButton ,
@@ -49,13 +48,13 @@ import NamePrefixIconSelector from './namePrefixIconSelector';
4948import OrphanedUnMappedInfoDisplay from './orphanedUnMappedInfoDisplay' ;
5049
5150const useCookieListing = ( domainsInAllowList : Set < string > ) => {
52- const { selectedFrame, cookies, getCookiesSetByJavascript, tabFrames } =
53- useCookie ( ( { state, actions } ) => ( {
51+ const { selectedFrame, cookies, getCookiesSetByJavascript } = useCookie (
52+ ( { state, actions } ) => ( {
5453 selectedFrame : state . selectedFrame ,
5554 cookies : state . tabCookies || { } ,
56- tabFrames : state . tabFrames ,
5755 getCookiesSetByJavascript : actions . getCookiesSetByJavascript ,
58- } ) ) ;
56+ } )
57+ ) ;
5958
6059 const { activePanelQuery, clearActivePanelQuery } = useSidebar (
6160 ( { state } ) => ( {
@@ -64,11 +63,6 @@ const useCookieListing = (domainsInAllowList: Set<string>) => {
6463 } )
6564 ) ;
6665
67- const frameFilteredCookies = useMemo (
68- ( ) => filterCookiesByFrame ( cookies , tabFrames , selectedFrame ) ,
69- [ cookies , selectedFrame , tabFrames ]
70- ) ;
71-
7266 const parsedQuery = useMemo (
7367 ( ) => JSON . parse ( activePanelQuery || '{}' ) ,
7468 [ activePanelQuery ]
@@ -498,7 +492,7 @@ const useCookieListing = (domainsInAllowList: Set<string>) => {
498492 parsedQuery
499493 ) ,
500494 filterValues : calculateExemptionReason (
501- frameFilteredCookies ,
495+ Object . values ( cookies ) ,
502496 clearActivePanelQuery ,
503497 parsedQuery ?. filter ?. exemptionReason
504498 ) ,
@@ -509,7 +503,7 @@ const useCookieListing = (domainsInAllowList: Set<string>) => {
509503 useGenericPersistenceKey : true ,
510504 } ,
511505 } ) ,
512- [ clearActivePanelQuery , cookies , frameFilteredCookies , parsedQuery ]
506+ [ clearActivePanelQuery , cookies , parsedQuery ]
513507 ) ;
514508
515509 const searchKeys = useMemo < string [ ] > (
0 commit comments