Closed Bug 1225225 Opened 10 years ago Closed 10 years ago

Incorrect pref type and name used ImageBlockingPolicy

Categories

(Firefox for Android Graveyard :: General, defect)

defect
Not set
normal

Tracking

(firefox45 fixed)

RESOLVED FIXED
Firefox 45
Tracking Status
firefox45 --- fixed

People

(Reporter: nalexander, Assigned: jonalmeida)

References

Details

Attachments

(1 file)

11-16 11:03:29.860 28735-28771/org.mozilla.fennec_nalexander E/GeckoConsole﹕ [JavaScript Error: "NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getBoolPref]" {file: "jar:jar:file:///data/app/org.mozilla.fennec_nalexander-1.apk!/assets/omni.ja!/components/ImageBlockingPolicy.js" line: 106}] The underlying code looks confused: there are multiple references to "browser.image_blocking.enabled", which looks wrong. See https://dxr.mozilla.org/mozilla-central/search?q=image_blocking&case=true.
tracking-fennec: --- → ?
You're right, the issue is the wrong pref value which removed .enabled.
Assignee: nobody → jonalmeida942
My telemetry patch overwrote the new pref value in ImageBlockingPolicy.js. Should be a simple fix; will do it now.
Summary: "NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getBoolPref]" {file: "jar:jar:file:///data/app/org.mozi → Incorrect pref type and name used ImageBlockingPolicy
Bug 1225225 - Incorrect pref type and name used ImageBlockingPolicy r?mfinkle
Attachment #8688082 - Flags: review?(mark.finkle)
Comment on attachment 8688082 [details] MozReview Request: Bug 1225225 - Incorrect pref type and name used ImageBlockingPolicy r?mfinkle https://reviewboard.mozilla.org/r/25277/#review22773 ::: mobile/android/components/ImageBlockingPolicy.js:23 (Diff revision 1) > -const PREF_IMAGEBLOCKING_ENABLED = "browser.image_blocking.enabled"; > +const PREF_IMAGEBLOCKING_ENABLED = "browser.image_blocking"; PREF_IMAGEBLOCKING_ENABLED -> PREF_IMAGEBLOCKING ::: mobile/android/components/ImageBlockingPolicy.js:95 (Diff revision 1) > return Services.prefs.getIntPref("browser.image_blocking"); Use the constant here ::: mobile/android/components/ImageBlockingPolicy.js:100 (Diff revision 1) > Services.telemetry.getHistogramById(TELEMETRY_TAP_TO_LOAD_ENABLED).add(getEnabled()); Use this.\_enabled() here ::: mobile/android/components/ImageBlockingPolicy.js:105 (Diff revision 1) > function getEnabled() { Remove this method
Attachment #8688082 - Flags: review?(mark.finkle)
Attachment #8688082 - Flags: review?(mark.finkle)
Comment on attachment 8688082 [details] MozReview Request: Bug 1225225 - Incorrect pref type and name used ImageBlockingPolicy r?mfinkle Review request updated; see interdiff: https://reviewboard.mozilla.org/r/25277/diff/1-2/
Comment on attachment 8688082 [details] MozReview Request: Bug 1225225 - Incorrect pref type and name used ImageBlockingPolicy r?mfinkle https://reviewboard.mozilla.org/r/25277/#review22785 LGTM
Attachment #8688082 - Flags: review?(mark.finkle) → review+
https://hg.mozilla.org/integration/fx-team/rev/2feb5677ea5cedb035700076148065deb08fb3aa Bug 1225225 - Incorrect pref type and name used ImageBlockingPolicy r=mfinkle
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 45
tracking-fennec: ? → ---
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: