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

Side by Side Diff: third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp

Issue 2685543002: Support data URLs in worker constructors (Closed)
Patch Set: Added additional test for invalid javascript data: worker Created 3 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2013, Intel Corporation 3 * Copyright (C) 2013, Intel Corporation
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 are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 bool IsNoCORSAllowedContext( 105 bool IsNoCORSAllowedContext(
106 WebURLRequest::RequestContext context, 106 WebURLRequest::RequestContext context,
107 WebURLRequest::SkipServiceWorker skipServiceWorker) { 107 WebURLRequest::SkipServiceWorker skipServiceWorker) {
108 switch (context) { 108 switch (context) {
109 case WebURLRequest::RequestContextAudio: 109 case WebURLRequest::RequestContextAudio:
110 case WebURLRequest::RequestContextVideo: 110 case WebURLRequest::RequestContextVideo:
111 case WebURLRequest::RequestContextObject: 111 case WebURLRequest::RequestContextObject:
112 case WebURLRequest::RequestContextFavicon: 112 case WebURLRequest::RequestContextFavicon:
113 case WebURLRequest::RequestContextImage: 113 case WebURLRequest::RequestContextImage:
114 case WebURLRequest::RequestContextScript: 114 case WebURLRequest::RequestContextScript:
115 case WebURLRequest::RequestContextWorker:
116 case WebURLRequest::RequestContextSharedWorker:
115 return true; 117 return true;
116 case WebURLRequest::RequestContextPlugin: 118 case WebURLRequest::RequestContextPlugin:
117 return skipServiceWorker == WebURLRequest::SkipServiceWorker::All; 119 return skipServiceWorker == WebURLRequest::SkipServiceWorker::All;
118 default: 120 default:
119 return false; 121 return false;
120 } 122 }
121 } 123 }
122 124
123 } // namespace 125 } // namespace
124 126
(...skipping 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after
1147 } 1149 }
1148 1150
1149 DEFINE_TRACE(DocumentThreadableLoader) { 1151 DEFINE_TRACE(DocumentThreadableLoader) {
1150 visitor->trace(m_resource); 1152 visitor->trace(m_resource);
1151 visitor->trace(m_document); 1153 visitor->trace(m_document);
1152 ThreadableLoader::trace(visitor); 1154 ThreadableLoader::trace(visitor);
1153 RawResourceClient::trace(visitor); 1155 RawResourceClient::trace(visitor);
1154 } 1156 }
1155 1157
1156 } // namespace blink 1158 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698