Closed
Bug 661101
Opened 14 years ago
Closed 14 years ago
widget should use mozilla::Preferences (except win/cocoa/gtk2/xpwidgets)
Categories
(Core :: Widget, defect)
Core
Widget
Tracking
()
RESOLVED
FIXED
mozilla7
People
(Reporter: masayuki, Assigned: masayuki)
References
Details
Attachments
(2 files, 1 obsolete file)
|
15.74 KB,
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
|
706 bytes,
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
I'd like OS/2 guys to check this patch whether not causes bustage.
| Assignee | ||
Comment 1•14 years ago
|
||
Fix a nit for OS/2. We shouldn't use %s for nsPrintfCString.
Attachment #536541 -
Attachment is obsolete: true
| Assignee | ||
Updated•14 years ago
|
Attachment #536542 -
Flags: feedback?(wuno)
Attachment #536542 -
Flags: feedback?(mozilla)
Comment 2•14 years ago
|
||
Comment on attachment 536542 [details] [diff] [review]
Patch v1.1
Since I no longer build on OS/2 I'd like to defer my feedback to Dave.
Attachment #536542 -
Flags: feedback?(mozilla) → feedback?(daveryeo)
| Assignee | ||
Comment 3•14 years ago
|
||
Comment on attachment 536542 [details] [diff] [review]
Patch v1.1
If we didn't get feedback from OS/2 developers, I would drop the OS/2 change and land the other parts.
Attachment #536542 -
Flags: review?(roc)
Comment on attachment 536542 [details] [diff] [review]
Patch v1.1
Review of attachment 536542 [details] [diff] [review]:
-----------------------------------------------------------------
Just land it.
Attachment #536542 -
Flags: review?(roc) → review+
Comment 5•14 years ago
|
||
(In reply to comment #0)
> I'd like OS/2 guys to check this patch whether not causes bustage.
(In reply to comment #3)
> If we didn't get feedback from OS/2 developers, I would drop the OS/2 change
> and land the other parts.
Sorry for the delay in responding. Go ahead with the OS/2 changes - it looks a lot simpler that the existing code. And, if it breaks something.. well, we're used to that :-)
BTW... I seem to remember that Prefs was not thread-safe and should only be accessed from the primary thread. Is that still the case?
| Assignee | ||
Comment 6•14 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/9014863a7e2a
http://hg.mozilla.org/mozilla-central/rev/66cbdac56469
# the second backed out a part of 9014863a7e2a because it included another bug's draft patch accidentally.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla7
| Assignee | ||
Updated•14 years ago
|
Attachment #536542 -
Flags: feedback?(wuno)
Attachment #536542 -
Flags: feedback?(daveryeo)
Comment 7•14 years ago
|
||
Comment on attachment 536542 [details] [diff] [review]
Patch v1.1
>--- a/widget/src/os2/nsDeviceContextSpecOS2.cpp
>+++ b/widget/src/os2/nsDeviceContextSpecOS2.cpp
>@@ -657,9 +659,8 @@ nsresult GlobalPrinters::InitializeGloba
> if (!mGlobalPrinterList)
> return NS_ERROR_OUT_OF_MEMORY;
>
>- nsresult rv;
>- nsCOMPtr<nsIPrefBranch> pPrefs = do_GetService(NS_PREFSERVICE_CONTRACTID, &rv);
>- BOOL prefFailed = NS_FAILED(rv); // don't return on failure, optional feature
>+ // don't return on failure, optional feature
>+ BOOL prefFailed = (Preferences::GetRootBranch() != nsnull);
!= nsnull or == nsnull?
| Assignee | ||
Comment 8•14 years ago
|
||
(In reply to comment #7)
> Comment on attachment 536542 [details] [diff] [review] [review]
> Patch v1.1
>
> >--- a/widget/src/os2/nsDeviceContextSpecOS2.cpp
> >+++ b/widget/src/os2/nsDeviceContextSpecOS2.cpp
> >@@ -657,9 +659,8 @@ nsresult GlobalPrinters::InitializeGloba
> > if (!mGlobalPrinterList)
> > return NS_ERROR_OUT_OF_MEMORY;
> >
> >- nsresult rv;
> >- nsCOMPtr<nsIPrefBranch> pPrefs = do_GetService(NS_PREFSERVICE_CONTRACTID, &rv);
> >- BOOL prefFailed = NS_FAILED(rv); // don't return on failure, optional feature
> >+ // don't return on failure, optional feature
> >+ BOOL prefFailed = (Preferences::GetRootBranch() != nsnull);
>
> != nsnull or == nsnull?
Oh... I'll post a followup patch.
| Assignee | ||
Comment 9•14 years ago
|
||
Attachment #537758 -
Flags: review?(roc)
Comment on attachment 537758 [details] [diff] [review]
Fix the nit in nsDeviceContextSpecOS2.cpp
Review of attachment 537758 [details] [diff] [review]:
-----------------------------------------------------------------
Attachment #537758 -
Flags: review?(roc) → review+
| Assignee | ||
Comment 11•14 years ago
|
||
Comment 12•14 years ago
|
||
Hi.
Is there any way I can test this? Do you have some STR?
Thanks
You need to log in
before you can comment on or make changes to this bug.
Description
•