Closed Bug 947078 Opened 11 years ago Closed 10 years ago

Make the "Include URLs" option for the crash reporter into a checkbox instead of a toggle

Categories

(Firefox for Metro Graveyard :: Flyouts, defect, P2)

x86_64
Windows 8.1
defect

Tracking

(firefox28 verified, firefox29 verified)

VERIFIED FIXED
Firefox 29
Tracking Status
firefox28 --- verified
firefox29 --- verified

People

(Reporter: TimAbraldes, Assigned: ally)

References

Details

(Whiteboard: [beta28] [feature] p=2)

Attachments

(1 file, 1 obsolete file)

In bug 903426, we added the ability to strip URLs in crash reports. To match the mockup, the option in our preferences flyout labeled "Include the address of the page I was on" should be a checkbox that grays out if crash reporting is disabled. It is currently a <settings> element.
Whiteboard: [triage] → [release28]
Whiteboard: [release28] → [release28] p=0
yoink! looks like a good bug to take out any holiday frustration on.
Assignee: nobody → ally
Hey Ally, can you provide a point value.
Flags: needinfo?(ally)
points = 1 or 2
Flags: needinfo?(ally)
Blocks: metrov1it21
No longer blocks: metrov1backlog
Status: NEW → ASSIGNED
Priority: -- → P2
QA Contact: jbecerra
Whiteboard: [release28] p=0 → [block28] p=2
Attached patch crashurlscheckbox (obsolete) — Splinter Review
flagged for feedback because the about:config value for autoSubmit doesn't seem to update in about:config but submitURLs behaves as expected. Tim, thoughts?
Attachment #8348428 - Flags: feedback?(tabraldes)
Comment on attachment 8348428 [details] [diff] [review]
crashurlscheckbox

Review of attachment 8348428 [details] [diff] [review]:
-----------------------------------------------------------------

::: browser/metro/base/content/browser.xul
@@ +677,5 @@
>        <settings id="prefs-reporting" label="&optionsHeader.reporting.title;">
>          <setting pref="app.crashreporter.autosubmit"
>                   type="bool"
>                   title="&optionsHeader.reporting.crashes.label;" />
> +        <checkbox pref="app.crashreporter.submitURLs"

"pref" has meaning for the <setting> element but not (I think) for the <checkbox> element. I'm pretty sure that's why you're seeing that the "submitURLs" doesn't get updated. I think you'll have to add logic to update the pref whenever this checkbox gets checked/unchecked.
Attachment #8348428 - Flags: feedback?(tabraldes) → feedback+
(In reply to Tim Abraldes [:TimAbraldes] [:tabraldes] from comment #5)
> Comment on attachment 8348428 [details] [diff] [review]
> crashurlscheckbox
> 
> Review of attachment 8348428 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> ::: browser/metro/base/content/browser.xul
> @@ +677,5 @@
> >        <settings id="prefs-reporting" label="&optionsHeader.reporting.title;">
> >          <setting pref="app.crashreporter.autosubmit"
> >                   type="bool"
> >                   title="&optionsHeader.reporting.crashes.label;" />
> > +        <checkbox pref="app.crashreporter.submitURLs"
> 
> "pref" has meaning for the <setting> element but not (I think) for the
> <checkbox> element. I'm pretty sure that's why you're seeing that the
> "submitURLs" doesn't get updated. I think you'll have to add logic to update
> the pref whenever this checkbox gets checked/unchecked.

You've got them backwards. :) submitURLs is working/updating(the submit urls to crash reporter pref) but not autoSubmit (the general crash reporter pref) which was not altered from its <settings> or even touched in this patch, which is why I am seeking insight. :)
(In reply to :Ally Naaktgeboren from comment #6)
> You've got them backwards. :) submitURLs is working/updating(the submit urls
> to crash reporter pref) but not autoSubmit (the general crash reporter pref)
> which was not altered from its <settings> or even touched in this patch,
> which is why I am seeking insight. :)

In a build with this patch, I'm seeing what Tim was seeing -- the toggle switch correctly sets the autosubmit pref, but the checkbox has no effect.
talked to mbrubeck about it. He is seeing the opposite behavior of what I am seeing. The plot thickens.
Blocks: metrov1it22
No longer blocks: metrov1it21
Whiteboard: [block28] p=2 → [beta28] p=2
Whiteboard: [beta28] p=2 → [beta28] [feature] p=2
Attachment #8348428 - Attachment is obsolete: true
Attachment #8360095 - Flags: review?(mbrubeck)
Comment on attachment 8360095 [details] [diff] [review]
checkbox_crashpref

Review of attachment 8360095 [details] [diff] [review]:
-----------------------------------------------------------------

::: browser/metro/base/content/flyoutpanels/PrefsFlyoutPanel.js
@@ +39,5 @@
>        SanitizeUI.init();
>        this._hasShown = true;
>  
>        Services.prefs.addObserver("privacy.donottrackheader.value",
> +                                 this,

Thanks for doing this cleanup!  Hopefully it'll prevent future confusion in this code.
Attachment #8360095 - Flags: review?(mbrubeck) → review+
https://hg.mozilla.org/mozilla-central/rev/56c79adf3a3d
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 29
re-opening so I remember to get this uplifted to aurora.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Breaks Marco's workflow, so I guess I'll close it again. :) Sorry for the bugspam!
Status: REOPENED → RESOLVED
Closed: 10 years ago10 years ago
Resolution: --- → FIXED
Whiteboard: [beta28] [feature] p=2 → [beta28] [feature][remember to uplift] p=2
Whiteboard: [beta28] [feature][remember to uplift] p=2 → [beta28] [feature] p=2
User Agents:
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0

Verified as fixed on latest Aurora (build ID: 20140123004002) and on latest Nightly (build ID: 20140122030521).
"Include URLs" option is now a checkbox which becomes grayed out if crash report is disabled.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: