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 | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All |
7 * rights reserved. | 7 * rights reserved. |
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
9 * (http://www.torchmobile.com/) | 9 * (http://www.torchmobile.com/) |
10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
(...skipping 4634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4645 return; | 4645 return; |
4646 } | 4646 } |
4647 | 4647 |
4648 if (result == OriginAccessEntry::MatchesOriginButIsPublicSuffix) { | 4648 if (result == OriginAccessEntry::MatchesOriginButIsPublicSuffix) { |
4649 exceptionState.throwSecurityError("'" + newDomain + | 4649 exceptionState.throwSecurityError("'" + newDomain + |
4650 "' is a top-level domain."); | 4650 "' is a top-level domain."); |
4651 return; | 4651 return; |
4652 } | 4652 } |
4653 | 4653 |
4654 getSecurityOrigin()->setDomainFromDOM(newDomain); | 4654 getSecurityOrigin()->setDomainFromDOM(newDomain); |
4655 | |
4656 if (view()) | |
pdr.
2017/02/16 04:04:33
WDYT of changing this to only make the call when n
chrishtr
2017/02/16 04:25:25
Ok.
| |
4657 view()->crossOriginStatusChanged(); | |
4658 | |
4655 if (m_frame) | 4659 if (m_frame) |
4656 m_frame->script().updateSecurityOrigin(getSecurityOrigin()); | 4660 m_frame->script().updateSecurityOrigin(getSecurityOrigin()); |
4657 } | 4661 } |
4658 | 4662 |
4659 // http://www.whatwg.org/specs/web-apps/current-work/#dom-document-lastmodified | 4663 // http://www.whatwg.org/specs/web-apps/current-work/#dom-document-lastmodified |
4660 String Document::lastModified() const { | 4664 String Document::lastModified() const { |
4661 DateComponents date; | 4665 DateComponents date; |
4662 bool foundDate = false; | 4666 bool foundDate = false; |
4663 if (m_frame) { | 4667 if (m_frame) { |
4664 if (DocumentLoader* documentLoader = loader()) { | 4668 if (DocumentLoader* documentLoader = loader()) { |
(...skipping 1922 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
6587 } | 6591 } |
6588 | 6592 |
6589 void showLiveDocumentInstances() { | 6593 void showLiveDocumentInstances() { |
6590 WeakDocumentSet& set = liveDocumentSet(); | 6594 WeakDocumentSet& set = liveDocumentSet(); |
6591 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6595 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
6592 for (blink::Document* document : set) | 6596 for (blink::Document* document : set) |
6593 fprintf(stderr, "- Document %p URL: %s\n", document, | 6597 fprintf(stderr, "- Document %p URL: %s\n", document, |
6594 document->url().getString().utf8().data()); | 6598 document->url().getString().utf8().data()); |
6595 } | 6599 } |
6596 #endif | 6600 #endif |
OLD | NEW |