Closed Bug 307874 Opened 19 years ago Closed 19 years ago

Either wrong url or no url is shown in the status bar for focused links during FAYT

Categories

(Toolkit :: Find Toolbar, defect, P1)

defect

Tracking

()

RESOLVED FIXED
mozilla1.8final

People

(Reporter: asaf, Assigned: masayuki)

References

Details

(Keywords: fixed1.8, regression)

Attachments

(6 files, 4 obsolete files)

Either wrong url or no url is shown in the status bar for focused links during FAYT.

STR:
 1. Optional - focus a link
 2. Search for another link in the page using FAYT

-> The link is focused but the statusbar text isn't updated.

This looks like a regression from our pseudo-focus behavior.
Flags: blocking1.8b5?
Attached file testcase of shift_jis
Attached file testcase of euc-jp
Attached file testcase of utf-8
Attached file testcase of frameset
Attached patch Patch rv1.0 (obsolete) — Splinter Review
Attachment #195563 - Flags: review?(mconnor)
Attachment #195563 - Flags: review?(mconnor) → review-
Attached patch Patch rv1.1 (obsolete) — Splinter Review
Attachment #195563 - Attachment is obsolete: true
Attachment #195564 - Flags: review?(mconnor)
Attachment #195564 - Flags: review?(mconnor) → review-
Attached patch Patch rv1.2 (obsolete) — Splinter Review
Attachment #195564 - Attachment is obsolete: true
Attachment #195566 - Flags: review?(mconnor)
Attachment #195566 - Flags: review?(mconnor)
Attached patch Patch rv1.2 (obsolete) — Splinter Review
Attachment #195566 - Attachment is obsolete: true
Attachment #195567 - Flags: review?(mconnor)
Attachment #195567 - Flags: review?(mconnor) → review-
Attached patch Patch rv1.3Splinter Review
Attachment #195567 - Attachment is obsolete: true
Attachment #195568 - Flags: review?(mconnor)
Status: NEW → ASSIGNED
Priority: -- → P1
Whiteboard: [needs review mconnor]
Target Milestone: --- → Firefox1.5
Flags: blocking1.8b5? → blocking1.8b5+
No longer blocks: 308755
Comment on attachment 195568 [details] [diff] [review]
Patch rv1.3

>+  var docCharset;
>+  var ownerDoc = gFoundLink.ownerDocument;
>+  if (ownerDoc)
>+    docCharset = ownerDoc.characterSet;
>+  else
>+    docCharset = "";

just init docCharset to "" and drop the else statement here.

>+  var uri =
>+    gTextToSubURIService.unEscapeURIForUI(docCharset, gFoundLink.href);
>+  xulBrowserWindow.setOverLink(uri);

please use url instead of uri when we're not dealing with an nsIURI

sorry for the delay on this.
Attachment #195568 - Flags: review?(mconnor) → review+
Whiteboard: [needs review mconnor] → [checkin needed]
Attachment #195568 - Flags: approval1.8b5?
Comment on attachment 195568 [details] [diff] [review]
Patch rv1.3

should we get this checked into the trunk ASAP for a day of baking?
Attachment #195568 - Flags: approval1.8b5? → approval1.8b5+
checked-in to trunk and 1.8branch.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Keywords: fixed1.8
Resolution: --- → FIXED
Whiteboard: [checkin needed]
*** Bug 250483 has been marked as a duplicate of this bug. ***
Depends on: 312913
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: