commit | 618cf68c2fc06d58857f4bd44a26737fbe9a2494 | [log] [tgz] |
---|---|---|
author | estark <estark@chromium.org> | Thu Oct 06 15:23:19 2016 |
committer | Commit bot <commit-bot@chromium.org> | Thu Oct 06 15:26:45 2016 |
tree | 01cc5286043dab4f8c509b2386af930281f93b95 | |
parent | 74478e83cb924106bb117467486565a8d3736738 [diff] |
Walk up frame tree for srcdoc referrer policies When deciding the referrer policy for a srcdoc document, walk up the frame tree until we find a non-srcdoc document OR a srcdoc document with its own policy set via a meta element. This implements the algorithm defined in https://html.spec.whatwg.org/multipage/browsers.html#set-up-a-browsing-context-environment-settings-object. However, the spec'ed algorithm has to be adjusted per https://github.com/whatwg/html/pull/1559#issuecomment-251767893 to account for meta elements in srcdoc documents (which this CL implements). BUG=653034,637007 Review-Url: https://codereview.chromium.org/2400443004 Cr-Commit-Position: refs/heads/master@{#423538}