Closed
Bug 912918
Opened 11 years ago
Closed 11 years ago
[app manager] support for warning when there's errors
Categories
(DevTools Graveyard :: WebIDE, defect, P1)
DevTools Graveyard
WebIDE
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 28
People
(Reporter: paul, Assigned: jryans)
References
Details
Attachments
(3 files, 4 obsolete files)
(deleted),
patch
|
jryans
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
jryans
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
jryans
:
review+
|
Details | Diff | Splinter Review |
Today, we don't show the warnings if there are errors.
Reporter | ||
Updated•11 years ago
|
Priority: -- → P2
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → jryans
Status: NEW → ASSIGNED
Hardware: x86 → All
Reporter | ||
Updated•11 years ago
|
Priority: P2 → P1
Assignee | ||
Comment 1•11 years ago
|
||
Attachment #825073 -
Flags: review?(paul)
Reporter | ||
Comment 2•11 years ago
|
||
Comment on attachment 825073 [details] [diff] [review]
Display warnings and errors if both are present
I think there's more than that:
- warnings checks are not always run when there's an error (for example, use a manifest without a name and without an icon, we should have an error + a warning, but the warning check is not run because of a `return null` in app-validator.js)
- we should display warning messages if there are errors
Attachment #825073 -
Flags: review?(paul) → review-
Assignee | ||
Comment 3•11 years ago
|
||
(In reply to Paul Rouget [:paul] from comment #2)
> Comment on attachment 825073 [details] [diff] [review]
> Display warnings and errors if both are present
>
> I think there's more than that:
>
> - warnings checks are not always run when there's an error (for example, use
> a manifest without a name and without an icon, we should have an error + a
> warning, but the warning check is not run because of a `return null` in
> app-validator.js)
Good call, I'll remove those cases so that validator will still proceed.
> - we should display warning messages if there are errors
That does indeed happen with this current patch. :P
Assignee | ||
Comment 4•11 years ago
|
||
Some small style cleanups that JSHint pointed out in the validator file.
Attachment #827094 -
Flags: review?(paul)
Assignee | ||
Comment 5•11 years ago
|
||
This is the same patch you reviewed previously, just rebased and named "Part 2".
I was already displaying both warnings and errors if the validator stored both of them, so no changes were needed there.
Attachment #825073 -
Attachment is obsolete: true
Attachment #827095 -
Flags: review?(paul)
Assignee | ||
Comment 6•11 years ago
|
||
This allows the manifest to keep continue validating even if the name is missing.
That's actually the only one I saw that can be changed... All of the other "return null" paths are for real problems, like not having a manifest at all, or it has bad syntax.
Attachment #827098 -
Flags: review?(paul)
Assignee | ||
Comment 7•11 years ago
|
||
Reporter | ||
Updated•11 years ago
|
Attachment #827094 -
Flags: review?(paul) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #827098 -
Flags: review?(paul) → review+
Reporter | ||
Comment 9•11 years ago
|
||
Comment on attachment 827095 [details] [diff] [review]
Part 2: Display warnings and errors if both are present
> + -moz-margin-start: 10px;
Why? We're not supposed to support bidi in projects.xhtml.
Attachment #827095 -
Flags: review?(paul) → review+
Assignee | ||
Comment 10•11 years ago
|
||
Rebased, carrying over Paul's r+ from attachment 827094 [details] [diff] [review].
Attachment #827094 -
Attachment is obsolete: true
Attachment #828675 -
Flags: review+
Assignee | ||
Updated•11 years ago
|
Attachment #828675 -
Attachment description: Code style cleanups in app validator v2 → Part 1: Code style cleanups in app validator v2
Assignee | ||
Comment 11•11 years ago
|
||
Carrying over Paul's r+ from attachment 827095 [details] [diff] [review].
(In reply to Paul Rouget [:paul] from comment #9)
> Comment on attachment 827095 [details] [diff] [review]
> Part 2: Display warnings and errors if both are present
>
> > + -moz-margin-start: 10px;
>
> Why? We're not supposed to support bidi in projects.xhtml.
Good to know. Changed to margin-left.
Attachment #827095 -
Attachment is obsolete: true
Attachment #828735 -
Flags: review+
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 12•11 years ago
|
||
Comment 13•11 years ago
|
||
Backed out for test_app_validator.html timeouts.
https://hg.mozilla.org/integration/fx-team/rev/8401f783b9f0
https://tbpl.mozilla.org/php/getParsedLog.php?id=30288914&tree=Fx-Team
Flags: in-testsuite+
Whiteboard: [fixed-in-fx-team] → [fixed-in-fx-te
Updated•11 years ago
|
Whiteboard: [fixed-in-fx-te
Assignee | ||
Comment 14•11 years ago
|
||
Carrying over Paul's r+ from attachment 827098 [details] [diff] [review].
Seems I forgot to add the test files.
Try: https://tbpl.mozilla.org/?tree=Try&rev=765f22fd590d
Attachment #827098 -
Attachment is obsolete: true
Attachment #828894 -
Flags: review+
Assignee | ||
Comment 15•11 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/74303a630bea
https://hg.mozilla.org/integration/fx-team/rev/b5bb24894892
https://hg.mozilla.org/integration/fx-team/rev/9bfc039b9262
Flags: in-testsuite+
Whiteboard: [fixed-in-fx-team]
Comment 16•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/74303a630bea
https://hg.mozilla.org/mozilla-central/rev/b5bb24894892
https://hg.mozilla.org/mozilla-central/rev/9bfc039b9262
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 28
Updated•6 years ago
|
Product: Firefox → DevTools
Updated•5 years ago
|
Product: DevTools → DevTools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•