Closed
Bug 886794
Opened 12 years ago
Closed 12 years ago
Implement the new crash reporter prompt ui
Categories
(Firefox for Metro Graveyard :: Browser, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 25
People
(Reporter: jimm, Assigned: jimm)
References
()
Details
Attachments
(4 files, 5 obsolete files)
|
4.19 KB,
patch
|
jwilde
:
review+
|
Details | Diff | Splinter Review |
|
4.60 KB,
patch
|
fryn
:
review+
|
Details | Diff | Splinter Review |
|
18.93 KB,
patch
|
fryn
:
review+
|
Details | Diff | Splinter Review |
|
5.63 KB,
patch
|
jwilde
:
review+
|
Details | Diff | Splinter Review |
No description provided.
| Assignee | ||
Comment 1•12 years ago
|
||
Attachment #767179 -
Flags: review?(jwilde)
Comment 2•12 years ago
|
||
Comment on attachment 767179 [details] [diff] [review]
use the same class for all chrome text links
Review of attachment 767179 [details] [diff] [review]:
-----------------------------------------------------------------
Overall, sounds like a good change to me.
::: browser/metro/theme/platform.css
@@ +16,5 @@
> font-size: @font_normal@;
> }
>
> .text-link {
> + color: #f08000;
Would it be better to use #ff8000 (@metro_orange@) to be consistent with the orange used elsewhere? Or were there legibility issues with that?
Attachment #767179 -
Flags: review?(jwilde) → review+
| Assignee | ||
Comment 3•12 years ago
|
||
| Assignee | ||
Comment 4•12 years ago
|
||
| Assignee | ||
Comment 5•12 years ago
|
||
| Assignee | ||
Updated•12 years ago
|
| Assignee | ||
Comment 6•12 years ago
|
||
Comment on attachment 767773 [details] [diff] [review]
remove about:crash resources
This removes the old about:crash page.
Attachment #767773 -
Flags: review?(fyan)
| Assignee | ||
Comment 7•12 years ago
|
||
This adds the new prompt and logic.
Attachment #767774 -
Attachment is obsolete: true
Attachment #767777 -
Flags: review?(fyan)
| Assignee | ||
Comment 8•12 years ago
|
||
Comment on attachment 767777 [details] [diff] [review]
crash reporting prompt v.1
argh, wrong patch.
Attachment #767777 -
Flags: review?(fyan)
| Assignee | ||
Updated•12 years ago
|
Attachment #767775 -
Attachment is obsolete: true
| Assignee | ||
Updated•12 years ago
|
Attachment #767777 -
Attachment is obsolete: true
| Assignee | ||
Comment 9•12 years ago
|
||
Attachment #767780 -
Flags: review?(fyan)
| Assignee | ||
Comment 10•12 years ago
|
||
Attachment #767860 -
Flags: review?(fyan)
Updated•12 years ago
|
Attachment #767860 -
Flags: review?(fyan) → review?(jwilde)
Updated•12 years ago
|
Attachment #767773 -
Flags: review?(fyan) → review+
Comment 11•12 years ago
|
||
How do I test this UI?
| Assignee | ||
Comment 12•12 years ago
|
||
(In reply to Frank Yan (:fryn) from comment #11)
> How do I test this UI?
Two things to do:
1) plop this line at the top of startupCrashCheck -
DialogUI.importModal(document, "chrome://browser/content/prompt/crash.xul");
return;
2) comment out the MOZILLA_OFFICIAL ifdef here so Enabled=1 stays around.
http://mxr.mozilla.org/mozilla-central/source/browser/metro/metroapp.ini.in#19
build browser/metro, it should open on startup.
| Assignee | ||
Comment 13•12 years ago
|
||
Actually you don't need that second step if you put that import statement right at the top of startupCrashCheck. You'll need step two if you want to crash the app somehow and test the prompt / pref logic.
Comment 14•12 years ago
|
||
Comment on attachment 767780 [details] [diff] [review]
crash reporting prompt v.1
Review of attachment 767780 [details] [diff] [review]:
-----------------------------------------------------------------
For the privacy statement: using the app bar back button's icon instead of the stop button icon would be fine, in my opinion.
::: browser/metro/base/content/browser-ui.js
@@ +1921,5 @@
> + let back = document.getElementById("dialog-modal-block");
> + if (!back) {
> + back = document.createElement("box");
> + } else {
> + while(back.hasChildNodes()) {
Nit: add space between `while` and `(`.
Attachment #767780 -
Flags: review?(fyan) → review+
| Assignee | ||
Comment 15•12 years ago
|
||
minor update, the dialog getter was retrieving the wrong element due to a copy paste error.
Attachment #767860 -
Attachment is obsolete: true
Attachment #767860 -
Flags: review?(jwilde)
Attachment #769392 -
Flags: review?(jwilde)
| Assignee | ||
Comment 16•12 years ago
|
||
while I'm in there, removed the example test link at the top of the test file bbondy pointed me to.
Attachment #769392 -
Attachment is obsolete: true
Attachment #769392 -
Flags: review?(jwilde)
Attachment #769393 -
Flags: review?(jwilde)
| Assignee | ||
Comment 17•12 years ago
|
||
If you're interested in running these in a local build, add
Enabled=1
to the crash reporter section of the app ini file @
obj/dist/bin/metro/metroapp.ini
Comment 18•12 years ago
|
||
Comment on attachment 769393 [details] [diff] [review]
tests
Review of attachment 769393 [details] [diff] [review]:
-----------------------------------------------------------------
Issue: if browser_crashprompt.js is run individually, there will be an exception thrown during shutdown from Downloads.uninit() because Downloads.init() does not get called during the time that the test is run.
As jimm discussed in IRC, uninit should return without attempting to call removeObserver if init has not been called yet.
::: browser/metro/base/tests/mochitest/browser_crashprompt.js
@@ +86,5 @@
> + this.promptedPref = false;
> +
> + BrowserUI.startupCrashCheck();
> +
> + yield waitForMs(100);
Can we comment that these waits are for the time taken to set up the dialog? (Just so that future devs know what code depends on these?)
I don't have a problem with using time-based waits here rather than waitForCondition. It seems to me that the point of the ok(...) statements is to check that the dialog is set up and is shown in a reasonable period of time. If we did a waitForCondition on dialog setup, we'd get test timeouts rather than test failures, which seems less desirable.
Attachment #769393 -
Flags: review?(jwilde) → review+
Comment 19•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/b88cbf916c82
https://hg.mozilla.org/mozilla-central/rev/73923e44fb3f
https://hg.mozilla.org/mozilla-central/rev/c4b623117894
https://hg.mozilla.org/mozilla-central/rev/eb1f30cd3b3d
Status: NEW → RESOLVED
Closed: 12 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → Firefox 25
Comment 20•12 years ago
|
||
Hi, some questions about the strings added in this bug.
crashprompt.dtd
Is using hard-coded "Firefox" and "Mozilla" OK?
crashprompt.properties (crashprompt.messagebody)
Localization comment is clearly wrong since there are two variables (and one I guess it's VendorName). Also please use ordered variables in these cases (%1$S, %2$S, etc.), they're less confusing.
I can open a bug for the last part, just wanted to be sure if the first part is a bug or not.
| Assignee | ||
Comment 21•12 years ago
|
||
(In reply to Francesco Lodolo [:flod] from comment #20)
> Hi, some questions about the strings added in this bug.
>
> crashprompt.dtd
> Is using hard-coded "Firefox" and "Mozilla" OK?
Yes, that long text message doesn't need to be tied to the release channel.
> crashprompt.properties (crashprompt.messagebody)
> Localization comment is clearly wrong since there are two variables (and one
> I guess it's VendorName). Also please use ordered variables in these cases
> (%1$S, %2$S, etc.), they're less confusing.
>
> I can open a bug for the last part, just wanted to be sure if the first part
> is a bug or not.
Sure, sorry about that. cc me, I'll touch up the comment.
Updated•11 years ago
|
OS: Windows 8 Metro → Windows 8.1
You need to log in
before you can comment on or make changes to this bug.
Description
•