Closed
Bug 77730
Opened 24 years ago
Closed 17 years ago
JavaScript on/off indicator in Error Console
Categories
(Core Graveyard :: Error Console, enhancement)
Core Graveyard
Error Console
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: alexeyc2003, Unassigned)
Details
(Whiteboard: [fixedBeonex][geekweb-fixed])
Attachments
(4 files, 11 obsolete files)
3.47 KB,
patch
|
Details | Diff | Splinter Review | |
14.56 KB,
patch
|
Biesinger
:
review+
|
Details | Diff | Splinter Review |
6.42 KB,
image/png
|
Details | |
1.50 KB,
image/png
|
Details |
This RFE is about reflecting JavaScript options which are currently located at
Preferences -> Advanced, inside JavaScript Console.
1.
We need an indication of wether JavaScript is on or off in JS Console. This can
be reflected in Console title. Or when JS is off, just print a message in the
Console saying so.
At the moment if someone disables JavaScript in prefs, it's hard to figure out
why it's not working when HTML page doesn't have <noscript> tag.
Indication of it in JS Console would be of great help.
2.
Provide means of turning JS on or off in JS Console menu.
In the least, this can be done with a link under Edit menu which opens
Preferences -> Advanced.
Or, ideally, an On/Off menu switch.
At the moment to do that have to go back to Browser window, then to Prefs, then
to Advanced and switch it there. This takes too long.
Also might consider moving out JS options from Preferences alltogether and
keeping them in JS Console?
Note:
Indicator/Notifier, I think, should reflect Browser JS status, not Mail/News JS.
Unless can think of a non-confusing way to do both.
Updated•24 years ago
|
Status: NEW → ASSIGNED
Updated•24 years ago
|
Component: JavaScript Debugger → XP Apps
Updated•24 years ago
|
Priority: -- → P5
Hardware: PC → All
Target Milestone: --- → Future
Updated•24 years ago
|
Component: XP Apps → JavaScript Console
Updated•24 years ago
|
Summary: [RFE] JavaScript on/off goodies in JavaScript Console → [RFE] JavaScript on/off indicator in JavaScript Console
Comment 1•23 years ago
|
||
taking, I have a patch which adds a checkbox besides the "Clear" button - this
is both an indicator and a way to turn JS off/on.
Assignee: hewitt → cbiesinger
Status: ASSIGNED → NEW
Comment 2•23 years ago
|
||
Comment 3•23 years ago
|
||
Attachment #78617 -
Attachment is obsolete: true
Comment on attachment 78622 [details] [diff] [review]
patch with accesskey
when you check it in, please use "J" instead of "j"
Attachment #78622 -
Flags: review+
Reporter | ||
Comment 5•23 years ago
|
||
I was actually thinking about a menu being inserted in between View and Tools
which would contain enable/disable checkbox switches for the following preferences:
JavaScript in Navigator
JavaScript in Mail & News (possibly with a security warning?)
-----
Show Strict Warnings
Show Errors in Mozilla chrome
And any other JS-related prefs. And then possibly removing some or all of them
from the Prefs dialog?
But this is still very good and better than nothing. :o)
Comment 6•23 years ago
|
||
I used the checkbox in the toolbar because it is IMHO easier to access there,
there's enough space and it can easily serve as the indicator you want.
> And then possibly removing some or all of them
> from the Prefs dialog?
I'm unable to find JS Console preferences in the Pref Dialog - can you tell me
where they are?
Status: NEW → ASSIGNED
Reporter | ||
Comment 7•23 years ago
|
||
Oh the ease of access is not an issue here. Turning JavaScript on and off isn't
something you would do on a regular basis. You would do it to test something,
and do it very rarely.
The issue is, when you turned off JS during testing few days ago and forgot
about it, you try to debug another script and it doesn't work. Console is the
first place you look to see if there are any errors. And when there are none,
yet the script is not working, you start wasting time debugging it, thinking
that you screwed up with script's logic somewhere. That is until you realise the
JS is switched off.
It's not as much a need for being able to turn JS on and off quickly, but rather
a need for being able to find the option more quickly. And putting it into JS
console menu would serve the purpose very well. "No erros? Why it's not working
then? Oh! Familiar menu! I was switching off things in here yesterday! Silly me!"
The JS options in Prefs dialog can be found under 2 panes:
Advanced->Scripts & Windows
Debug
I'm not aware if there are any more. Rather hard to find aren't they? So yeah, a
menu in JS Console would simplify things greatly.
Comment 8•23 years ago
|
||
I don't quite agree. JS Console needs no way for setting MailNews' JS Enabled
state, because that's set far too seldom. The checkbox can serve both as a
indicator that you want anyway and as a way for toggling the state.
The other two prefs you mention (Show Strict Warnings, Show Errors in Mozilla
chrome), on the other hand, should probably be part of JS Console menus and be
removed from the preferences.
I'll work on a patch to do this.
Comment 9•23 years ago
|
||
Also adds the two preferences to the View Menu because adding a new menu for
just two items is unnecessary imho.
Attachment #78622 -
Attachment is obsolete: true
Comment 10•23 years ago
|
||
OK, so if I understand you correctly, this should be what you want:
To the right of the clear button is now a text reading "Javascript is
{enabled|disabled}", and there are the three prefs in the View Menu. (if any of
these settings is changed while js console is open, the pref indicators are
updated).
Does this satisfy you now? :)
Attachment #79062 -
Attachment is obsolete: true
Reporter | ||
Comment 11•23 years ago
|
||
Sounds grrrrrrrreat as long as the text is clearly separated from the toolbar
buttons and can't be confused as one of them and doesn't get in the way.
Might even float it to the right side (put a spring between it and Clear button?)
Would have to consider internationalisation issues of RTL languages here I
guess, dnno I'm not an expert on those. ;o)
Comment 12•23 years ago
|
||
ok, I've now moved the text to the right of the dialog
will attach patch in a second
Comment 13•23 years ago
|
||
Attachment #85029 -
Attachment is obsolete: true
Reporter | ||
Comment 14•23 years ago
|
||
Can you please attach screenshot as well if possible
Comment 15•23 years ago
|
||
could you attach screenshot?
Comment 16•23 years ago
|
||
Comment 17•23 years ago
|
||
Comment 18•23 years ago
|
||
Comment on attachment 87565 [details]
screenshot
sorry, couldn't screenshot the opened menu (gimp wouldn't let me)
Reporter | ||
Comment 19•23 years ago
|
||
It looks kinnda weird and unusual to me.
But hey, it's something!
I'm sure mpt would get medieval on our arses for this, should we summon him? ;o)
Put a toolbarseparator between spacer and label?
What would it look like if the text was of disabled colour?
And how about removing JS stuff from the Prefs in this patch as well?
Doing all in one go.
Comment 20•23 years ago
|
||
Comment 21•23 years ago
|
||
btw, the bottom of the view menu looks like this with my patch:
--------------------------------
Enable _Javascript
Enable _Strict Warnings
Show _Chrome Errors and Warnings
Comment 22•23 years ago
|
||
In my current semi-conscious state I don't find the screenshot to be
particularly bad, though I'm sure people will click on the `JavaScript is
enabled' and wonder why nothing happens. However, that is a theme bug with the
*rest* of the buttons (they don't look like buttons), not a bug with
Christian's fix.
The menu items are a bit unwieldy, however, and they begin with `Enable' which
is redundant with the fact that they're checkbox items. I suggest:
* / Enable _Javascript > / Run Scripts
* / Enable Strict Warnings > / Include Strict Warnings
(Bonus points for changing the equivalent checkbox in the Preferences dialog to
`Run scripts in Web pages'.)
As for `Show _Chrome Errors and Warnings', I find it mildly appalling that
you're trying to include this in the menus. It should be in the Debug panel of
Preferences, and nowhere else.
Reporter | ||
Comment 23•23 years ago
|
||
I just noticed that the Debug Panel itsel has been removed from Preferences in
Mozilla 1.0
No way of activating Strict Warnings? Oh the humanity!
Unless they are enabled by default ofcoarse. Which I reckon they should be, with
that option removed, unless they cause a significant slowdown of some sort to
Mozilla's work. The "All", "Errors", "Warnings" buttons in JS Console replace
this option quite well.
Anyways, mpt, I don't think changing "Enable JavaScript" to "Run JavaScript" will
make it easy for a person who is searching how to disable JavaScript execution
to find it.
I think it should stay as "Enable JavaScript" as this is the wording of this
option users are familiar with across browsers and the one they will look for.
However View menu is not the ideal place for it.
I agree on the rest of your points. Though instead of "Include Strict Warnings",
"Show Strict Warnings" might be a better alternative.
Reporter | ||
Comment 24•23 years ago
|
||
On the second thought, with "Include Strict Warnings" or "Show Strict Warnings"
the "Warnings" button doesn't make much sense. While with "Enable Strict
Warnings" it does.
And once again, View menu is not the best place for "Enable Strict Warnings".
However these options should *definately* be somewhere in the menu of JS Console.
Comment 25•23 years ago
|
||
I can imagine that there are warnings that are not strict warnings (like
reference to undefined property, which I would assume to always be printed). So
a warnings button still makes sense.
And I think View is perfectly suited, because View is the menu controlling the
View, ie. what's in the console, so Chrome Warnings and Strict Warnings
definitely belong in there. I don't think it's worth creating a menu for it.
mpt, on second thought, I think that a statusbar might be a better place for the
information whether JS is enabled or not. Would putting that into a newly
created statusbar be OK with you? (do you want a screenshot of that?)
As for chrome errors and warnings, I think it makes sense putting it into JS
Console, because these are enabled by default and are possibly annoying to web
developers (the target audience of JS Console, who else looks there?), and they
don't want to drown in Mozilla's own errors and warnings, which occur a lot esp.
if strict warnings are on, something web developers might want for their pages.
Comment 26•23 years ago
|
||
any chance for a pref for "show *only* chrome errors/warnings"
Comment 27•23 years ago
|
||
To make it clearer than I thought was necessary: The reason the option for
chrome warnings should be in the Debug panel isn't because a menu would be a
bad place for it if the option existed. It's because the option shouldn't exist
*at all* in release builds. It's useful only for people debugging Mozilla's
front end, not for users, and having a menu item for it would be extremely lame
and unprofessional.
So, Christian, if you're going for a thorough fix-up rather than a shallow
fix-up (thankyou!), here's a shortlist:
(1) remove the toolbar;
(2) replace it with checkbox items in the `View' menu
|
| / Run Web Scripts
| ----------------------------
| / Errors
| / Messages
| / Warnings
| / Include Strict Warnings
| ----------------------------
(where the `Include Strict Warnings' item is only enabled if the `Warnings'
item is checked);
(3) rename the pref in the Preferences dialog to say `Run scripts in Web pages'
(where the `Run Web Scripts' menu item in the JS Console is an abbreviation
of this);
(4) add a status bar in the JS Console reporting on the state of the pref.
Updated•23 years ago
|
Priority: P5 → P1
Comment 28•23 years ago
|
||
remove the strict pref from the debug panel, change wording of enable
javascript
Attachment #87664 -
Attachment is obsolete: true
Comment 29•23 years ago
|
||
(also marking old patch obsolete, since a new one will come soon)
This is the new look of JS Console. Also shows the View Menu.
Attachment #87416 -
Attachment is obsolete: true
Attachment #87564 -
Attachment is obsolete: true
Attachment #87565 -
Attachment is obsolete: true
Comment 30•23 years ago
|
||
Comment on attachment 89918 [details]
Screenshot of new look of JS Console
(1) `All' should not be present.
(2) `Errors', `Messages', and `Warnings' should be checkbox items, not radio
items.
(3) `Messages' should come before `Warnings', so that `Include Strict Warnings'
immediately follows the `Warnings' item on which it depends.
(4) `Errors' should have the accesskey `E'.
(5) `Messages' should have the accesskey `M'.
(6) `Warnings' should have the accesskey `W'.
Other than that, looks good ... :-)
Reporter | ||
Comment 31•23 years ago
|
||
Looking at that screenshot I once again can't help but feel that "Run Web
Scripts" and "Include Strict Warnings" have no place under View menu.
They will only confuse users.
From a user point of view I can't immagine what the difference between
"Warnings" and "Include Strict Warnings" can be.
If you still want to leave them there, I think it's better to rename "Include
Strict Warnings" to "Process Strict Warnings" and move it up next to "Run Web
Scripts".
Comment 32•23 years ago
|
||
screenshot of latest version. now uses checkboxes.
alexey, I'll let mpt comment about that; I personally really want strict
warnings to stay in the menu (or another one)
Attachment #89918 -
Attachment is obsolete: true
Comment 33•23 years ago
|
||
mpt was embarassed when i pointed out [view>run web scripts], so there's a bit
more work to be done
Reporter | ||
Comment 34•23 years ago
|
||
I definately want both of those settings in Console menu as well. But View menu
is just wrong for them! Especially for enabling strict warnings processing.
also mpt:
> (where the `Include Strict Warnings' item is only enabled if the `Warnings'
> item is checked);
This dependancy I believe should be the other way around.
Comment 35•23 years ago
|
||
because mpt (mozilla's ui expert) insisted on Include Strict Warnings to be
named like that and be placed in the View menu, I left that as-is.
Comment 36•23 years ago
|
||
Comment on attachment 89932 [details] [diff] [review]
console part of patch
the one change we talked about on irc, and clarification from mpt about clear.
Attachment #89932 -
Flags: review+
Attachment #89932 -
Flags: needs-work+
Comment 37•23 years ago
|
||
(attachment 89914 [details] [diff] [review] is also needed)
Attachment #89932 -
Attachment is obsolete: true
Comment 38•23 years ago
|
||
Comment on attachment 89940 [details] [diff] [review]
final (?) patch
marking timeless's r=
Attachment #89940 -
Flags: review+
Updated•23 years ago
|
Target Milestone: Future → mozilla1.1beta
Comment 40•23 years ago
|
||
Can we get a screenshot of what it looks like now?
rginda, are you as module owner okay with these changes?
Comment 41•23 years ago
|
||
oh, rginda is the module owner? I thought hewitt was...
sure, I'll create a screenshot in a second
Comment 42•23 years ago
|
||
Attachment #89926 -
Attachment is obsolete: true
Comment 43•23 years ago
|
||
Reporter | ||
Comment 44•23 years ago
|
||
Me and mpt have agreed on IRC that above menu layout spec is totally
inappropriate for the functions that these menu items perform.
The spec needs to be redesigned.
Comment 45•23 years ago
|
||
ok guys. can you, at least one time, create a finished spec and only _then_ let
someone implement it?
Comment 46•23 years ago
|
||
The screenshots look great. Excellent work, Christian.
Comment 47•23 years ago
|
||
hewitt is module owner here, jsconsole != jsdebugger.
Comment 48•23 years ago
|
||
Silly rabbit, don't remove the toolbar!!! I use that all the time while debugging!
Comment 49•23 years ago
|
||
hewitt, well, you still have the options in the menu that now are in the toolbar...
if you really want me to I can of course add the toolbar back, I suppose...
Comment 50•23 years ago
|
||
rginda, hewitt: oops
hewitt: the toolbar, if kept, would have to contain checkbox or toggle buttons
to show individual on/off display states (see attachment 92878 [details] and comment 30)
for "Errors", "Messages", "Warnings". That seems rather ugly (but maybe it
isn't?), so I then thought about a menulist which allows one to toggle the
states, but that's then essentially the same as the menu. The only thing left
would be "clear", which doesn't justify a toolbar by itself, so (apparently)
it's under the File menu now.
I can see where a toolbar would still be a good thing if you need to change this
stuff a lot while developing, so perhaps you could sketch us how you're
currently using the toolbar so we (well, they ;-) can take that into consideration?
What would make the js console a lot better for me is if I could delete (clear)
individual items and ranges, and/or if I could filter on site vs chrome. But
that's another bug (or two).
Updated•23 years ago
|
Whiteboard: fixedBeonex
Comment 51•23 years ago
|
||
I have learned that UI patches are not wanted in this project. reassigning to
default owner.
Assignee: cbiesinger → hewitt
Status: ASSIGNED → NEW
QA Contact: rginda → jrgm
Comment 52•23 years ago
|
||
hewitt: Checkboxes do not belong on a toolbar.
Whiteboard: fixedBeonex → fixedBeonex [geekweb-P3]
Updated•23 years ago
|
Whiteboard: fixedBeonex [geekweb-P3] → [fixedBeonex][geekweb-fixed]
Updated•23 years ago
|
Summary: [RFE] JavaScript on/off indicator in JavaScript Console → JavaScript on/off indicator in JavaScript Console
Assignee: hewitt → neil.parkwaycc.co.uk
QA Contact: jrgmorrison → timeless
Target Milestone: mozilla1.2alpha → ---
Summary: JavaScript on/off indicator in JavaScript Console → JavaScript on/off indicator in Error Console
Assignee | ||
Updated•17 years ago
|
Product: Core → SeaMonkey
Updated•17 years ago
|
Assignee: neil → nobody
Priority: P1 → --
QA Contact: timeless → error-console
Comment 53•17 years ago
|
||
Is this ever actually going to be done? Or can we close as WONTFIX
![]() |
||
Comment 54•17 years ago
|
||
I vote WONTFIX, this seems more appropriate to an extension if at all.
![]() |
||
Comment 55•17 years ago
|
||
Yes, I think that's great extension fodder.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•