Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Side by Side Diff: Source/core/frame/DOMWindow.cpp

Issue 294663007: pageshow event does not follow spec (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix spell mistake Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 { 447 {
448 dispatchWindowLoadEvent(); 448 dispatchWindowLoadEvent();
449 enqueuePageshowEvent(PageshowEventNotPersisted); 449 enqueuePageshowEvent(PageshowEventNotPersisted);
450 if (m_pendingStateObject) 450 if (m_pendingStateObject)
451 enqueuePopstateEvent(m_pendingStateObject.release()); 451 enqueuePopstateEvent(m_pendingStateObject.release());
452 } 452 }
453 453
454 void DOMWindow::enqueuePageshowEvent(PageshowEventPersistence persisted) 454 void DOMWindow::enqueuePageshowEvent(PageshowEventPersistence persisted)
455 { 455 {
456 // FIXME: https://bugs.webkit.org/show_bug.cgi?id=36334 Pageshow event needs to fire asynchronously. 456 // FIXME: https://bugs.webkit.org/show_bug.cgi?id=36334 Pageshow event needs to fire asynchronously.
457 // As per spec pageshow must be triggered asynchronously.
458 // However to be compatible with other browsers blink fires pageshow synchro nously.
457 dispatchEvent(PageTransitionEvent::create(EventTypeNames::pageshow, persiste d), m_document.get()); 459 dispatchEvent(PageTransitionEvent::create(EventTypeNames::pageshow, persiste d), m_document.get());
458 } 460 }
459 461
460 void DOMWindow::enqueueHashchangeEvent(const String& oldURL, const String& newUR L) 462 void DOMWindow::enqueueHashchangeEvent(const String& oldURL, const String& newUR L)
461 { 463 {
462 enqueueWindowEvent(HashChangeEvent::create(oldURL, newURL)); 464 enqueueWindowEvent(HashChangeEvent::create(oldURL, newURL));
463 } 465 }
464 466
465 void DOMWindow::enqueuePopstateEvent(PassRefPtr<SerializedScriptValue> stateObje ct) 467 void DOMWindow::enqueuePopstateEvent(PassRefPtr<SerializedScriptValue> stateObje ct)
466 { 468 {
(...skipping 1436 matching lines...) Expand 10 before | Expand all | Expand 10 after
1903 visitor->trace(m_sessionStorage); 1905 visitor->trace(m_sessionStorage);
1904 visitor->trace(m_localStorage); 1906 visitor->trace(m_localStorage);
1905 visitor->trace(m_applicationCache); 1907 visitor->trace(m_applicationCache);
1906 visitor->trace(m_performance); 1908 visitor->trace(m_performance);
1907 visitor->trace(m_css); 1909 visitor->trace(m_css);
1908 WillBeHeapSupplementable<DOMWindow>::trace(visitor); 1910 WillBeHeapSupplementable<DOMWindow>::trace(visitor);
1909 EventTargetWithInlineData::trace(visitor); 1911 EventTargetWithInlineData::trace(visitor);
1910 } 1912 }
1911 1913
1912 } // namespace WebCore 1914 } // namespace WebCore
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698