OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. |
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. |
(...skipping 5658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5669 | 5669 |
5670 v8::Local<v8::Object> Document::associateWithWrapper(v8::Isolate* isolate, const
WrapperTypeInfo* wrapperType, v8::Local<v8::Object> wrapper) | 5670 v8::Local<v8::Object> Document::associateWithWrapper(v8::Isolate* isolate, const
WrapperTypeInfo* wrapperType, v8::Local<v8::Object> wrapper) |
5671 { | 5671 { |
5672 V8DOMWrapper::associateObjectWithWrapper(isolate, this, wrapperType, wrapper
); | 5672 V8DOMWrapper::associateObjectWithWrapper(isolate, this, wrapperType, wrapper
); |
5673 DOMWrapperWorld& world = DOMWrapperWorld::current(isolate); | 5673 DOMWrapperWorld& world = DOMWrapperWorld::current(isolate); |
5674 if (world.isMainWorld() && frame()) | 5674 if (world.isMainWorld() && frame()) |
5675 frame()->script().windowProxy(world)->updateDocumentWrapper(wrapper); | 5675 frame()->script().windowProxy(world)->updateDocumentWrapper(wrapper); |
5676 return wrapper; | 5676 return wrapper; |
5677 } | 5677 } |
5678 | 5678 |
5679 bool Document::isPrivilegedContext(String& errorMessage, const PrivilegeContextC
heck privilegeContextCheck) | 5679 bool Document::isPrivilegedContext(String& errorMessage, const PrivilegeContextC
heck privilegeContextCheck) const |
5680 { | 5680 { |
5681 if (securityContext().isSandboxed(SandboxOrigin)) { | 5681 if (securityContext().isSandboxed(SandboxOrigin)) { |
5682 if (!SecurityOrigin::create(url())->isPotentiallyTrustworthy(errorMessag
e)) | 5682 if (!SecurityOrigin::create(url())->isPotentiallyTrustworthy(errorMessag
e)) |
5683 return false; | 5683 return false; |
5684 } else { | 5684 } else { |
5685 if (!securityOrigin()->isPotentiallyTrustworthy(errorMessage)) | 5685 if (!securityOrigin()->isPotentiallyTrustworthy(errorMessage)) |
5686 return false; | 5686 return false; |
5687 } | 5687 } |
5688 | 5688 |
5689 if (privilegeContextCheck == StandardPrivilegeCheck) { | 5689 if (privilegeContextCheck == StandardPrivilegeCheck) { |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5774 #ifndef NDEBUG | 5774 #ifndef NDEBUG |
5775 using namespace blink; | 5775 using namespace blink; |
5776 void showLiveDocumentInstances() | 5776 void showLiveDocumentInstances() |
5777 { | 5777 { |
5778 WeakDocumentSet& set = liveDocumentSet(); | 5778 WeakDocumentSet& set = liveDocumentSet(); |
5779 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5779 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
5780 for (Document* document : set) | 5780 for (Document* document : set) |
5781 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); | 5781 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); |
5782 } | 5782 } |
5783 #endif | 5783 #endif |
OLD | NEW |