Open
Bug 250409
Opened 21 years ago
Updated 3 years ago
window.find() should use Find Toolbar
Categories
(Toolkit :: Find Toolbar, defect, P2)
Toolkit
Find Toolbar
Tracking
()
NEW
People
(Reporter: jruderman, Unassigned)
References
()
Details
Attachments
(2 obsolete files)
1. javascript:window.find(); void 0
Result: Find dialog appears.
Expected: Find toolbar should appear.
Note that with some parameters, window.find() doesn't bring up a dialog. In
those cases, window.find() should stay silent rather than bringing up the toolbar.
Comment 2•21 years ago
|
||
*** Bug 252110 has been marked as a duplicate of this bug. ***
Updated•21 years ago
|
Flags: blocking-aviary1.0? → blocking-aviary1.0-
Comment 3•21 years ago
|
||
Replicated this bug. Old find dialog also fails to function.
Comment 4•21 years ago
|
||
Assignee: firefox → bugs.mano
Status: NEW → ASSIGNED
Attachment #177309 -
Flags: superreview?(jst)
Attachment #177309 -
Flags: review?(jst)
Comment 5•21 years ago
|
||
I will update the xpfe frontend once the backend part is ready.
Comment 6•21 years ago
|
||
So, is this change OK for embedding apps?
I've tested camino's window.find() behavior (without this patch), apparently it
usess the same implementation (i.e. opens a [pretty broken] xul find dialog).
Updated•21 years ago
|
OS: Windows XP → All
Priority: -- → P3
Hardware: PC → All
Target Milestone: --- → Firefox1.1
Comment 7•21 years ago
|
||
Comment on attachment 177309 [details] [diff] [review]
backend part
With that patch, how is the embeddor supposed to know which window wanted the
find? Did you even test this patch with multiple windows open? Or with
window.find() being called in a background tab in Firefox? As far as I can
tell, the results won't be pretty...
Other than that, since this is an embedding api, I would like to see, along
with this patch, clear documentation on exactly what embeddors need to do to
deal with this (what to register for, what sort of calls to expect under what
circumstances, etc.
I'm not sure where said documentation should go in our code... where do we
document frozen observer topics (biesi, darin, bsmedberg?)? We really need
that anyway, for the startup/shutdown stuff...
Finally, the "front end" change just fixes firefox. That leaves seamonkey,
camino, thunderbird, the existing embedding apps all broken.... Some of these
never worked, but please fix the things you break if you decide to break them,
ok?
Attachment #177309 -
Flags: superreview?(jst)
Attachment #177309 -
Flags: superreview-
Attachment #177309 -
Flags: review?(jst)
Attachment #177309 -
Flags: review-
Comment 8•21 years ago
|
||
(In reply to comment #7)
> (From update of attachment 177309 [details] [diff] [review] [edit])
> With that patch, how is the embeddor supposed to know which window wanted the
> find? Did you even test this patch with multiple windows open? Or with
> window.find() being called in a background tab in Firefox? As far as I can
> tell, the results won't be pretty...
ooh, right. need to rush less :-|
I'm wondering if a gui-event would be a better answer.
> Finally, the "front end" change just fixes firefox.
see comment 5.
Comment 9•21 years ago
|
||
Also, I'm not sure what is the expected result of window.find() in a background tab.
Comment 10•21 years ago
|
||
At the moment, frozen observer topics are generally documented with service
interface definitions, which IMO is probably not ideal. See for example
nsIServiceManager.idl. I think it'd better to document observer topics in a
header file for the given module.
Perhaps instead of nsEmbedCID.h (and the like), we should have nsEmbedAPI.h
where we define various ContractIDs, categories, and observer topics specific to
the module.
The other thing we should do is to document these things on DevMo.
Updated•21 years ago
|
Attachment #177309 -
Attachment is obsolete: true
Comment 11•21 years ago
|
||
Comment on attachment 177311 [details] [diff] [review]
browser/ frontend
for now
Attachment #177311 -
Attachment is obsolete: true
Comment 12•21 years ago
|
||
> I'm wondering if a gui-event would be a better answer.
Or you could pass the window to NotifyObservers()...
> Also, I'm not sure what is the expected result of window.find() in a
> background tab.
"Ask a UI designer"? ;) Seriously, it should be whatever the behavior is for a
background window.
> we should have nsEmbedAPI.h
We have that already:
http://lxr.mozilla.org/seamonkey/source/embedding/base/nsEmbedAPI.h
(Note that we have nsEmbedAPI.cpp too....)
Comment 13•21 years ago
|
||
Yeah, maybe nsEmbedAPI.h could be re-purposed. At any rate, the idea of a
header file per module that defines all the various contracts "exported" by that
module makes sense to me. What do you think?
Comment 14•21 years ago
|
||
Seems reasonable (I guess this would be the DOM module, then....)
Mano, you could indeed use an event to do this, but see bug 286013.
Updated•19 years ago
|
QA Contact: general → fast.find
Updated•19 years ago
|
Assignee: bugs.mano → nobody
Status: ASSIGNED → NEW
| Assignee | ||
Updated•17 years ago
|
Product: Firefox → Toolkit
Comment 16•14 years ago
|
||
Note bug 672395 that wants to kill it.
I just filed bug 725496 for screwing up mobile Fennec regarding this.
Updated•10 years ago
|
Priority: P3 → P2
Updated•3 years ago
|
Severity: minor → S4
You need to log in
before you can comment on or make changes to this bug.
Description
•