And actually, another possibility could be that, given that LocalStorage's design is inherently problematic when multiple processes exist, that we could change the task source used by LocalStorage to explicitly be different from other task sources so that ordering is not guaranteed relative to async APIs.
Bug 1740144 Comment 13 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
And actually, another possibility could be that, given that LocalStorage's design is inherently problematic when multiple processes exist (or rather, single origins exist in multiple processes and have means of communication), that we could change the task source used by LocalStorage to explicitly be different from other task sources so that ordering is not guaranteed relative to async APIs.