Closed
Bug 567309
Opened 14 years ago
Closed 14 years ago
Find does not start with / and does not start "Search for text when I start typing"
Categories
(Firefox :: General, defect, P1)
Firefox
General
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
blocking2.0 | --- | final+ |
People
(Reporter: alice0775, Assigned: asaf)
References
Details
(Keywords: dogfood, regression)
Attachments
(1 file, 5 obsolete files)
4.09 KB,
patch
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; WOW64; en-US; rv:1.9.3a5pre) Gecko/20100520 Minefield/3.7a5pre ID:20100520065946 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.1; WOW64; en-US; rv:1.9.3a5pre) Gecko/20100520 Minefield/3.7a5pre ID:20100520065946 When I use FAYT( "/" ) for the first time after the start of the browser window, FAYT does not start. And also "Search for text when I start typing" option fails. However, If I used FindBar once at least, The both commands function well. Reproducible: Always Steps to Reproduce: 1. Start Minefield with new profile 2. Open HOME( http://www.mozilla.org/projects/minefield/ ) 3. Select text on the page 4. keypush "/" and "minefield" ( without quatation marks) Actual Results: When I use FAYT( "/" ) for the first time after the start of the browser window, FAYT does not start. And also "Search for text when I start typing" option fails. Expected Results: FAYT and "Search for text when I start typing" option should be effective. Regression window: Works: http://hg.mozilla.org/mozilla-central/rev/d5d5ed6d3e1c Mozilla/5.0 (Windows; U; Windows NT 6.1; WOW64; en-US; rv:1.9.3a5pre) Gecko/20100518 Minefield/3.7a5pre ID:20100519083331 Fails: http://hg.mozilla.org/mozilla-central/rev/046c2d2acd3b Mozilla/5.0 (Windows; U; Windows NT 6.1; WOW64; en-US; rv:1.9.3a5pre) Gecko/20100518 Minefield/3.7a5pre ID:20100519101258 Push log: http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=d5d5ed6d3e1c&tochange=046c2d2acd3b Candidate: Bug 566736 - Lazily initialize the find toolbar
Reporter | ||
Comment 1•14 years ago
|
||
Sorry, please ignore STEP3 of STR in comment#0 Steps to Reproduce: 1. Start Minefield with new profile 2. Open HOME( http://www.mozilla.org/projects/minefield/ ) 3. 4. keypush "/" and "minefield" ( without quotation marks)
Comment 2•14 years ago
|
||
Linux is affected as well, please change the OS part of "Platform" to "All".
Reporter | ||
Updated•14 years ago
|
OS: Windows 7 → All
Hardware: x86 → All
Updated•14 years ago
|
blocking2.0: --- → ?
Assignee | ||
Updated•14 years ago
|
Assignee: nobody → mano
Status: NEW → ASSIGNED
Priority: -- → P1
Comment 4•14 years ago
|
||
For what it's worth, I just had to downgrade my browser to an older nightly to work around this problem; it was making the browser more or less completely unusable...
Comment 6•14 years ago
|
||
The obvious reason is that TAF is implemented inside findbar.xml (see http://mxr.mozilla.org/mozilla-central/source/toolkit/content/widgets/findbar.xml#1407 for example), which means that it won't work until the binding is loaded. I think we need to move the keypress event handler out of findbar.xml and have it initialize the findbar if needed. We should probably let it live somewhere in toolkit.
Assignee | ||
Comment 7•14 years ago
|
||
No. My solution is to use the handler in browser.js, and initialize the findbar there for the first time.
Interestingly, if you first press <F3> on a given browser window, "/" works from then on for all tabs in that browser windows.
Assignee | ||
Comment 9•14 years ago
|
||
Since this is dogfood, I'd like to land the test post-facto.
Attachment #447593 -
Flags: review?(gavin.sharp)
Assignee | ||
Comment 10•14 years ago
|
||
Attachment #447593 -
Attachment is obsolete: true
Attachment #447601 -
Flags: review?(gavin.sharp)
Attachment #447593 -
Flags: review?(gavin.sharp)
Comment 11•14 years ago
|
||
Comment 12•14 years ago
|
||
Comment on attachment 447601 [details] [diff] [review] patch >diff -r 21ca905f5b3e browser/base/content/tabbrowser.xml > if (aEvent.altKey) > return; >+ if (!gFindBarInitialized && >+ !(aEvent.ctrlKey || aEvent.altKey || aEvent.metaKey) && The altKey check is redundant given the earlier one. I still hate this patch, but I suppose I will begrudgingly r+ it if it lands with a test.
Attachment #447601 -
Flags: review?(gavin.sharp) → review+
Assignee | ||
Comment 13•14 years ago
|
||
Comment on attachment 447706 [details] [diff] [review] simple test Many thanks. Before sending "/", it should be checked that gFindbarInitialized is not set.
Reporter | ||
Comment 14•14 years ago
|
||
Does this patch solved "Search for text when I start typing"?
Reporter | ||
Comment 15•14 years ago
|
||
Sorry spam, please forget comment #14
Assignee | ||
Comment 16•14 years ago
|
||
Attachment #447601 -
Attachment is obsolete: true
Attachment #447706 -
Attachment is obsolete: true
Assignee | ||
Updated•14 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Comment 17•14 years ago
|
||
It'd be nice to expand the test to also check "'" (I suppose that'd require a new window), and that the find bar actually works.
Assignee | ||
Comment 18•14 years ago
|
||
Yes, it would requite a new window. We already have some tests for the findbar itself.
Comment 19•14 years ago
|
||
I've backed this out as it was a likely cause for the revival of bug 478241.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 20•14 years ago
|
||
Comment on attachment 447713 [details] [diff] [review] as checked in >+ if (!gFindBarInitialized && >+ !(aEvent.ctrlKey || aEvent.metaKey) && >+ !aEvent.getPreventDefault()) { >+ var charCode = aEvent.charCode; >+ if (charCode) { >+ var char = String.fromCharCode(charCode); nit: s/var/let/ >+ if (char == "'" || char == "/" || >+ gPrefService.getBoolPref("accessibility.typeaheadfind")) { nit: trailing space ... and I think we've consistently switched over to Services.prefs in tabbrowser.xml.
Comment 21•14 years ago
|
||
(In reply to comment #18) > We already have some tests for the findbar itself. Sure, but not the findbar *in Firefox*. We need tests to make sure that our hacky lazy initialization doesn't break something in the findbar widget, e.g.
Assignee | ||
Comment 23•14 years ago
|
||
I /believe/ that the failures occur due to the new test and not due to the new code in tabbrowsr - likely because of the quick-find timer. So, I'm now calling gFindBar.close manually to avoid any automated findbar stuff. Hopefully that helps.
Attachment #447713 -
Attachment is obsolete: true
Assignee | ||
Comment 24•14 years ago
|
||
To be on the safe side, I changed the test to work more like other browser-chrome tests. http://hg.mozilla.org/mozilla-central/rev/e73cbd31c93e Watching.
Attachment #448260 -
Attachment is obsolete: true
Assignee | ||
Updated•14 years ago
|
Status: REOPENED → RESOLVED
Closed: 14 years ago → 14 years ago
Resolution: --- → FIXED
Comment 25•14 years ago
|
||
Can Bug 570230 be caused by this bugfix?
Assignee | ||
Comment 26•14 years ago
|
||
Commented there.
You need to log in
before you can comment on or make changes to this bug.
Description
•