Closed Bug 604093 Opened 15 years ago Closed 15 years ago

references to undefined variable "XULWindowBrowser" and calls to undefined function setStatusText in browser.js

Categories

(Firefox :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
blocking2.0 --- final+

People

(Reporter: Gavin, Assigned: dietrich)

References

Details

(Whiteboard: [addon bar])

Attachments

(2 files, 2 obsolete files)

This looks to have been introduced by http://hg.mozilla.org/mozilla-central/rev/bb2db707bfcb (bug 574688). "XULWindowBrowser" looks like it was meant to be XULBrowserWindow, but it doesn't have a setStatusText method either as far as I can tell. I don't think this impacts any behavior, apart from perhaps dragging things on the downloads button, since it's almost always the last line in the dragLeave handler.
Attached patch v1 (obsolete) — Splinter Review
Assignee: nobody → dietrich
Status: NEW → ASSIGNED
Attachment #482929 - Flags: review?
Attachment #482929 - Flags: review? → review?(gavin.sharp)
Comment on attachment 482929 [details] [diff] [review] v1 To fully remove this, we'd need to also remove browserDragAndDrop.dragOver()'s statusString argument, and its call to XULBrowserWindow.setStatusText, and likely all of the strings that correspond to the string names passed to it. The other alternative is to use the URL bar link thing to show this status text, but I don't know if that makes any sense from a UX perspective.
Attachment #482929 - Flags: review?(gavin.sharp) → review-
blocking2.0: --- → final+
Whiteboard: [needs new patch]
(In reply to comment #2) > The other alternative is to use the URL bar link thing to show this status > text, but I don't know if that makes any sense from a UX perspective. It doesn't make any sense, since there is a state possible, when status text should be shown and the cursor is above an URL, so it's target should be also shown.
Whiteboard: [needs new patch] → [needs new patch][addon bar]
See also bug 600647.
(In reply to comment #2) > The other alternative is to use the URL bar link thing to show this status > text, but I don't know if that makes any sense from a UX perspective. Or to leave it in as an empty stub for addons who want to implement status showing, as bug 600647 suggests.
blocking2.0: final+ → ---
blocking2.0: --- → final+
(In reply to comment #2) > The other alternative is to use the URL bar link thing to show this status > text, but I don't know if that makes any sense from a UX perspective. I'm doing this in bug 603777. I'm not sure how that affects this bug, but I figured I should bring it to your attention.
Attached patch v2 (obsolete) — Splinter Review
keep it intact, since it'll be used.
Attachment #482929 - Attachment is obsolete: true
Attachment #494734 - Flags: review?
Attachment #494734 - Flags: review? → review?(gavin.sharp)
Whiteboard: [needs new patch][addon bar] → [addon bar][has patch][needs review gavin]
Comment on attachment 494734 [details] [diff] [review] v2 Shouldn't this also include a stub implementation for XULBrowserWindow.setStatusText, even if it is just an empty function? Regardless of whether or not this is actually used by the browser, I think it is important to keep it around for extensions. Unless extensions first check if it exists, using XULBrowserWindow.setStatusText would cause an error if it wasn't implemented.
Attached patch v3Splinter Review
Implements setStatusText, and depends on the work in bug 603777.
Attachment #494734 - Attachment is obsolete: true
Attachment #494982 - Flags: review?(gavin.sharp)
Attachment #494734 - Flags: review?(gavin.sharp)
Depends on: 603777
Bug 603777 isn't a blocker, so I'm not sure it's a good dependency to have here. I'm actually leaning more towards just removing all the dead code (per comment 2). Theoretical future extensions that want to show status text are unlikely to care too much about drag drop feedback for random toolbar buttons, and if they do they can pretty easily add drag listeners themselves, so us bearing the maintenance burden of code that we don't use doesn't seem like a great idea.
Attachment #494982 - Flags: review?(gavin.sharp) → review-
Ok. I guess it also makes sense to not cloud the cleanup with the extensibility question.
Whiteboard: [addon bar][has patch][needs review gavin] → [addon bar][needs new patch]
Attached patch v4 - removalSplinter Review
Attachment #495801 - Flags: review?(gavin.sharp)
Whiteboard: [addon bar][needs new patch] → [addon bar][has patch][needs review gavin]
Attachment #495801 - Flags: review?(gavin.sharp) → review+
Whiteboard: [addon bar][has patch][needs review gavin] → [addon bar][has review][can land after 0.8 branches]
Whiteboard: [addon bar][has review][can land after 0.8 branches] → [addon bar][has review][can land after beta 8 branches]
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Whiteboard: [addon bar][has review][can land after beta 8 branches] → [addon bar]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: