OpenWPM icon indicating copy to clipboard operation
OpenWPM copied to clipboard

Set javascript.options.asyncstack to true

Open englehardt opened this issue 5 years ago • 6 comments

See https://searchfox.org/mozilla-central/rev/7cadba1d8b8feaec4615f5bb98aac4b8a719793c/modules/libpref/init/all.js#1132-1141. This is only true by default in Nightly/dev edition.

We should also add test pages for various async API accesses, e.g., setTimeout.

englehardt avatar Jun 03 '20 17:06 englehardt

is this still open sir @englehardt ?

Ayushsunny avatar Apr 23 '21 22:04 Ayushsunny

As far as I can tell, yes, this issue is still open. Do you want to work on this after #870

vringar avatar Apr 26 '21 13:04 vringar

As far as I can tell, yes, this issue is still open. Do you want to work on this after #870

yeah sure

Ayushsunny avatar Apr 26 '21 13:04 Ayushsunny

Hello @vringar Sir I couldn't find the javascript.option.asyncstack which we're going to set true. can you help me with that ?

Ayushsunny avatar Apr 29 '21 15:04 Ayushsunny

Hey, You will need to set the option true in this function https://github.com/mozilla/OpenWPM/blob/18e12864cef5d7a8c855db7e78cdeebb7c445836/openwpm/deploy_browsers/configure_firefox.py#L132-L252

I'd expect something like

# Enabling callstack capture across async APIs e.g. setTimeout
prefs["javascript.option.asyncstack"]=True

vringar avatar Apr 29 '21 22:04 vringar

Hello @vringar Sir I've made PR for this issue. could you review it pls here

Ayushsunny avatar Apr 30 '21 07:04 Ayushsunny