| Index: Source/web/WebDOMFileSystem.cpp
|
| diff --git a/Source/web/WebDOMFileSystem.cpp b/Source/web/WebDOMFileSystem.cpp
|
| index 93d627a1fdfc91e813b09512a3d06426b6eb3f09..b811003a0a8020bc694688197b7d1abaee23a7ae 100644
|
| --- a/Source/web/WebDOMFileSystem.cpp
|
| +++ b/Source/web/WebDOMFileSystem.cpp
|
| @@ -116,10 +116,11 @@ WebURL WebDOMFileSystem::rootURL() const
|
| return m_private->rootURL();
|
| }
|
|
|
| -v8::Local<v8::Value> WebDOMFileSystem::toV8Value(v8::Local<v8::Object> /* creationContext */, v8::Isolate* isolate)
|
| +v8::Local<v8::Value> WebDOMFileSystem::toV8Value(v8::Local<v8::Object> creationContext, v8::Isolate* isolate)
|
| {
|
| // We no longer use |creationContext| because it's often misused and points
|
| // to a context faked by user script.
|
| + ASSERT(creationContext->CreationContext() == isolate->GetCurrentContext());
|
| if (!m_private.get())
|
| return v8::Local<v8::Value>();
|
| return toV8(m_private.get(), isolate->GetCurrentContext()->Global(), isolate);
|
| @@ -131,6 +132,9 @@ v8::Local<v8::Value> WebDOMFileSystem::createV8Entry(
|
| v8::Local<v8::Object> creationContext,
|
| v8::Isolate* isolate)
|
| {
|
| + // We no longer use |creationContext| because it's often misused and points
|
| + // to a context faked by user script.
|
| + ASSERT(creationContext->CreationContext() == isolate->GetCurrentContext());
|
| if (!m_private.get())
|
| return v8::Local<v8::Value>();
|
| if (entryType == EntryTypeDirectory)
|
|
|