| Index: Source/core/dom/Document.cpp
|
| diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
|
| index 79a84b8f9adfaa1d63cbec035bb4673e37bd25c0..7efc47d857326cda4840dd94cfe69bf9d09ef0cd 100644
|
| --- a/Source/core/dom/Document.cpp
|
| +++ b/Source/core/dom/Document.cpp
|
| @@ -3697,7 +3697,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
|
| @@ -3724,7 +3724,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
|
|
|