Bug 196722

Summary: Web Inspector: save sheet should be anchored underneath the tab bar when detached
Product: WebKit Reporter: Devin Rousso <hi>
Component: Web InspectorAssignee: Devin Rousso <hi>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, ews-watchlist, hi, inspector-bugzilla-changes, joepeck, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch none

Devin Rousso
Reported 2019-04-08 19:22:05 PDT
# STEPS TO REPRODUCE: 1. inspect any page 2. detach Web Inspector so it's its own window 3. view the main resource of the page 4. save the resource (⌘S) => the save sheet appears from the top of the window, rather than underneath the tab bar (like Safari)
Attachments
Patch (35.11 KB, patch)
2019-04-08 19:31 PDT, Devin Rousso
no flags
Patch (35.11 KB, patch)
2019-04-10 15:46 PDT, Devin Rousso
no flags
Patch (35.46 KB, patch)
2019-04-10 16:06 PDT, Devin Rousso
no flags
Patch (35.46 KB, patch)
2019-04-10 18:46 PDT, Devin Rousso
no flags
Devin Rousso
Comment 1 2019-04-08 19:22:18 PDT
Devin Rousso
Comment 2 2019-04-08 19:31:07 PDT
Devin Rousso
Comment 3 2019-04-08 19:33:49 PDT
Comment on attachment 367016 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=367016&action=review > Source/WebKit/UIProcess/mac/RemoteWebInspectorProxyMac.mm:57 > + return NSMakeRect(0, _inspectorProxy->sheetRect().height(), _inspectorProxy->sheetRect().width(), 0); At first this appeared really weird to me, but after logging `rect` and reading the docs <https://developer.apple.com/documentation/appkit/nswindowdelegate/1419611-window?language=objc#discussion>, I think this is the right way to go. > Source/WebKit/UIProcess/mac/WebInspectorProxyMac.mm:99 > + return NSMakeRect(0, _inspectorProxy->sheetRect().height(), _inspectorProxy->sheetRect().width(), 0); Ditto (>RemoteWebInspectorProxyMac.mm:57). > Source/WebKitLegacy/mac/WebCoreSupport/WebInspectorClient.mm:519 > + return NSMakeRect(0, _frontendClient->sheetRect().height(), _frontendClient->sheetRect().width(), 0); Ditto (>RemoteWebInspectorProxyMac.mm:57).
Timothy Hatcher
Comment 4 2019-04-10 15:27:44 PDT
Comment on attachment 367016 [details] Patch Nice! Need to fix other platforms.
Devin Rousso
Comment 5 2019-04-10 15:46:54 PDT
Devin Rousso
Comment 6 2019-04-10 16:06:37 PDT
WebKit Commit Bot
Comment 7 2019-04-10 17:33:53 PDT Comment hidden (obsolete)
Devin Rousso
Comment 8 2019-04-10 18:46:47 PDT
WebKit Commit Bot
Comment 9 2019-04-10 19:05:03 PDT
Comment on attachment 367187 [details] Patch Clearing flags on attachment: 367187 Committed r244180: <https://trac.webkit.org/changeset/244180>
WebKit Commit Bot
Comment 10 2019-04-10 19:05:05 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.