Closed Bug 474058 Opened 16 years ago Closed 14 years ago

Drop support for window.directories

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.3a5

People

(Reporter: ian, Assigned: Ms2ger)

Details

(Keywords: dev-doc-complete)

Attachments

(1 file, 3 obsolete files)

window.directories in Gecko returns the same [BarProp] object as window.personalbar. No other browser supports it. Unless support for this is needed, we should drop it. If support is needed, please let me know so I can add it to the spec.
Attached patch Fix (obsolete) — Splinter Review
Attachment #432351 - Flags: review?(bzbarsky)
Assignee: nobody → Ms2ger
Status: NEW → ASSIGNED
OS: Mac OS X → All
Hardware: x86 → All
Version: unspecified → Trunk
Attached patch Fix with new uuid (obsolete) — Splinter Review
Attachment #432351 - Attachment is obsolete: true
Attachment #432352 - Flags: review?(bzbarsky)
Attachment #432351 - Flags: review?(bzbarsky)
Comment on attachment 432352 [details] [diff] [review]
Fix with new uuid

Stealing review. r=jst
Attachment #432352 - Flags: review?(bzbarsky) → review+
Keywords: checkin-needed
What about dom.disable_window_open_feature.directories?
(In reply to comment #4)
> What about dom.disable_window_open_feature.directories?

Something else entirely, it's related to window.open(). Hixie actually wants to drop all support for the features argument, so I'd rather not spend time on it.

(Note: Used in <http://mxr.mozilla.org/mozilla-central/source/embedding/components/windowwatcher/src/nsWindowWatcher.cpp#1501>.)
(In reply to comment #5)
> (In reply to comment #4)
> > What about dom.disable_window_open_feature.directories?
> 
> Something else entirely, it's related to window.open().

So is window.directories, except that it exposes the state while the directories argument allows setting it. directories=... duplicates personalbar=... just like window.directories duplicates window.personalbar. Keeping both things in sync in seems only logical, regardless of any future plans to drop all feature arguments.
Fair enough.
Attachment #445103 - Flags: review?(jst)
Attachment #445103 - Flags: feedback?(dao)
Attachment #445103 - Flags: review?(jst) → review+
Whiteboard: [c-n:445103]
Whiteboard: [c-n:445103] → [c-n:432352,445103]
Comment on attachment 445103 [details] [diff] [review]
Remove argument to window.open and pref

Don't think my feedback is needed here beyond what I said in my previous comment...
Attachment #445103 - Flags: feedback?(dao)
Merged to tip. r=jst.
Attachment #432352 - Attachment is obsolete: true
Attachment #445103 - Attachment is obsolete: true
Whiteboard: [c-n:432352,445103]
does not apply cleanly here, can you provide an updated patch please?
http://hg.mozilla.org/mozilla-central/rev/e0a9a9ea63f1
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a5
Keywords: dev-doc-needed
https://developer.mozilla.org/en/DOM%3awindow.open used to say:

"directories: [...] in MSIE 5+, it renders the Links bar. [...] personalbar: Same as directories but only supported by Netscape and Mozilla-based browsers."

Was that incorrect?
You should not remove information from MDC as long as older browser versions are in use. People may use obsolete features or search for info why it doesn't work.
  
I propose:

https://developer.mozilla.org/en/DOM/window#Properties
Add an obsolete-inline template

https://developer.mozilla.org/En/DOM/Window.directories
Add an obsolete-header template,
mention the Gecko/Firefox version which dropped it,
recommend use of "window.personalbar" instead,
(perhaps link to this bug if you think it's helpful).
Apparently IE doesn't support any of the BarProp objects, but up to IE6, it did support the directories feature to window.open. (See also <http://msdn.microsoft.com/en-us/library/ms536651%28VS.85%29.aspx>.) (WebKit seems to ignore the features, and support only the personalbar object. Opera seems to support neither the features nor any BarProp objects.)

Made changes to
https://developer.mozilla.org/en/DOM/window.open
https://developer.mozilla.org/en/DOM/window#Properties
https://developer.mozilla.org/En/DOM/Window.directories
Flags: in-testsuite-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: