Closed Bug 190495 Opened 23 years ago Closed 23 years ago

Find As You Type shouldn't start on XUL Tree Views (e.g., about:config, XUL Directory Listings)

Categories

(SeaMonkey :: Find In Page, defect, P2)

defect

Tracking

(Not tracked)

VERIFIED FIXED
mozilla1.3final

People

(Reporter: aaronlev, Assigned: aaronlev)

Details

Attachments

(1 file)

about:config uses a tree view -- it's not HTML. Find As You Type shouldn't start up there.
Also encountered using FizzillaMach/2003012403 to access about:config and FTP directory listings with XUL Directory Listings enabled. Revising Summary and setting All/All. To reproduce: 1. Access about:config 2. Select an item 3. Press the 'a' key Expected results: Nothing should happen (or should it?) Actual results: 'Link not found: "a" repeated' displayed on Status Line. (See also bug 190533.)
OS: Windows 2000 → All
Hardware: PC → All
Summary: Find As You Type shouldn't start in about:config → Find As You Type shouldn't start on XUL Tree Views (e.g., about:config, XUL Directory Listings)
Is there any way to search a tree view? Type Ahead Find doesn't seem to do anything in my about:config. Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3a) Gecko/20030125 Phoenix/0.5
A temporary workaround is to turn off the pref "Find automatically when typing within a web page" in the Prefs -> Advanced -> Keyboard Navigation prefs. This shows what the keyboard navigation would be like if this bug were fixed. Note that there's still a problem with the tab order: it takes 2 tabs to get to the point where you can arrow around the tree view, or use tree view's navigate-by-printable character features. Meanwhile, the focus isn't visible until 1 of the items gets selected. I think we'll have to file a separate bug on that.
Status: NEW → ASSIGNED
Priority: -- → P2
Target Milestone: --- → mozilla1.3final
Attachment #112830 - Flags: superreview?(jst)
Attachment #112830 - Flags: review?(caillon)
Comment on attachment 112830 [details] [diff] [review] Uses solution proposed by jst -- check QI to nsIDOMXULDoc, use mime type to make sure it's not an ascii doc when auto link search is on sr=jst
Attachment #112830 - Flags: superreview?(jst) → superreview+
Nice, all I need know is auto text search on plain text documents :-P
Comment on attachment 112830 [details] [diff] [review] Uses solution proposed by jst -- check QI to nsIDOMXULDoc, use mime type to make sure it's not an ascii doc when auto link search is on >+ >+ nsCOMPtr<nsIDOMXULDocument> xulDoc(do_QueryInterface(doc)); >+ if (xulDoc) { >+ return NS_OK; // Avoid xul tree views, svg and other non-docs How exactly does this code avoid "svg and other non-docs"? >+ } >+ >+ if (mLinksOnlyPref) { >+ nsAutoString contentType; >+ doc->GetContentType(contentType); >+ if (contentType.Equals(NS_LITERAL_STRING("text/plain"))) { >+ return NS_OK; // No auto link search in plain text pages >+ } >+ }
My fault, we decided not to avoid svg, because it can have links in it. I'll just fix the comment.
Christopher, I have the comment changed to accurate reflect what it does. We decided not to change SVG. I'll put up a new patch if you ask for it. - Aaron
What does the new comment read?
+ return NS_OK; // Avoid any xul docs, whether in chrome or content
Comment on attachment 112830 [details] [diff] [review] Uses solution proposed by jst -- check QI to nsIDOMXULDoc, use mime type to make sure it's not an ascii doc when auto link search is on Okay, r=caillon with the corrected comment you just posted.
Attachment #112830 - Flags: review?(caillon) → review+
Attachment #112830 - Flags: approval1.3b?
Comment on attachment 112830 [details] [diff] [review] Uses solution proposed by jst -- check QI to nsIDOMXULDoc, use mime type to make sure it's not an ascii doc when auto link search is on a=asa (on behalf of drivers) for checkin to 1.3beta.
Attachment #112830 - Flags: approval1.3b? → approval1.3b+
checked in
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
vrfy'd fixed with 2003.02.12 comm trunk bits (tested with about:config) on linux rh8.0, win2k and mac 10.2.3.
Status: RESOLVED → VERIFIED
Hmmm... I wouldn't quite say that this is fixed. With 2003031216/Win98, I see the following: 1) Load about:config, _don't_ click on any pref entry. Press slash - status bar says 'Starting -- find text as you type'. Press "a" - status bar says 'Text not found: "a" repeated'. Press "s" - no visible change. Press "d" - status bar now says 'Text not found: "asd"'. Nothing else apparently happens besides changing the status bar. This may be bug 190533, I guess. But that's not all: 2) With about:config still loaded, click on a pref entry to focus it, then press slash. After about a second, 'Starting -- find text as you type' appears in the status bar and a tiny, two-pixel caret starts blinking in the upper left corner of the content area. Now, press "a". The highlight in the XUL view moved as it should, but also the status bar says 'Text not found: "a" repeated'.
Product: Core → SeaMonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: