Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: Source/core/html/parser/XSSAuditor.cpp

Issue 995783002: Gracefully handle mixed content checking on detached resource fetches. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/fetch/ResourceFetcher.cpp ('k') | Source/core/loader/FrameFetchContext.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Adam Barth. All Rights Reserved. 2 * Copyright (C) 2011 Adam Barth. All Rights Reserved.
3 * Copyright (C) 2011 Daniel Bates (dbates@intudata.com). 3 * Copyright (C) 2011 Daniel Bates (dbates@intudata.com).
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 23 matching lines...) Expand all
34 #include "core/frame/LocalFrame.h" 34 #include "core/frame/LocalFrame.h"
35 #include "core/frame/Settings.h" 35 #include "core/frame/Settings.h"
36 #include "core/frame/csp/ContentSecurityPolicy.h" 36 #include "core/frame/csp/ContentSecurityPolicy.h"
37 #include "core/html/HTMLParamElement.h" 37 #include "core/html/HTMLParamElement.h"
38 #include "core/html/parser/HTMLDocumentParser.h" 38 #include "core/html/parser/HTMLDocumentParser.h"
39 #include "core/html/parser/HTMLParserIdioms.h" 39 #include "core/html/parser/HTMLParserIdioms.h"
40 #include "core/html/parser/TextResourceDecoder.h" 40 #include "core/html/parser/TextResourceDecoder.h"
41 #include "core/html/parser/XSSAuditorDelegate.h" 41 #include "core/html/parser/XSSAuditorDelegate.h"
42 #include "core/inspector/ConsoleMessage.h" 42 #include "core/inspector/ConsoleMessage.h"
43 #include "core/loader/DocumentLoader.h" 43 #include "core/loader/DocumentLoader.h"
44 #include "core/loader/MixedContentChecker.h"
44 #include "platform/JSONValues.h" 45 #include "platform/JSONValues.h"
45 #include "platform/network/FormData.h" 46 #include "platform/network/FormData.h"
46 #include "platform/text/DecodeEscapeSequences.h" 47 #include "platform/text/DecodeEscapeSequences.h"
47 #include "wtf/ASCIICType.h" 48 #include "wtf/ASCIICType.h"
48 #include "wtf/MainThread.h" 49 #include "wtf/MainThread.h"
49 50
50 namespace { 51 namespace {
51 52
52 // SecurityOrigin::urlWithUniqueSecurityOrigin() can't be used cross-thread, or we'd use it instead. 53 // SecurityOrigin::urlWithUniqueSecurityOrigin() can't be used cross-thread, or we'd use it instead.
53 const char kURLWithUniqueOrigin[] = "data:,"; 54 const char kURLWithUniqueOrigin[] = "data:,";
(...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after
823 824
824 bool XSSAuditor::isSafeToSendToAnotherThread() const 825 bool XSSAuditor::isSafeToSendToAnotherThread() const
825 { 826 {
826 return m_documentURL.isSafeToSendToAnotherThread() 827 return m_documentURL.isSafeToSendToAnotherThread()
827 && m_decodedURL.isSafeToSendToAnotherThread() 828 && m_decodedURL.isSafeToSendToAnotherThread()
828 && m_decodedHTTPBody.isSafeToSendToAnotherThread() 829 && m_decodedHTTPBody.isSafeToSendToAnotherThread()
829 && m_httpBodyAsString.isSafeToSendToAnotherThread(); 830 && m_httpBodyAsString.isSafeToSendToAnotherThread();
830 } 831 }
831 832
832 } // namespace blink 833 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/fetch/ResourceFetcher.cpp ('k') | Source/core/loader/FrameFetchContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698