Bug 146888

Summary: [EFL] Editing tests have been broken since r186694
Product: WebKit Reporter: Gyuyoung Kim <gyuyoung.kim>
Component: WebKit EFLAssignee: Hunseop Jeong <hs85.jeong>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, commit-queue, hs85.jeong, lucas.de.marchi, ossy
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 146836    
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

Description Gyuyoung Kim 2015-07-11 23:40:05 PDT
SSIA.

  editing/selection/5354455-1.html [ Failure ]
  editing/selection/5354455-2.html [ Failure ]
  editing/spelling/context-menu-suggestions-multiword-selection.html [ Failure ]
  editing/spelling/context-menu-suggestions-subword-selection.html [ Failure ]
  editing/spelling/context-menu-suggestions.html [ Failure ]
Comment 1 Brent Fulgham 2015-07-24 09:16:24 PDT
This was probably due to my change here:

@@ -474,9 +476,5 @@
     JSContextRef context = WKBundleFrameGetJavaScriptContext(mainFrame);
 #if ENABLE(CONTEXT_MENUS)
-    // Do mouse context click.
-    mouseDown(2, 0);
-    mouseUp(2, 0);
-
-    WKRetainPtr<WKArrayRef> menuEntries = adoptWK(WKBundlePageCopyContextMenuItems(page));
+    WKRetainPtr<WKArrayRef> menuEntries = adoptWK(WKBundlePageCopyContextMenuAtPointInWindow(page, m_position));
     JSValueRef arrayResult = JSObjectMakeArray(context, 0, 0, 0);
     JSObjectRef arrayObj = JSValueToObject(context, arrayResult, 0);

On Mac, the context menu is modal, so no further WebKit activity happens until the dialog is dismissed. So we can't use the mouseDown/mouseUp combination here -- it just blocks the test from running.

Maybe you could just #if/def my change so thet it works like it used to on EFL and uses my revised code for Mac/Windows, and perhaps Gtk.
Comment 2 Hunseop Jeong 2015-08-04 06:01:51 PDT
Created attachment 258173 [details]
Patch
Comment 3 Hunseop Jeong 2015-08-04 06:05:51 PDT
Could I restore the codes?
Comment 4 Hunseop Jeong 2015-08-04 06:30:48 PDT
Created attachment 258174 [details]
Patch
Comment 5 Hunseop Jeong 2015-08-04 06:33:33 PDT
Created attachment 258175 [details]
Patch
Comment 6 Brent Fulgham 2015-08-04 09:11:29 PDT
Comment on attachment 258175 [details]
Patch

Looks fine to me.
Comment 7 WebKit Commit Bot 2015-08-04 20:33:31 PDT
Comment on attachment 258175 [details]
Patch

Clearing flags on attachment: 258175

Committed r187934: <http://trac.webkit.org/changeset/187934>
Comment 8 WebKit Commit Bot 2015-08-04 20:33:35 PDT
All reviewed patches have been landed.  Closing bug.