| Index: Source/core/dom/Document.cpp
|
| diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
|
| index f087c8a5c0d2eb1fdc8d3a1ff25d8f4a8cf21fed..f6354b2ffc248fdebf87abe1653e5a698abf776f 100644
|
| --- a/Source/core/dom/Document.cpp
|
| +++ b/Source/core/dom/Document.cpp
|
| @@ -3682,7 +3682,7 @@ HTMLFrameOwnerElement* Document::ownerElement() const
|
|
|
| String Document::cookie(ExceptionState& es) const
|
| {
|
| - if (page() && !page()->settings().cookieEnabled())
|
| + if (settings() && !settings()->cookieEnabled())
|
| return String();
|
|
|
| // FIXME: The HTML5 DOM spec states that this attribute can raise an
|
| @@ -3709,7 +3709,7 @@ String Document::cookie(ExceptionState& es) const
|
|
|
| void Document::setCookie(const String& value, ExceptionState& es)
|
| {
|
| - if (page() && !page()->settings().cookieEnabled())
|
| + if (settings() && !settings()->cookieEnabled())
|
| return;
|
|
|
| // FIXME: The HTML5 DOM spec states that this attribute can raise an
|
|
|