Index: third_party/WebKit/Source/core/editing/FrameSelection.cpp |
diff --git a/third_party/WebKit/Source/core/editing/FrameSelection.cpp b/third_party/WebKit/Source/core/editing/FrameSelection.cpp |
index c38ab516a4ab4e70cf0bdc01fad2e0dcbe2d99a7..8115f8507b829041a9bb3d8665031b54c4178e58 100644 |
--- a/third_party/WebKit/Source/core/editing/FrameSelection.cpp |
+++ b/third_party/WebKit/Source/core/editing/FrameSelection.cpp |
@@ -63,6 +63,7 @@ |
#include "core/html/HTMLFrameElementBase.h" |
#include "core/html/HTMLInputElement.h" |
#include "core/html/HTMLSelectElement.h" |
+#include "core/input/ContextMenuAllowedScope.h" |
#include "core/input/EventHandler.h" |
#include "core/layout/HitTestRequest.h" |
#include "core/layout/HitTestResult.h" |
@@ -670,6 +671,10 @@ void FrameSelection::SelectAll() { |
.Build()); |
SelectFrameElementInParentIfFullySelected(); |
NotifyLayoutObjectOfSelectionChange(kUserTriggered); |
+ { |
+ ContextMenuAllowedScope scope; |
+ frame_->GetEventHandler().SendContextMenuEventForTouchSelection(); |
+ } |
} |
bool FrameSelection::SetSelectedRange(const EphemeralRange& range, |