Closed Bug 1019829 Opened 10 years ago Closed 9 years ago

console.log from scratchpad in browser context does not log synchronously with page's console

Categories

(Core :: XPCOM, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1107699

People

(Reporter: bnicholson, Unassigned)

Details

STR:
1) Go to http://people.mozilla.org/~bnicholson/test/log.html
2) Open a scratchpad in the browser's environment
3) Run the following code:
     console.log("a");
     let evt = new content.CustomEvent("evt");
     content.document.getElementById("form").dispatchEvent(evt);
     console.log("b");

Expected: "a", "got evt", "b"
Actual: "a", "b", "got evt"
If I follow those steps, the web console shows "got evt" and the browser console shows "a", "got evt", "b".  At least on an early-May nightly.
Console objects have their own queues and timers to process logging.
I think there should be just one global (or perhaps per thread) timer+queue.
This bug has been fixed by bug 1107699
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.