Closed Bug 736100 Opened 12 years ago Closed 12 years ago

Make JS Schedule API work in the console

Categories

(Core :: General, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: Yoric, Unassigned)

References

Details

The JS Schedule API (see bugs 736095 and bug 692420) is designed to work from privileged code. It may be useful to make it web-compliant, as are Promises, so as to allow it to work in all contexts where devtools work.

This means:
- detecting that we are not executed in privileged code;
- if so, using another mechanism for importing Promise.jsm (there may already be one available);
- if so, using |window.setTimeout| instead of the current timer;
- using |var| instead of |let|.
JS Schedule API will probably be fully reimplemented. Closing this bug for the moment.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.