Closed Bug 781274 Opened 12 years ago Closed 12 years ago

Enable StrictMode's red screen flashing on unofficial builds

Categories

(Firefox for Android Graveyard :: General, defect, P3)

ARM
Android
defect

Tracking

(Not tracked)

RESOLVED WONTFIX
Firefox 17

People

(Reporter: cpeterson, Assigned: cpeterson)

References

(Depends on 1 open bug)

Details

Attachments

(1 file)

Starting with Honeycomb, StrictMode can flash a red rectangle to warn violations: 

  http://developer.android.com/reference/android/os/StrictMode.ThreadPolicy.Builder.html#penaltyFlashScreen%28%29

More annoying warning options include crashing or a (non-fatal) dialog box. But I think these are too aggressive.

We currently enable StrictMode in unofficial builds: local, Nightly, and Aurora.
Attachment #650215 - Flags: review?(blassey.bugs)
Depends on: 781249
Attachment #650215 - Flags: review?(blassey.bugs) → review+
https://hg.mozilla.org/mozilla-central/rev/a1c1113cdf3e
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment on attachment 650215 [details] [diff] [review]
enable-StrictMode-penaltyFlashScreen.patch

[Approval Request Comment]
Bug caused by (feature/regressing bug #): N/A
User impact if declined: None. This is a debugging feature that only activates itself in Nightly and Aurora builds.
Testing completed (on m-c, etc.): m-c
Risk to taking this patch (and alternatives if risky): Low risk. This debugging feature already exists; my patch just tweaks how it works on Android >= Honeycomb.
String or UUID changes made by this patch: N/A
Attachment #650215 - Flags: approval-mozilla-aurora?
Attachment #650215 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
I backed out of m-a because, after some discussion, I think this will cause more user confusion than it's worth.
https://hg.mozilla.org/releases/mozilla-aurora/rev/2129954bde52
I backed out of m-c, too.
https://hg.mozilla.org/mozilla-central/rev/16932b475002
Resolution: FIXED → WONTFIX
Blocks: 783166
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: