CSP3: Implement navigate-to directive
Created attachment 450600 [details] WIP patch
major WIP patch, trying to implement https://www.w3.org/TR/CSP3/#directive-navigate-to. I think I implemented the pre-navigation check properly but haven’t found the best place for the navigation response check yet. It doesn’t help that we can't run a lot of navigate-to WPT tests due to https://bugs.webkit.org/show_bug.cgi?id=127676.
<rdar://problem/88663536>
This directive was removed from the editor's draft a few weeks ago. It didn't have much vendor support beyond Chrome implementing behind a flag and they wanted it gone too. https://github.com/w3c/webappsec-csp/pull/564
Let’s WONTFIX this, then.