Closed Bug 1066141 Opened 11 years ago Closed 5 months ago

about:support mistakenly shows presence of user.js in Firefox for Android

Categories

(Toolkit :: General, defect)

ARM
Android
defect

Tracking

()

RESOLVED FIXED
145 Branch
Tracking Status
firefox-esr115 --- wontfix
firefox-esr140 --- wontfix
firefox143 --- wontfix
firefox144 --- wontfix
firefox145 --- fixed

People

(Reporter: philipp, Assigned: robwu)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

if you go to about:support on firefox on android, the page mistakenly shows the presence of a user.js file - when you manually go to the profile folder on a rooted device though the file isn't actually there... only a minor glitch
Status: UNCONFIRMED → NEW
Ever confirmed: true
Product: Firefox for Android → Toolkit
Version: Firefox 32 → Trunk
Summary: about:support mistakenly shows presence of user.js → about:support mistakenly shows presence of user.js in Firefox for Android
Seems still actual for FF38 for Android
Severity: minor → S4

Some elements were shown when they should not be on Android,
because these elements rely on the hidden class name introduced in bug
948883, but that declaration is missing for the mobile-specific
aboutSupport.css style sheet.

This patch fixes the visibility by relying on the hidden attribute
instead, and for consistency replaces all uses of display:none with
the hidden boolean. I verified that there are no display rules in
either aboutSupport.css file that would supersede the display:none
declaration of the [hidden] attribute.

Moreover, to avoid errors about "content-analysis-active" element that
is non-existent on Android due to ifndef in the XHTML file, an early
return is added to its usage.
I also audited all uses of ifndef in the aboutSupport.xhtml file and
added/changed the condition in the aboutSupport.js file for consistency.

Comment 2 references two bugs:

  • This reported regression was introduced in bug 948883.
  • "content-analysis-active" error / logspam was introduced in bug 1882606.
Assignee: nobody → rob
Status: NEW → ASSIGNED
Keywords: regression
Regressed by: 948883
See Also: → 1882606
Pushed by amarc@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/7168886aaec5 https://hg.mozilla.org/integration/autoland/rev/c53fb03c32b2 Revert "Bug 1066141 - Consistently hide about:support sections r=desktop-theme-reviewers,emilio" for causing bc failures @ browser_aboutSupport_places.js

Backed out for causing bc failures @ browser_aboutSupport_places

Flags: needinfo?(rob)

The test explicitly checked inline style.display states, but because the patch refactored to use the hidden attribute, that does not work.

I've switched to ContentTaskUtils.isHidden and isVisible, and the test now passes again.

As an extra sanity check I looked for all tests that reference "about:support" and ran them locally, they all pass.

So I'll reland the patch with the fix.

Flags: needinfo?(rob)
Status: ASSIGNED → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 145 Branch
QA Whiteboard: [qa-triage-done-c146/b145]
Regressions: 2001863
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: