RESOLVED FIXED 143620
Share sheets from Share menus appear outside the browser window
https://bugs.webkit.org/show_bug.cgi?id=143620
Summary Share sheets from Share menus appear outside the browser window
Brady Eidson
Reported 2015-04-10 15:12:31 PDT
Share sheets from Share menus appear outside the browser window This is because we don't implement the appropriate delegates to tell them which window is the source. rdar://problem/20455592
Attachments
Patch v1 (34.74 KB, patch)
2015-04-10 15:23 PDT, Brady Eidson
no flags
Patch v2 (34.78 KB, patch)
2015-04-10 17:14 PDT, Brady Eidson
darin: review+
Patch v3 - Review feedback and fixing older builds (35.39 KB, patch)
2015-04-13 10:19 PDT, Brady Eidson
no flags
Patch v4 - More feature guards. (35.88 KB, patch)
2015-04-13 11:06 PDT, Brady Eidson
no flags
Patch v5 - Still more feature guards (36.26 KB, patch)
2015-04-13 11:41 PDT, Brady Eidson
no flags
Patch v6 - Mo' better feature guards (36.33 KB, patch)
2015-04-13 11:44 PDT, Brady Eidson
no flags
Patch v7 - Potentially landable (42.63 KB, patch)
2015-04-13 12:18 PDT, Brady Eidson
no flags
Brady Eidson
Comment 1 2015-04-10 15:23:37 PDT
Created attachment 250536 [details] Patch v1
WebKit Commit Bot
Comment 2 2015-04-10 15:25:50 PDT
Attachment 250536 [details] did not pass style-queue: ERROR: Source/WebKit2/UIProcess/mac/WebContextMenuProxyMac.mm:40: Alphabetical sorting problem. [build/include_order] [4] ERROR: Source/WebKit2/UIProcess/mac/WKSharingServicePickerDelegate.mm:34: "WebCore/NSSharingServiceSPI.h" already included at Source/WebKit2/UIProcess/mac/WKSharingServicePickerDelegate.mm:33 [build/include] [4] ERROR: Source/WebKit2/UIProcess/mac/WKSharingServicePickerDelegate.h:32: Code inside a namespace should not be indented. [whitespace/indent] [4] Total errors found: 3 in 14 files If any of these errors are false positives, please file a bug against check-webkit-style.
Brady Eidson
Comment 3 2015-04-10 17:14:48 PDT
Created attachment 250544 [details] Patch v2
Darin Adler
Comment 4 2015-04-10 19:53:44 PDT
Comment on attachment 250544 [details] Patch v2 View in context: https://bugs.webkit.org/attachment.cgi?id=250544&action=review Looks like this doesn’t compile yet. So obviously, please don’t land until it does! > Source/WebKit/mac/Misc/WebSharingServicePickerController.h:42 > + WebSharingServicePickerClient(WebView *); explicit please Also should make this constructor be protected. > Source/WebKit/mac/Misc/WebSharingServicePickerController.h:64 > +- (instancetype)initWithSharingServicePicker:(NSSharingServicePicker *)sharingServicePicker client:(WebSharingServicePickerClient*)pickerClient; Can client be a reference instead of a pointer? > Source/WebKit/mac/Misc/WebSharingServicePickerController.mm:44 > + : m_webView(webView) What prevents us from holding on to the WebView pointer after the WebView is deallocated? > Source/WebKit/mac/Misc/WebSharingServicePickerController.mm:106 > + _handleEditingReplacement = NO; I don’t think we need this. Objective-C initializes everything to NO. > Source/WebKit/mac/WebCoreSupport/WebContextMenuClient.h:41 > +class WebContextMenuClient : public WebCore::ContextMenuClient, public WebSharingServicePickerClient > { Should move the brace up one line. Can the derivation be private here instead of public? > Source/WebKit/mac/WebView/WebHTMLView.mm:3365 > + ContextMenuClient& contextMenuClient = page->contextMenuController().client(); I suggest using auto& here instead of uttering the type. Also probably should do the typecast here instead of down in the code below. > Source/WebKit/mac/WebView/WebHTMLView.mm:3367 > + Vector<ContextMenuItem> menuItemVector = contextMenuItemVector(coreMenu->platformDescription()); I suggest using auto here instead of uttering the type.
Brady Eidson
Comment 5 2015-04-13 10:19:51 PDT
Created attachment 250650 [details] Patch v3 - Review feedback and fixing older builds
Brady Eidson
Comment 6 2015-04-13 10:20:34 PDT
Going to work through the build failures with EWS, then prep to land.
Brady Eidson
Comment 7 2015-04-13 11:06:11 PDT
Created attachment 250659 [details] Patch v4 - More feature guards.
Brady Eidson
Comment 8 2015-04-13 11:41:54 PDT
Created attachment 250660 [details] Patch v5 - Still more feature guards
Brady Eidson
Comment 9 2015-04-13 11:44:53 PDT
Created attachment 250661 [details] Patch v6 - Mo' better feature guards
Brady Eidson
Comment 10 2015-04-13 12:18:57 PDT
Created attachment 250663 [details] Patch v7 - Potentially landable
WebKit Commit Bot
Comment 11 2015-04-13 14:24:09 PDT
Comment on attachment 250663 [details] Patch v7 - Potentially landable Clearing flags on attachment: 250663 Committed r182756: <http://trac.webkit.org/changeset/182756>
Ahmad Saleem
Comment 12 2022-10-25 08:51:51 PDT
Landed - https://github.com/WebKit/WebKit/commit/95ef8bd83955487e2e8db1f9513bd0d8377d730d and didn't backed out. Marking this as "RESOLVED FIXED". Thanks!
Note You need to log in before you can comment on or make changes to this bug.