| Index: components/printing/renderer/print_web_view_helper.cc
|
| diff --git a/components/printing/renderer/print_web_view_helper.cc b/components/printing/renderer/print_web_view_helper.cc
|
| index d824dfe2d5ba37c9e8a9fa3b7c9e67f419e198b4..1b9d9fbf11764dcb1f67750b111a2aac416b4533 100644
|
| --- a/components/printing/renderer/print_web_view_helper.cc
|
| +++ b/components/printing/renderer/print_web_view_helper.cc
|
| @@ -32,6 +32,7 @@
|
| #include "printing/metafile_skia_wrapper.h"
|
| #include "printing/pdf_metafile_skia.h"
|
| #include "printing/units.h"
|
| +#include "third_party/WebKit/public/platform/WebSecurityOrigin.h"
|
| #include "third_party/WebKit/public/platform/WebSize.h"
|
| #include "third_party/WebKit/public/platform/WebURLRequest.h"
|
| #include "third_party/WebKit/public/web/WebConsoleMessage.h"
|
| @@ -751,7 +752,9 @@ void PrepareFrameAndViewForPrint::CopySelection(
|
|
|
| // When loading is done this will call didStopLoading() and that will do the
|
| // actual printing.
|
| - frame()->loadRequest(blink::WebURLRequest(GURL(url_str)));
|
| + blink::WebURLRequest request = blink::WebURLRequest(GURL(url_str));
|
| + request.setRequestorOrigin(blink::WebSecurityOrigin::createUnique());
|
| + frame()->loadRequest(request);
|
| }
|
|
|
| bool PrepareFrameAndViewForPrint::allowsBrokenNullLayerTreeView() const {
|
|
|