@@ -82,7 +82,6 @@ import type {
82
82
InnerWindowID ,
83
83
Pid ,
84
84
OriginsTimelineRoot ,
85
- DataSource ,
86
85
} from 'firefox-profiler/types' ;
87
86
88
87
import type {
@@ -127,7 +126,6 @@ export function loadProfile(
127
126
transformStacks : TransformStacksPerThread ,
128
127
browserConnection : BrowserConnection | null ,
129
128
skipSymbolication : boolean , // Please use this in tests only.
130
- dataSource : DataSource ,
131
129
| } > = { } ,
132
130
initialLoad : boolean = false
133
131
) : ThunkAction < Promise < void >> {
@@ -157,7 +155,6 @@ export function loadProfile(
157
155
pathInZipFile : config . pathInZipFile ,
158
156
implementationFilter : config . implementationFilter ,
159
157
transformStacks : config . transformStacks ,
160
- dataSource : config . dataSource ,
161
158
} ) ;
162
159
163
160
// During initial load, we are upgrading the URL and generating the UrlState
@@ -716,7 +713,6 @@ export function viewProfile(
716
713
transformStacks : TransformStacksPerThread ,
717
714
skipSymbolication : boolean ,
718
715
browserConnection : BrowserConnection | null ,
719
- dataSource : DataSource ,
720
716
| } > = { }
721
717
) : ThunkAction < Promise < void >> {
722
718
return async ( dispatch ) => {
@@ -1659,6 +1655,11 @@ export function retrieveProfileForRawUrl(
1659
1655
dispatch ( viewProfileFromPostMessage ( data . profile ) ) ;
1660
1656
break ;
1661
1657
case 'is-ready' : {
1658
+ // The "inject-profile" event could be coming from a variety of locations.
1659
+ // It could come from a `window.open` call on another page. It could come
1660
+ // from an addon. It could come from being embedded in an iframe. In order
1661
+ // to generically support these cases allow the opener to poll for the
1662
+ // "is-ready" message.
1662
1663
console . log (
1663
1664
'Responding via postMessage that the profiler is ready.'
1664
1665
) ;
0 commit comments