Closed Bug 2092557 Opened 13 days ago Closed 9 days ago

test_reporturl.html fails when run twice in the same browser because the safe-browsing permission from "ignore the risk" is never removed

Categories

(Toolkit :: Safe Browsing, task)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: florian, Assigned: florian)

References

Details

Attachments

(1 external file)

Clicking ignore_warning_link in test_reporturl.html makes BlockedSiteParent.ignoreWarningLink add a session-long safe-browsing permission for http://itisaphishingsite.org. The test never removes it.

When the test runs again in the same browser (the upcoming mochitest-chrome repeat jobs), the http load gets past the classifier, HTTPS-First upgrades it, and the https URL is blocked instead. The report URL then contains https://... and the test fails "Correct report URL" and then times out.

The fix removes the safe-browsing permissions in a cleanup function.

Blocks: 2092575

The session permission for http://itisaphishingsite.org let a repeated run's load past the classifier, so HTTPS-First upgraded it and the https URL got blocked and reported instead.

Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/ce4a3b1a4237 https://hg.mozilla.org/integration/autoland/rev/3f540658b00a Remove the safe-browsing permissions test_reporturl.html grants by ignoring the warning, r=firefox-desktop-core-reviewers ,Gijs.
Status: ASSIGNED → RESOLVED
Closed: 9 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: