Closed Bug 1651976 Opened 5 years ago Closed 5 years ago

Perma browser_bug731866.js | Privacy elements should be visible (id=httpsOnlyBox) and browser_bug795764_cachedisabled.js | Privacy element of id=httpsOnlyBox should be visible when Gecko 80 merges to Beta on 2020-07-27

Categories

(Core :: DOM: Security, defect, P1)

defect

Tracking

()

VERIFIED FIXED
mozilla80
Tracking Status
firefox-esr68 --- unaffected
firefox-esr78 --- unaffected
firefox78 --- unaffected
firefox79 --- unaffected
firefox80 + verified

People

(Reporter: aryx, Assigned: ckerschb)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [domsecurity-active])

Attachments

(1 file)

central-as-beta simulation: https://treeherder.mozilla.org/#/jobs?repo=try&group_state=expanded&resultStatus=testfailed%2Cbusted%2Cexception%2Cretry%2Cusercancel%2Crunnable&revision=de9ae70754f6cd7fd622db51ec21e6bbca8d400e&selectedTaskRun=GEH7i6W-SO-cVnVLOWlD_Q.0

Log: https://treeherder.mozilla.org/logviewer.html#?job_id=309289166&repo=try

TEST-UNEXPECTED-FAIL | browser/components/preferences/tests/browser_bug731866.js | Privacy elements should be visible (id=httpsOnlyBox) -
TEST-UNEXPECTED-FAIL | browser/components/preferences/tests/browser_bug795764_cachedisabled.js | Privacy element of id=httpsOnlyBox should be visible -

(In reply to Sebastian Hengst [:aryx] (needinfo on intermittent or backout) from comment #0)

TEST-UNEXPECTED-FAIL | browser/components/preferences/tests/browser_bug731866.js | Privacy elements should be visible (id=httpsOnlyBox) -
TEST-UNEXPECTED-FAIL | browser/components/preferences/tests/browser_bug795764_cachedisabled.js | Privacy element of id=httpsOnlyBox should be visible -

Gijs, I guess I could use some guidance on how to fix that - can you help me out?

Assignee: nobody → ckerschb
Severity: -- → S3
Status: NEW → ASSIGNED
Flags: needinfo?(ckerschb) → needinfo?(gijskruitbosch+bugs)
Priority: -- → P1
Whiteboard: [domsecurity-active]

You'll want to add a block like https://searchfox.org/mozilla-central/rev/8d55e18875b89cdf2a22a7cba60dc40999c18356/browser/components/preferences/tests/browser_bug731866.js#23-33 in that test, and a similar block inside https://searchfox.org/mozilla-central/rev/8d55e18875b89cdf2a22a7cba60dc40999c18356/browser/components/preferences/tests/browser_bug795764_cachedisabled.js#37 - basically, you'll want avoid asserting that the item with id httpsOnlyBox is visible on non-nightly.

The "right" thing to do is probably to make your new block read the exposure pref you created, and determine the desired state based on that. Does that help?

Flags: needinfo?(gijskruitbosch+bugs) → needinfo?(ckerschb)

(In reply to :Gijs (he/him) from comment #2)

The "right" thing to do is probably to make your new block read the exposure pref you created, and determine the desired state based on that. Does that help?

Yes it does - thanks!

Flags: needinfo?(ckerschb)
Pushed by mozilla@christophkerschbaumer.com: https://hg.mozilla.org/integration/autoland/rev/d4d6783f41b2 Update test browser_bug731866.js and browser_bug795764_cachedisabled.js to work correctly based on whether HTTPS-Only Mode preference if flipped to true of false. r=Gijs,preferences-reviewers
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla80
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: