Allow loading the console individually in a tab

NEW
Assigned to

Status

P2
normal
2 years ago
2 months ago

People

(Reporter: ochameau, Assigned: ochameau)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

MozReview Requests

Submitter Diff Changes Open Issues Last Updated
Loading...
Error loading review requests:

Attachments

(1 attachment)

(Assignee)

Description

2 years ago
As bug 1297758 which ended up dedicated to the inspector, we can load the console in a tab. It will still use the chrome:// URL, but should work today and help making it to work from a hosted protocol.
This is worth doing, but might be a little more complex than the inspector because of the startup path in hudservice.js and the browser console.  If it'd be possible to simplify the startup process by including a script tag in webconsole.xul that'd be better.

Updated

2 years ago
Priority: -- → P2
Comment hidden (mozreview-request)
(Assignee)

Updated

a year ago
Assignee: nobody → poirot.alex
(Assignee)

Comment 3

a year ago
Nicolas, do not hesitate to forward the review to Brian or Honza if you are not confidant reviewing this patch.

The STR to use this is the following:
1) Open about:debugging#tabs
2) Open about:devtools-toolbox url, copy the 'id' value, like 1234
3) then you can open the console in a tab with this url, where you paste the id value:
chrome://devtools/content/webconsole/webconsole.xul?type=tab&id=1234

Note that, as there is no build step on mozilla-central, F5 is going to work for all resources loaded via the BrowserLoader and XUL/CSS.
(Anything loaded via the "other loader" (Loader.jsm), the core loader won't be reloaded as this loader is intanciated once for the whole firefox lifetime)

You may also open a browser toolbox in a tab with this url:
chrome://devtools/content/webconsole/webconsole.xul?type=process
Comment on attachment 8862757 [details]
Bug 1307765 -  Implement about:devtools-toolbox URL parameter in the console.

Passing it to Brian since I am not sure how this relates to Bug 1359597
Attachment #8862757 - Flags: review?(nchevobbe) → review?(bgrinstead)

Comment 5

a year ago
mozreview-review
Comment on attachment 8862757 [details]
Bug 1307765 -  Implement about:devtools-toolbox URL parameter in the console.

https://reviewboard.mozilla.org/r/134626/#review137818

Let's at least wait until we are loading the frontend in the new html file (Bug 1326937) to avoid adding anything new to the xul doc
Attachment #8862757 - Flags: review?(bgrinstead)
Depends on: 1326937
(In reply to Alexandre Poirot [:ochameau] from comment #3)
> You may also open a browser toolbox in a tab with this url:
> chrome://devtools/content/webconsole/webconsole.xul?type=process

That's interesting - I wonder if we could simplify the Browser Console startup by using this

Updated

2 months ago
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.