google/tracing-framework

WTF is only injected for first web worker

tantalor opened this issue · 1 comments

Steps to repro,

  1. Under "Web Workers" tracing settings, check "Enabled" and "Inject WTF into Workers"
  2. In Chrome devtools, create a Worker thread with this code,
    • new Worker(window.URL.createObjectURL(new Blob(["console.log('wtf?', !!this.wtf)"])))
  3. Observe "wtf? true" is logged
  4. Repeat step 2
  5. Observe "wtf? false" is logged

Chrome 40.0.2214.91
Web Tracing Framework 2015.1.6.1

It would be really nice support injecting into more workers in the next release.

And I commend tantalor on his exceptional repro steps.