Move initialization of report_only_feature_policy_ to SecurityContextInit
This CL moves initialization of report_only_feature_policy_ from ExecutionContext::ApplyReportOnlyFeaturePolicyFromHeader to SecurityContextInit where enforced feature_policy_ is initialized. Add |pending_console_message_| field to Document in order to correctly handle console message generated in Document constructor where frame_->GetDocument returns nullptr which causes FrameConsole to return early. Change-Id: I8a4e178d04541b53394a52e66f2205cc932dea4a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2048105 Commit-Queue: Charlie Hu <chenleihu@google.com> Reviewed-by:Daniel Cheng <dcheng@chromium.org> Reviewed-by:
Ian Clelland <iclelland@chromium.org> Cr-Commit-Position: refs/heads/master@{#745771}
Showing
Please register or sign in to comment