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)
Firefox
General
Tracking
()
RESOLVED
FIXED
| Tracking | Status | |
|---|---|---|
| blocking2.0 | --- | final+ |
People
(Reporter: Gavin, Assigned: dietrich)
References
Details
(Whiteboard: [addon bar])
Attachments
(2 files, 2 obsolete files)
|
3.55 KB,
patch
|
Gavin
:
review-
|
Details | Diff | Splinter Review |
|
4.59 KB,
patch
|
Gavin
:
review+
|
Details | Diff | Splinter Review |
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.
| Assignee | ||
Comment 1•15 years ago
|
||
| Assignee | ||
Updated•15 years ago
|
Attachment #482929 -
Flags: review? → review?(gavin.sharp)
| Reporter | ||
Comment 2•15 years ago
|
||
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-
| Reporter | ||
Updated•15 years ago
|
blocking2.0: --- → final+
| Assignee | ||
Updated•15 years ago
|
Whiteboard: [needs new patch]
Comment 4•15 years ago
|
||
(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.
| Assignee | ||
Updated•15 years ago
|
Whiteboard: [needs new patch] → [needs new patch][addon bar]
| Assignee | ||
Comment 5•15 years ago
|
||
See also bug 600647.
| Reporter | ||
Comment 6•15 years ago
|
||
(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+ → ---
| Reporter | ||
Updated•15 years ago
|
blocking2.0: --- → final+
Comment 8•15 years ago
|
||
(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.
| Assignee | ||
Comment 9•15 years ago
|
||
keep it intact, since it'll be used.
Attachment #482929 -
Attachment is obsolete: true
Attachment #494734 -
Flags: review?
| Assignee | ||
Updated•15 years ago
|
Attachment #494734 -
Flags: review? → review?(gavin.sharp)
| Assignee | ||
Updated•15 years ago
|
Whiteboard: [needs new patch][addon bar] → [addon bar][has patch][needs review gavin]
Comment 10•15 years ago
|
||
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.
| Assignee | ||
Comment 11•15 years ago
|
||
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)
| Reporter | ||
Comment 12•15 years ago
|
||
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.
| Reporter | ||
Updated•15 years ago
|
Attachment #494982 -
Flags: review?(gavin.sharp) → review-
| Assignee | ||
Comment 13•15 years ago
|
||
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]
| Assignee | ||
Comment 14•15 years ago
|
||
Attachment #495801 -
Flags: review?(gavin.sharp)
| Assignee | ||
Updated•15 years ago
|
Whiteboard: [addon bar][needs new patch] → [addon bar][has patch][needs review gavin]
| Reporter | ||
Updated•15 years ago
|
Attachment #495801 -
Flags: review?(gavin.sharp) → review+
| Assignee | ||
Updated•15 years ago
|
Whiteboard: [addon bar][has patch][needs review gavin] → [addon bar][has review][can land after 0.8 branches]
| Assignee | ||
Updated•15 years ago
|
Whiteboard: [addon bar][has review][can land after 0.8 branches] → [addon bar][has review][can land after beta 8 branches]
| Assignee | ||
Comment 15•15 years ago
|
||
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.
Description
•