summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhoro@chromium.org <horo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-12 04:36:15 +0000
committerhoro@chromium.org <horo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-12 04:36:15 +0000
commita7e4b326b6312e048651f0e1e3199b09b985453f (patch)
treecfc51701a01f9e00ef3bca5af42088d5a56d4386
parent85e46361d5c72810376aa321ee435fa0cd10d0c9 (diff)
downloadchromium_src-a7e4b326b6312e048651f0e1e3199b09b985453f.zip
chromium_src-a7e4b326b6312e048651f0e1e3199b09b985453f.tar.gz
chromium_src-a7e4b326b6312e048651f0e1e3199b09b985453f.tar.bz2
Add ViewHostMsg_DocumentDetached to SwappedOutMessages::CanSendWhileSwappedOut.
ViewHostMsg_DocumentDetached must be sent from the renderer process when the user leaves the page which is running SharedWorker. But it is not sent in the current code when the user is going to another domain page. It is because ViewHostMsg_DocumentDetached is not handled in SwappedOutMessages::CanSendWhileSwappedOut. BUG=327256 Review URL: https://codereview.chromium.org/194443002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256422 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--content/common/swapped_out_messages.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/content/common/swapped_out_messages.cc b/content/common/swapped_out_messages.cc
index 4a4b372..4b82e41 100644
--- a/content/common/swapped_out_messages.cc
+++ b/content/common/swapped_out_messages.cc
@@ -30,6 +30,9 @@ bool SwappedOutMessages::CanSendWhileSwappedOut(const IPC::Message* msg) {
case ViewHostMsg_SwapCompositorFrame::ID:
case ViewHostMsg_UpdateIsDelayed::ID:
case ViewHostMsg_DidActivateAcceleratedCompositing::ID:
+ // Handled by WorkerMessageFilter (or by SharedWorkerMessageFilter when
+ // embedded-shared-worker is enabled).
+ case ViewHostMsg_DocumentDetached::ID:
// Allow cross-process JavaScript calls.
case ViewHostMsg_RouteCloseEvent::ID:
case ViewHostMsg_RouteMessageEvent::ID: