| 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, 2010 Apple Inc. All rights
reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
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) 2010 Nokia Corporation and/or its subsidiary(-ies) | 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 813 // cookies. For example, if the cookie URL is http://example.com, we'll | 813 // cookies. For example, if the cookie URL is http://example.com, we'll |
| 814 // use the non-Secure cookies for example.com when computing | 814 // use the non-Secure cookies for example.com when computing |
| 815 // document.cookie. | 815 // document.cookie. |
| 816 // | 816 // |
| 817 // Q: How is the cookieURL different from the document's URL? | 817 // Q: How is the cookieURL different from the document's URL? |
| 818 // A: The two URLs are the same almost all the time. However, if one | 818 // A: The two URLs are the same almost all the time. However, if one |
| 819 // document inherits the security context of another document, it | 819 // document inherits the security context of another document, it |
| 820 // inherits its cookieURL but not its URL. | 820 // inherits its cookieURL but not its URL. |
| 821 // | 821 // |
| 822 const KURL& cookieURL() const { return m_cookieURL; } | 822 const KURL& cookieURL() const { return m_cookieURL; } |
| 823 void setCookieURL(const KURL& url) { m_cookieURL = url; } |
| 823 | 824 |
| 824 // The firstPartyForCookies is used to compute whether this document | 825 // The firstPartyForCookies is used to compute whether this document |
| 825 // appears in a "third-party" context for the purpose of third-party | 826 // appears in a "third-party" context for the purpose of third-party |
| 826 // cookie blocking. The document is in a third-party context if the | 827 // cookie blocking. The document is in a third-party context if the |
| 827 // cookieURL and the firstPartyForCookies are from different hosts. | 828 // cookieURL and the firstPartyForCookies are from different hosts. |
| 828 // | 829 // |
| 829 // Note: Some ports (including possibly Apple's) only consider the | 830 // Note: Some ports (including possibly Apple's) only consider the |
| 830 // document in a third-party context if the cookieURL and the | 831 // document in a third-party context if the cookieURL and the |
| 831 // firstPartyForCookies have a different registry-controlled | 832 // firstPartyForCookies have a different registry-controlled |
| 832 // domain. | 833 // domain. |
| (...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1426 if (m_document) | 1427 if (m_document) |
| 1427 m_document->guardRef(); | 1428 m_document->guardRef(); |
| 1428 #if !defined(NDEBUG) || (defined(DUMP_NODE_STATISTICS) && DUMP_NODE_STATISTICS) | 1429 #if !defined(NDEBUG) || (defined(DUMP_NODE_STATISTICS) && DUMP_NODE_STATISTICS) |
| 1429 trackForDebugging(); | 1430 trackForDebugging(); |
| 1430 #endif | 1431 #endif |
| 1431 } | 1432 } |
| 1432 | 1433 |
| 1433 } // namespace WebCore | 1434 } // namespace WebCore |
| 1434 | 1435 |
| 1435 #endif // Document_h | 1436 #endif // Document_h |
| OLD | NEW |