Closed
Bug 190472
Opened 23 years ago
Closed 4 years ago
window.sidebar.visible=0 does not work
Categories
(Core :: DOM: Core & HTML, defect, P5)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: geisj, Unassigned)
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021130
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021130
I can do the window.personalbar.visible=0
and window.locationbar.visible=0
but I cannot do
window.sidebar.visible=0
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Actual Results:
the sidebar did not hide.
Expected Results:
there should be a way in javascript to hide the sidebar.
Comment 1•23 years ago
|
||
Browser, not engine ---> DOM Level 0
Apparently, |visible| is not a property of |window.sidebar|.
I'm not a DOM expert, but I tried these javascript URLS:
javascript: alert('visible' in window.personalbar) ----> true
javascript: alert('visible' in window.locationbar) ----> true
javascript: alert('visible' in window.sidebar) ----> false
Assignee: rogerl → jst
Status: UNCONFIRMED → NEW
Component: JavaScript Engine → DOM Level 0
Ever confirmed: true
QA Contact: pschwartau → desale
| Reporter | ||
Comment 2•23 years ago
|
||
I agree with you that visible is not part of the property and I am saying that it should be. Perhaps was it overlooked? How else to I "automatically" remove it from the page I want to display? Jerry
Comment 3•23 years ago
|
||
imho, you do not. The browser belongs to the user, not to you; if the user
wants to have a sidebar open, he should be able to do that.
| Reporter | ||
Comment 4•23 years ago
|
||
Boris,
I disagree, If there are properties like window.locationbar.visible and javascript
has the ability to make it visible or not how is that different than the
window.sidebar.visible? Sure the locationbar and the sidebar BOTH are user controlled
properties but my point is locationbar has the visisble property so why doesnt
sidebar?
I am actually running the browser with the -remote unix command. It is a great thing
that mozilla has this. However, in my case there is no USER. I need to start the browser,
creat a profile (no problem there), Turn off the locationbar and turn off the sidebar.
In my case they are not needed.
Thanks,
Jerry
(In reply to comment #3)
> imho, you do not. The browser belongs to the user, not to you; if the user
> wants to have a sidebar open, he should be able to do that.
I agree to this, but in Mozilla Preferences there is area Allow Jscript to
hide/show status bar, etc. This doesn't work, regardless what that options is
set to. Now, I propose to put there also allow jscritp to hide menu, address
bar, or just one thing, toolbars. Do you think this can be done?
Comment 7•21 years ago
|
||
It can. If someone writes a patch and gets UI owner approval, it may even be
accepted.
Updated•16 years ago
|
Assignee: general → nobody
QA Contact: desale → general
Comment 8•7 years ago
|
||
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046
Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.
If you have questions, please contact :mdaly.
Priority: -- → P5
Comment 9•4 years ago
|
||
We want to remove this in bug 1428302.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•