| 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 2547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2558 defaultEventHandler(beforeUnloadEvent.get()); | 2558 defaultEventHandler(beforeUnloadEvent.get()); |
| 2559 if (beforeUnloadEvent->returnValue().isNull()) | 2559 if (beforeUnloadEvent->returnValue().isNull()) |
| 2560 return true; | 2560 return true; |
| 2561 | 2561 |
| 2562 if (didAllowNavigation) { | 2562 if (didAllowNavigation) { |
| 2563 addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLe
vel, "Blocked attempt to show multiple 'beforeunload' confirmation panels for a
single navigation.")); | 2563 addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLe
vel, "Blocked attempt to show multiple 'beforeunload' confirmation panels for a
single navigation.")); |
| 2564 return true; | 2564 return true; |
| 2565 } | 2565 } |
| 2566 | 2566 |
| 2567 String text = beforeUnloadEvent->returnValue(); | 2567 String text = beforeUnloadEvent->returnValue(); |
| 2568 if (chromeClient.runBeforeUnloadConfirmPanel(text, m_frame)) { | 2568 if (chromeClient.openBeforeUnloadConfirmPanel(text, m_frame)) { |
| 2569 didAllowNavigation = true; | 2569 didAllowNavigation = true; |
| 2570 return true; | 2570 return true; |
| 2571 } | 2571 } |
| 2572 return false; | 2572 return false; |
| 2573 } | 2573 } |
| 2574 | 2574 |
| 2575 void Document::dispatchUnloadEvents() | 2575 void Document::dispatchUnloadEvents() |
| 2576 { | 2576 { |
| 2577 RefPtrWillBeRawPtr<Document> protect(this); | 2577 RefPtrWillBeRawPtr<Document> protect(this); |
| 2578 if (m_parser) | 2578 if (m_parser) |
| (...skipping 3101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5680 #ifndef NDEBUG | 5680 #ifndef NDEBUG |
| 5681 using namespace blink; | 5681 using namespace blink; |
| 5682 void showLiveDocumentInstances() | 5682 void showLiveDocumentInstances() |
| 5683 { | 5683 { |
| 5684 WeakDocumentSet& set = liveDocumentSet(); | 5684 WeakDocumentSet& set = liveDocumentSet(); |
| 5685 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5685 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 5686 for (Document* document : set) | 5686 for (Document* document : set) |
| 5687 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); | 5687 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); |
| 5688 } | 5688 } |
| 5689 #endif | 5689 #endif |
| OLD | NEW |