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)
SeaMonkey
General
Tracking
(seamonkey2.6 fixed)
RESOLVED
FIXED
seamonkey2.6
| Tracking | Status | |
|---|---|---|
| seamonkey2.6 | --- | fixed |
People
(Reporter: iannbugzilla, Assigned: iannbugzilla)
References
Details
Attachments
(1 file)
|
9.03 KB,
patch
|
neil
:
review+
|
Details | Diff | Splinter Review |
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 1•15 years ago
|
||
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.
Comment 3•15 years ago
|
||
(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.
Updated•15 years ago
|
Attachment #560436 -
Flags: review?(neil) → review+
Comment on attachment 560436 [details] [diff] [review]
Make the switch [Checked in: Comment 4]
http://hg.mozilla.org/comm-central/rev/6d68cf105f8d
Attachment #560436 -
Attachment description: Make the switch → Make the switch [Checked in: Comment 4]
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
status-seamonkey2.6:
--- → fixed
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.
Description
•