After discussed with :bz offline, I decided to use runnable to run the function which would trigger script in D60937, which can ensure that we run the script in the empty callstack.
Bug 1614457 Comment 1 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
After discussed with :bz offline, in D60937 I decided to use a runnable to run the function which would trigger script, which can ensure that we run the script in the empty callstack.