Closed Bug 78320 Opened 24 years ago Closed 22 years ago

javascript strict warnings and error in urlbarBindings.xml

Categories

(SeaMonkey :: Location Bar, defect, P4)

Tracking

(Not tracked)

RESOLVED FIXED
Future

People

(Reporter: bugzilla, Assigned: hewitt)

References

Details

Attachments

(1 file)

after new modern landing: JavaScript strict warning: chrome://navigator/content/urlbarBindings.xml#autocomplete-result-popup.readRDFS tring() line 4: function readRDFString does not always return a value JavaScript strict warning: chrome://navigator/content/urlbarBindings.xml#autocomplete-result-popup.selectBy () line 9: redeclaration of var sel
marking p4, minor, and mozilla0.9.7
Severity: normal → minor
Status: NEW → ASSIGNED
Priority: -- → P4
Target Milestone: --- → mozilla0.9.7
Merging 79969 with this one, updating summary. 79969 is about a js error in urlbarBindings.xml: JavaScript error: chrome://navigator/content/urlbarBindings.xml#autocomplete-result-popup.selectBy() line 9: this.SelectedIndex has no properties also reassigning to hewitt
Assignee: pchen → hewitt
Status: ASSIGNED → NEW
Summary: javascript strict warnings in urlbarBindings.xml → javascript strict warnings and errors urlbarBindings.xml
Ooops, sorry for the spam, cleaning up summary. Sure, english is my first language. ;-)
Summary: javascript strict warnings and errors urlbarBindings.xml → javascript strict warnings and error in urlbarBindings.xml
*** Bug 79969 has been marked as a duplicate of this bug. ***
Status: NEW → ASSIGNED
Component: XP Apps → URL Bar
Target Milestone: mozilla0.9.7 → mozilla1.0
Target Milestone: mozilla1.0 → Future
New one: Warning: assignment to undeclared variable searchBarUrl Source File: chrome://navigator/content/urlbarBindings.xml#autocomplete-result-popup.updateEngines() Line: 25
Looking at the source code for urlbarBindings.xml, I note two things: (1) readRDFString() now unconditionally returns something. So that strict warning is gone. (2) There is only one instance of "var sel" in the selectBy() function. So that strict warning is gone as well. My patch above fixes the only current strict warning in this bug. I'll have to check on the error.
Adding patch keyword as I cannot check this patch in after it gets r= and sr=.
Keywords: patch
I've looked through the source of urlbarBindings.xml again; there is currently no instance of this.SelectedIndex. There are four instances of this.selectedIndex, and none of them does the code use to get properties thereof. So I'd dare to say the error is gone as well.
QA Contact: sairuh → claudius
Haven't seen this for a while. Will reopen if I see it again... 20020117
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
reopen bug for searchBarUrl warning
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Comment on attachment 63970 [details] [diff] [review] patch for searchBarUrl strict warning r=brade hewitt--please sr= and checkin
Attachment #63970 - Flags: review+
sorry, misleading title on bug #165876 which appears more appropriate
Attachment #63970 - Flags: superreview?(hewitt)
Attachment #63970 - Flags: superreview?(hewitt) → superreview?
Attachment #63970 - Flags: superreview? → superreview?(jaggernaut)
Attachment #63970 - Flags: superreview?(jaggernaut) → superreview?(jst)
Attachment #63970 - Flags: superreview?(jst) → superreview+
Attachment #63970 - Flags: approval1.4?
Comment on attachment 63970 [details] [diff] [review] patch for searchBarUrl strict warning a=asa (on behalf of drivers) for checkin to the 1.4 branch.
Attachment #63970 - Flags: approval1.4? → approval1.4+
Checked in by timeless on the trunk.
Status: REOPENED → RESOLVED
Closed: 23 years ago22 years ago
Resolution: --- → FIXED
Product: Core → SeaMonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: