Closed Bug 1438542 Opened 6 years ago Closed 6 years ago

logStringMessage() does not work after the Browser Console is opened

Categories

(DevTools :: Console, defect, P1)

defect

Tracking

(firefox60 fixed)

RESOLVED FIXED
Firefox 60
Tracking Status
firefox60 --- fixed

People

(Reporter: miker, Assigned: nchevobbe)

References

Details

(Whiteboard: [newconsole-mvp])

Attachments

(2 files)

This used to work with the old frontend:

```
hud = await HUDService.toggleBrowserConsole();
Services.console.logStringMessage("test2");
await waitFor(() => findMessage(hud, "test2"));
```

It times out waiting for "test 2", which isn't actually displayed in the Browser Console.

Logging the message and then opening the console works just fine:

```
Services.console.logStringMessage("test2");
hud = await HUDService.toggleBrowserConsole();
await waitFor(() => findMessage(hud, "test2"));
```
Has Regression Range: --- → no
Has STR: --- → no
Has STR: no → yes
Blocks: 1362023
Whiteboard: [newconsole-mvp]
The string is logged to e.g. bash but is not logged in the browser console.
Assignee: mratcliffe → nchevobbe
Comment on attachment 8952143 [details]
Bug 1438542 - Fix rendering of non-cached message issued from logStringMessage; .

https://reviewboard.mozilla.org/r/221374/#review227220
Attachment #8952143 - Flags: review?(mratcliffe) → review+
Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/58cf8ba79e97
Fix rendering of non-cached message issued from logStringMessage; r=miker.
https://hg.mozilla.org/mozilla-central/rev/58cf8ba79e97
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 60
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: