@@ -326,14 +326,15 @@ export async function exportTabInternal(sourceTab, { addonId, light, isContextTa
326
326
const tabStates = sourceTab . $TST . states ;
327
327
const exportedTab = {
328
328
id : sourceTab . id ,
329
+ windowId : sourceTab . windowId ,
329
330
states : Constants . kTAB_SAFE_STATES_ARRAY . filter ( state => tabStates . has ( state ) ) ,
330
331
indent : parseInt ( sourceTab . $TST . getAttribute ( Constants . kLEVEL ) || 0 ) ,
331
332
children,
332
333
ancestorTabIds : sourceTab . $TST . ancestorIds ,
333
334
bundledTabId : sourceTab . $TST . bundledTabId ,
334
335
} ;
335
336
if ( light )
336
- return exportTab ;
337
+ return exportedTab ;
337
338
338
339
const allowedProperties = new Set ( [
339
340
// basic tabs.Tab properties
@@ -360,7 +361,7 @@ export async function exportTabInternal(sourceTab, { addonId, light, isContextTa
360
361
'status' ,
361
362
'successorId' ,
362
363
'width' ,
363
- 'windowId' ,
364
+ // 'windowId',
364
365
] ) ;
365
366
366
367
if ( permissions . has ( kPERMISSION_TABS ) ||
@@ -1275,12 +1276,17 @@ async function sanitizeMessage(message, { addonId, tabProperties, cache, isConte
1275
1276
light : ! ! addon . lightTree ,
1276
1277
cache,
1277
1278
isContextTab,
1278
- } ) ) )
1279
+ } ) ) ) ;
1279
1280
sanitizedProperties [ name ] = tabs . filter ( tab => ! ! tab ) ;
1280
1281
} ) ( treeItem ) ) ;
1281
1282
else
1282
1283
tasks . push ( ( async ( ) => {
1283
- sanitizedProperties [ name ] = await exportTab ( treeItem , { addonId : addon . id , cache, isContextTab } ) ;
1284
+ sanitizedProperties [ name ] = await exportTab ( treeItem , {
1285
+ addonId : addon . id ,
1286
+ light : ! ! addon . lightTree ,
1287
+ cache,
1288
+ isContextTab,
1289
+ } ) ;
1284
1290
} ) ( ) ) ;
1285
1291
}
1286
1292
}
0 commit comments