Make SetURIs be the source of truth for referrer info and principal too. This allows us to remove redundant members. Pull the URI and such out of StyleSheetInfo, since we are sharing StyleSheetInfo across stylesheets with different base URIs and such now (for inline stylesheets), and we need to keep track of the "right" base URI for when we eventually clone them. There's one part of the change here which is a bit scary, which is the principal shenanigans. However I don't think it's problematic since we already are using the URLExtraData for CSS parsing and subresource loads, which doesn't have that mutation. In particular, we only use StyleSheet::Principal from Loader::LoadChildSheet. So we can implement what the spec actually says (an origin-clean flag). Differential Revision: https://phabricator.services.mozilla.com/D269210
4 lines
111 B
INI
4 lines
111 B
INI
[stylesheet-same-origin.sub.html]
|
|
[Origin-clean check in loading error CSSOM Stylesheets]
|
|
expected: FAIL
|