Index: Source/core/html/DOMFormData.cpp |
diff --git a/Source/core/html/DOMFormData.cpp b/Source/core/html/DOMFormData.cpp |
index 942f51f824f4c741091b1acb25ac6ce225113326..a9e629cab2c2fd9f360fd24ee5e540436775c6b0 100644 |
--- a/Source/core/html/DOMFormData.cpp |
+++ b/Source/core/html/DOMFormData.cpp |
@@ -38,6 +38,14 @@ |
namespace WebCore { |
+PassRefPtrWillBeRawPtr<DOMFormData> DOMFormData::create(ExecutionContext* context, HTMLFormElement* form) |
+{ |
+ if (context->isWorkerGlobalScope()) |
+ form = 0; |
+ |
+ return adoptRefWillBeNoop(new DOMFormData(form)); |
+} |
+ |
DOMFormData::DOMFormData(const WTF::TextEncoding& encoding) |
: FormDataList(encoding) |
{ |