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)
Firefox for Android Graveyard
General
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.
Updated•10 years ago
|
tracking-fennec: --- → ?
Assignee | ||
Comment 1•10 years ago
|
||
You're right, the issue is the wrong pref value which removed .enabled.
Assignee: nobody → jonalmeida942
Assignee | ||
Comment 2•10 years ago
|
||
My telemetry patch overwrote the new pref value in ImageBlockingPolicy.js.
Should be a simple fix; will do it now.
Assignee | ||
Updated•10 years ago
|
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
Assignee | ||
Comment 3•10 years ago
|
||
Assignee | ||
Comment 4•10 years ago
|
||
Assignee | ||
Comment 5•10 years ago
|
||
Bug 1225225 - Incorrect pref type and name used ImageBlockingPolicy r?mfinkle
Attachment #8688082 -
Flags: review?(mark.finkle)
Comment 6•10 years ago
|
||
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)
Assignee | ||
Updated•10 years ago
|
Attachment #8688082 -
Flags: review?(mark.finkle)
Assignee | ||
Comment 7•10 years ago
|
||
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 8•10 years ago
|
||
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+
Assignee | ||
Comment 9•10 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/2feb5677ea5cedb035700076148065deb08fb3aa
Bug 1225225 - Incorrect pref type and name used ImageBlockingPolicy r=mfinkle
![]() |
||
Comment 10•10 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 45
Updated•10 years ago
|
tracking-fennec: ? → ---
Updated•5 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•