| 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 5108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5119 // Send a notification if the origin has been updated. | 5119 // Send a notification if the origin has been updated. |
| 5120 if (standInOrigin && !standInOrigin->isUnique() && getSecurityOrigin()->isUn
ique()) { | 5120 if (standInOrigin && !standInOrigin->isUnique() && getSecurityOrigin()->isUn
ique()) { |
| 5121 getSecurityOrigin()->setUniqueOriginIsPotentiallyTrustworthy(standInOrig
in->isPotentiallyTrustworthy()); | 5121 getSecurityOrigin()->setUniqueOriginIsPotentiallyTrustworthy(standInOrig
in->isPotentiallyTrustworthy()); |
| 5122 if (frame()) | 5122 if (frame()) |
| 5123 frame()->loader().client()->didUpdateToUniqueOrigin(); | 5123 frame()->loader().client()->didUpdateToUniqueOrigin(); |
| 5124 } | 5124 } |
| 5125 } | 5125 } |
| 5126 | 5126 |
| 5127 void Document::updateSecurityOrigin(PassRefPtr<SecurityOrigin> origin) | 5127 void Document::updateSecurityOrigin(PassRefPtr<SecurityOrigin> origin) |
| 5128 { | 5128 { |
| 5129 setSecurityOrigin(origin); | 5129 setSecurityOrigin(std::move(origin)); |
| 5130 didUpdateSecurityOrigin(); | 5130 didUpdateSecurityOrigin(); |
| 5131 } | 5131 } |
| 5132 | 5132 |
| 5133 void Document::didUpdateSecurityOrigin() | 5133 void Document::didUpdateSecurityOrigin() |
| 5134 { | 5134 { |
| 5135 if (!m_frame) | 5135 if (!m_frame) |
| 5136 return; | 5136 return; |
| 5137 m_frame->script().updateSecurityOrigin(getSecurityOrigin()); | 5137 m_frame->script().updateSecurityOrigin(getSecurityOrigin()); |
| 5138 } | 5138 } |
| 5139 | 5139 |
| (...skipping 909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6049 } | 6049 } |
| 6050 | 6050 |
| 6051 void showLiveDocumentInstances() | 6051 void showLiveDocumentInstances() |
| 6052 { | 6052 { |
| 6053 WeakDocumentSet& set = liveDocumentSet(); | 6053 WeakDocumentSet& set = liveDocumentSet(); |
| 6054 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6054 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 6055 for (Document* document : set) | 6055 for (Document* document : set) |
| 6056 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); | 6056 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); |
| 6057 } | 6057 } |
| 6058 #endif | 6058 #endif |
| OLD | NEW |