Closed
Bug 51550
Opened 24 years ago
Closed 22 years ago
Find in This Page should only find visible content
Categories
(SeaMonkey :: UI Design, defect, P3)
SeaMonkey
UI Design
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla1.0.1
People
(Reporter: ekrock, Assigned: akkzilla)
References
()
Details
(Keywords: polish, Whiteboard: [f/r])
Using Commercial 2000090508 on WinNT 4.0 SP4.
To repro:
1) Go to cnn.com
2) Search-->Find in This Page
3) enter "address" (there are multiple instances of this word on the page)
4) hit return and keep finding the next instance
Expected: each time an instance of "address" is found, it will be highlighted
and the page will scroll so that instance is visible
Actual: instances off the visible screen area are being found and (presumably)
highlighted outside the visible area; you have to scroll manually to find them
Marking polish and Future since we don't have the time to fix this kind of minor
polish issue for RTM.
Comment 1•24 years ago
|
||
cc beppe
Comment 2•24 years ago
|
||
This should work -- perhaps the autoscroll code broke it? cc kin.
This is my bug. The TextServices module is passing the find component the text
that is between the <SCRIPT> tags in the html document. This JavaScript text
also happens to use the variable name 'address' in several of it's methods, so
we are finding them in the JavaScript, but since JavaScript text does not
render, we don't scroll.
You'll find if you click enough times on the cnn page, that you'll eventually
get past the JS 'address' variable instances and start seeing the page scroll.
Assignee: ben → kin
In my last comment, I meant, if you click find again, with the word
'address' enough times, you'll find that the page scrolls when it hits the word
'address' that actually renders on the screen.
Comment 6•24 years ago
|
||
[Resummarizing based on Kin's comment]
Summary: Find in This Page dialog doesn't scroll page to location of text when text is found → Find in This Page should only find visible content
Comment 7•24 years ago
|
||
How does this bug differ from bug 10470
In both cases the find is finding things that are not visible on the page. My
guess is that fixing one, would likely fix the other?
Comment 10•24 years ago
|
||
just spoke with kin --will keep this one open. same backend issue, different
manifestation: good to keep open for qa purposes, at the very least!
Comment 11•23 years ago
|
||
Kin: the fix should be fairly simple, no? Just do a GetPrimaryFrame for the
content, and if there is no frame, ignore this match.
Comment 12•23 years ago
|
||
clearing milestone for reconsideration and nominating for moz0.9.2.
sorry this fell off my radar, but it bit me recently on all platforms --eg,
searching for "mozilla" while viewing the tinderbox page. [insert disgruntled
feline noises. ;) ]
Keywords: mozilla0.9.2,
nsCatFood
OS: Windows NT → All
Hardware: PC → All
Target Milestone: Future → ---
Comment 13•23 years ago
|
||
To answer Simon's question:
The find code knows nothing about the document structure since it uses the
TextServicesDocument iterator.
The approach I was going to take, was to add some sort of filtering mechanism
that would allow components that created the TextServicesDocument to specify
which subtrees/nodes in the document leave out during the iteration process.
With this mechanism we could do things like skip over mail quoted text (which is
visible) during spellchecking, or skip over invisible text (like JS, and form
element text)during a find.
Updated•23 years ago
|
Whiteboard: [f/r]
Target Milestone: --- → mozilla1.0
Comment 14•23 years ago
|
||
*** Bug 91745 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 15•23 years ago
|
||
I have a new design for the Find code which does have access to the document
structure. I'm hoping to avoid calls like GetPrimaryFrameFor (at least as much
as possible) for performance reasons. Excluding script tags is easy (I already
have that in my code) but there will probably be other gotchas that will show up
as we test this.
Assignee: kin → akkana
Status: ASSIGNED → NEW
Comment 16•23 years ago
|
||
Bugs targeted at mozilla1.0 without the mozilla1.0 keyword moved to mozilla1.0.1
(you can query for this string to delete spam or retrieve the list of bugs I've
moved)
Target Milestone: mozilla1.0 → mozilla1.0.1
Comment 17•23 years ago
|
||
mass moving open bugs pertaining to find in page/frame to pmac@netscape.com as
qa contact.
to find all bugspam pertaining to this, set your search string to
"AppleSpongeCakeWithCaramelFrosting".
QA Contact: sairuh → pmac
Comment 18•23 years ago
|
||
removing myself from the cc list
Assignee | ||
Comment 19•22 years ago
|
||
Whoops, I kept this bug open because I was confusing it with a different one.
As far as I know, this is fixed with the current find code. The test case
(cnn.com) no longer contains the search string "address", so if there are any
remaining cases where this bug happens, please attach a current test case.
Otherwise I'll consider it fixed.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Comment 20•22 years ago
|
||
Verified on all platforms (netscape trunk build: 2002-11-26-08-TRUNK)
Status: RESOLVED → VERIFIED
Updated•20 years ago
|
Product: Core → Mozilla Application Suite
You need to log in
before you can comment on or make changes to this bug.
Description
•