Closed Bug 686936 Opened 15 years ago Closed 15 years ago

Switch suite/browser and suite/common to use GetIntPref helper

Categories

(SeaMonkey :: General, defect)

defect
Not set
normal

Tracking

(seamonkey2.6 fixed)

RESOLVED FIXED
seamonkey2.6
Tracking Status
seamonkey2.6 --- fixed

People

(Reporter: iannbugzilla, Assigned: iannbugzilla)

References

Details

Attachments

(1 file)

Bug 686386 introduced a helper for getIntPref so should switch suite/browser and suite/common to use it. This patch does that.
Attachment #560436 - Flags: review?(neil)
Comment on attachment 560436 [details] [diff] [review] Make the switch [Checked in: Comment 4] >+ uriArray = [history.lastPageVisited]; How do we know that lastPageVisited won't throw? Possible scenario: create new profile, start with editor, set prefs to show last page visited, open browser. >+ if (GetIntPref(pref, 2) != MOUSE_SCROLL_ZOOM) Where does the 2 come from?
(In reply to neil@parkwaycc.co.uk from comment #1) > Comment on attachment 560436 [details] [diff] [review] > Make the switch > > >+ if (GetIntPref(pref, 2) != MOUSE_SCROLL_ZOOM) > Where does the 2 come from? It's not 3 which is what MOUSE_SCROLL_ZOOM is.
(In reply to comment #1) > (From update of attachment 560436 [details] [diff] [review]) > >+ uriArray = [history.lastPageVisited]; > How do we know that lastPageVisited won't throw? I looked and it doesn't throw, so that's OK. (In reply to Ian Neal from comment #2) > (In reply to comment #1) > > (From update of attachment 560436 [details] [diff] [review]) > > >+ if (GetIntPref(pref, 2) != MOUSE_SCROLL_ZOOM) > > Where does the 2 come from? > It's not 3 which is what MOUSE_SCROLL_ZOOM is. Well if it's an arbitrary value then you might as well use 0.
Attachment #560436 - Flags: review?(neil) → review+
Attachment #560436 - Attachment description: Make the switch → Make the switch [Checked in: Comment 4]
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Target Milestone: --- → seamonkey2.6
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: