Closed Bug 338899 Opened 20 years ago Closed 20 years ago

be nice to -jsconsole (no duplicate windows, no unrequested windows)

Categories

(Toolkit Graveyard :: Error Console, defect)

1.8 Branch
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.8.1beta1

People

(Reporter: zeniko, Assigned: zeniko)

Details

(Keywords: fixed1.8.1)

Attachments

(1 file, 1 obsolete file)

The -jsconsole command line flag is currently quite broken: (1) it's impossible to open only the JavaScript Console (missing preventDefault) and (2) running a Toolkit app with -jsconsole twice yields two console windows instead just one.
Attached patch fix for both issues (obsolete) — Splinter Review
Assignee: nobody → zeniko
Status: NEW → ASSIGNED
Attachment #222958 - Flags: review?(benjamin)
Comment on attachment 222958 [details] [diff] [review] fix for both issues I do not think that -jsconsole ought to prevent the default action.
Attachment #222958 - Flags: review?(benjamin) → review-
Why not? Shouldn't it be possible to either open just the JS console (to allow manually loading XPCOM components before opening a browser window) or to additionally open the JS console from the command line without getting a second browser window? Obviously, preventing the default action still lets you open - among others - XUL windows (-chrome), http URLs (-url) or an empty browser window (-browser). But also having the choice to get none of these would be nice.
Attachment #222958 - Attachment is obsolete: true
Attachment #223848 - Flags: review?(benjamin)
Attachment #223848 - Flags: review?(benjamin) → review+
Attachment #223848 - Flags: approval-branch-1.8.1?(mconnor)
Attachment #223848 - Flags: approval-branch-1.8.1?(mconnor) → approval-branch-1.8.1+
Whiteboard: [checkin needed]
Checked in on the branch and trunk. I made a mistake in the checkin comment, I put "r=mconnor" instead of "r=bsmedberg". mozilla/toolkit/components/console/jsconsole-clhandler.js 1.5 mozilla/toolkit/components/console/jsconsole-clhandler.js 1.3.6.2
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Keywords: fixed1.8.1
Resolution: --- → FIXED
Whiteboard: [checkin needed]
Target Milestone: --- → Firefox 2 beta1
Version: unspecified → 2.0 Branch
Product: Firefox → Toolkit
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: