| 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 Apple Inc. All rights reserv
ed. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. |
| 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 Google Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009 Google Inc. All rights reserved. |
| 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 2511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2522 // FIXME: make setCookie work on XML documents too; e.g. in case of <htm
l:meta .....> | 2522 // FIXME: make setCookie work on XML documents too; e.g. in case of <htm
l:meta .....> |
| 2523 if (isHTMLDocument()) { | 2523 if (isHTMLDocument()) { |
| 2524 ExceptionCode ec; // Exception (for sandboxed documents) ignored. | 2524 ExceptionCode ec; // Exception (for sandboxed documents) ignored. |
| 2525 static_cast<HTMLDocument*>(this)->setCookie(content, ec); | 2525 static_cast<HTMLDocument*>(this)->setCookie(content, ec); |
| 2526 } | 2526 } |
| 2527 } else if (equalIgnoringCase(equiv, "content-language")) | 2527 } else if (equalIgnoringCase(equiv, "content-language")) |
| 2528 setContentLanguage(content); | 2528 setContentLanguage(content); |
| 2529 else if (equalIgnoringCase(equiv, "x-dns-prefetch-control")) | 2529 else if (equalIgnoringCase(equiv, "x-dns-prefetch-control")) |
| 2530 parseDNSPrefetchControlHeader(content); | 2530 parseDNSPrefetchControlHeader(content); |
| 2531 else if (equalIgnoringCase(equiv, "x-frame-options")) { | 2531 else if (equalIgnoringCase(equiv, "x-frame-options")) { |
| 2532 FrameLoader* frameLoader = frame->loader(); | 2532 if (frame) { |
| 2533 if (frameLoader->shouldInterruptLoadForXFrameOptions(content, url())) { | 2533 FrameLoader* frameLoader = frame->loader(); |
| 2534 frameLoader->stopAllLoaders(); | 2534 if (frameLoader->shouldInterruptLoadForXFrameOptions(content, url())
) { |
| 2535 frame->redirectScheduler()->scheduleLocationChange(blankURL(), Strin
g()); | 2535 frameLoader->stopAllLoaders(); |
| 2536 frame->redirectScheduler()->scheduleLocationChange(blankURL(), S
tring()); |
| 2536 | 2537 |
| 2537 DEFINE_STATIC_LOCAL(String, consoleMessage, ("Refused to display doc
ument because display forbidden by X-Frame-Options.\n")); | 2538 DEFINE_STATIC_LOCAL(String, consoleMessage, ("Refused to display
document because display forbidden by X-Frame-Options.\n")); |
| 2538 frame->domWindow()->console()->addMessage(JSMessageSource, LogMessag
eType, ErrorMessageLevel, consoleMessage, 1, String()); | 2539 frame->domWindow()->console()->addMessage(JSMessageSource, LogMe
ssageType, ErrorMessageLevel, consoleMessage, 1, String()); |
| 2540 } |
| 2539 } | 2541 } |
| 2540 } | 2542 } |
| 2541 } | 2543 } |
| 2542 | 2544 |
| 2543 // Though isspace() considers \t and \v to be whitespace, Win IE doesn't. | 2545 // Though isspace() considers \t and \v to be whitespace, Win IE doesn't. |
| 2544 static bool isSeparator(UChar c) | 2546 static bool isSeparator(UChar c) |
| 2545 { | 2547 { |
| 2546 return c == ' ' || c == '\t' || c == '\n' || c == '\r' || c == '=' || c == '
,' || c == '\0'; | 2548 return c == ' ' || c == '\t' || c == '\n' || c == '\r' || c == '=' || c == '
,' || c == '\0'; |
| 2547 } | 2549 } |
| 2548 | 2550 |
| (...skipping 2220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4769 void Document::decrementLoadEventDelayCount() | 4771 void Document::decrementLoadEventDelayCount() |
| 4770 { | 4772 { |
| 4771 ASSERT(m_loadEventDelayCount); | 4773 ASSERT(m_loadEventDelayCount); |
| 4772 --m_loadEventDelayCount; | 4774 --m_loadEventDelayCount; |
| 4773 | 4775 |
| 4774 if (frame() && !m_loadEventDelayCount) | 4776 if (frame() && !m_loadEventDelayCount) |
| 4775 frame()->loader()->checkCompleted(); | 4777 frame()->loader()->checkCompleted(); |
| 4776 } | 4778 } |
| 4777 | 4779 |
| 4778 } // namespace WebCore | 4780 } // namespace WebCore |
| OLD | NEW |