Closed
Bug 711054
Opened 13 years ago
Closed 13 years ago
Stop using readstrings errors for updater
Categories
(Toolkit :: Application Update, defect)
Tracking
()
RESOLVED
FIXED
mozilla13
People
(Reporter: bbondy, Assigned: bbondy)
References
Details
Attachments
(1 file, 1 obsolete file)
21.77 KB,
patch
|
robert.strong.bugs
:
review+
|
Details | Diff | Splinter Review |
From rs:
The updater currently overloads readstrings errors. This is an artifact of the time we needed readstrings available for the WinCE / WinMo installer.
>--- a/toolkit/mozapps/readstrings/errors.h
>+++ b/toolkit/mozapps/readstrings/errors.h
>@@ -44,10 +44,13 @@
> // #define IO_ERROR 2 // Use READ_ERROR or WRITE_ERROR instead
> #define USAGE_ERROR 3
> #define CRC_ERROR 4
> #define PARSE_ERROR 5
> #define READ_ERROR 6
> #define WRITE_ERROR 7
> #define UNEXPECTED_ERROR 8
> #define ELEVATION_CANCELED 9
> #define CERT_LOAD_ERROR 10
> #define CERT_HANDLING_ERROR 11
> #define CERT_VERIFY_ERROR 12
Assignee | ||
Comment 1•13 years ago
|
||
I think it would be best to move the files inside readstrings directly into mozapps/update/common since both the maintenance service and updater use it.
Maintenance service has its own error codes it keeps separate in workmonitor.cpp that could go inside there as well.
Assignee | ||
Comment 2•13 years ago
|
||
- Moved readstrings and common error codes into update/common
- Updated error codes to be sequential
- Removed some duplicated code that's been driving me crazy for a while inside the test code.
Attachment #601860 -
Flags: review?(robert.bugzilla)
Comment 3•13 years ago
|
||
Comment on attachment 601860 [details] [diff] [review]
Patch v1.
Did you run the test suite and it passed?
http://mxr.mozilla.org/mozilla-central/source/toolkit/mozapps/update/nsUpdateService.js#145
If so, some additional tests need to be added.
Attachment #601860 -
Flags: review?(robert.bugzilla) → review-
Assignee | ||
Comment 4•13 years ago
|
||
Oops no haven't ran it yet, will fix that, make sure they pass then re-request review.
Assignee | ||
Comment 5•13 years ago
|
||
Updated js error codes, now passing try tests.
Attachment #601860 -
Attachment is obsolete: true
Attachment #602876 -
Flags: review?(robert.bugzilla)
Comment 6•13 years ago
|
||
Did you verify that the tests fail without these changes? I won't request that fixes for this be included in this bug if they don't but I'd like to know whether there needs to be a followup. Thanks
Assignee | ||
Comment 7•13 years ago
|
||
I had not run the old patch through try. I can now though.
Comment 8•13 years ago
|
||
Comment on attachment 602876 [details] [diff] [review]
Patch v2.
>diff --git a/toolkit/mozapps/update/common/Makefile.in b/toolkit/mozapps/update/common/Makefile.in
>--- a/toolkit/mozapps/update/common/Makefile.in
>+++ b/toolkit/mozapps/update/common/Makefile.in
>@@ -47,20 +47,22 @@ LIBRARY_NAME = updatecommon
> FORCE_STATIC_LIB =1
> LIBXUL_LIBRARY = 1
> ifeq ($(OS_ARCH),WINNT)
> USE_STATIC_LIBS = 1
> endif
>
> CPPSRCS = \
> updatelogging.cpp \
>+ readstrings.cpp \
spaces please
> $(NULL)
>
> EXPORTS = updatelogging.h \
> updatedefines.h \
>+ readstrings.h \
spaces please
If the tests pass without the fix to nsUpdateService.js please file a followup bug to add tests for the error codes. Thanks
Attachment #602876 -
Flags: review?(robert.bugzilla) → review+
Assignee | ||
Comment 9•13 years ago
|
||
Pushed the old patch to try here:
https://tbpl.mozilla.org/?tree=Try&rev=029ce61ed88a
I'll update the results and post a new bug if it doesn't fail.
Assignee | ||
Comment 10•13 years ago
|
||
Target Milestone: --- → mozilla13
Comment 11•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 12•13 years ago
|
||
re comment 9:
> I'll update the results and post a new bug if it doesn't fail.
I pushed this a couple times to try and I think it fails. It's hard to tell though because there was a signing problem on releng side around the same time.
https://tbpl.mozilla.org/?tree=Try&rev=1188a5ce1cf3
https://tbpl.mozilla.org/?tree=Try&rev=029ce61ed88a
You need to log in
before you can comment on or make changes to this bug.
Description
•