Closed Bug 1578231 Opened 5 years ago Closed 5 years ago

Hardcode whitelist of about: pages where we can not apply a CSP

Categories

(Core :: DOM: Security, task)

task
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla71
Tracking Status
firefox71 --- fixed

People

(Reporter: ckerschb, Assigned: ckerschb)

References

Details

(Whiteboard: [domsecurity-active])

Attachments

(1 file)

There are some about: pages, like about:blank or about:sync-log where we can't apply a CSP. We should hardcode that whitelist inside the assertion code and remove the pref.

Whiteboard: [domsecurity-active]
Pushed by mozilla@christophkerschbaumer.com:
https://hg.mozilla.org/integration/autoland/rev/e2927c8227d9
Hardcode whitelist of about: pages where we can not apply a CSP. r=jkt

(In reply to Dorel Luca [:dluca] from comment #3)

Backed out changeset e2927c8227d9 (bug 1578231) for Browser-chrome failures browser/base/content/test/performance/browser_preferences_usage.js

Dluca and/or Aryx, looking at the logs I think it's rather unlikely that my patch caused the problem. What's your take? I am missing something?

Flags: needinfo?(dluca)
Flags: needinfo?(ckerschb)
Flags: needinfo?(aryx.bugmail)

I posted the wrong log link, sorry for that.

Here is the correct one:
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=265119104&repo=autoland&lineNumber=1091

Flags: needinfo?(dluca)

An actual failure: https://treeherder.mozilla.org/#/jobs?repo=autoland&resultStatus=testfailed%2Cbusted%2Cexception%2Cretry%2Cusercancel%2Crunning%2Cpending%2Crunnable&revision=e2927c8227d979c75b7dd6621beb89a81c9b3ee7&selectedJob=265119104

browser/base/content/test/performance/browser_preferences_usage.js | csp.skip_about_page_has_csp_assert should not be accessed more than 40 times. - 42 <= 40 - JS frame :: chrome://mochitests/content/browser/browser/base/content/test/performance/browser_preferences_usage.js :: checkPrefGetters :: line 42

Hope this makes the connection more obvious.

Flags: needinfo?(aryx.bugmail)

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

browser/base/content/test/performance/browser_preferences_usage.js | csp.skip_about_page_has_csp_assert should not be accessed more than 40 times. - 42 <= 40 - JS frame :: chrome://mochitests/content/browser/browser/base/content/test/performance/browser_preferences_usage.js :: checkPrefGetters :: line 42

Hope this makes the connection more obvious.

Thanks - that makes more sense. This pref is only accessed in debug builds, hence I whitelisted it for the test.

Pushed by mozilla@christophkerschbaumer.com:
https://hg.mozilla.org/integration/autoland/rev/eb773bc46182
Hardcode whitelist of about: pages where we can not apply a CSP. r=jkt
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla71
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: