Bug 146994 - [Mac] Web Inspector toolbar can be covered by the Safari tab bar when docked to the right
Summary: [Mac] Web Inspector toolbar can be covered by the Safari tab bar when docked ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P1 Normal
Assignee: Matt Baker
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-07-15 18:47 PDT by Matt Baker
Modified: 2015-07-16 20:56 PDT (History)
6 users (show)

See Also:


Attachments
[Image] Covered toolbar (402.67 KB, image/png)
2015-07-15 18:48 PDT, Matt Baker
no flags Details
[Patch] Proposed Fix (2.74 KB, patch)
2015-07-15 19:11 PDT, Matt Baker
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Baker 2015-07-15 18:47:34 PDT
* SUMMARY
Web Inspector toolbar can be covered by the Safari tab bar when docked to the right.

* STEPS TO REPRODUCE
1. Open Safari, dock Inspector on right.
2. Create a new tab.
3. Switch back to tab containing the docked Inspector.
4. Close second tab.
5. Repeat steps 2 & 3.
  => Safari switches back to first tab, and Inspector toolbar is covered by tab bar.
Comment 1 Matt Baker 2015-07-15 18:48:42 PDT
Created attachment 256886 [details]
[Image] Covered toolbar
Comment 2 Matt Baker 2015-07-15 18:49:54 PDT
<rdar://problem/21669802>
Comment 3 Matt Baker 2015-07-15 19:11:40 PDT
Created attachment 256887 [details]
[Patch] Proposed Fix
Comment 4 Joseph Pecoraro 2015-07-16 11:58:51 PDT
Comment on attachment 256887 [details]
[Patch] Proposed Fix

Looks good to me. I tested briefly and didn't see any issues after removing this code. I cannot remember why this was added, I wonder if it was just performance. Needs a WK2 Owner nod.
Comment 5 Brian Burg 2015-07-16 16:16:40 PDT
Comment on attachment 256887 [details]
[Patch] Proposed Fix

That code was added in the change to have a separate inspector process, to avoid recursively triggering -(void)inspectedViewFrameDidChange when adjusting docked size. It might have been made unnecessary with the switch to WKWebView, since the current code tries to only listen for viewFrameDidChange of the single active parent frame.
Comment 6 WebKit Commit Bot 2015-07-16 20:56:32 PDT
Comment on attachment 256887 [details]
[Patch] Proposed Fix

Clearing flags on attachment: 256887

Committed r186924: <http://trac.webkit.org/changeset/186924>
Comment 7 WebKit Commit Bot 2015-07-16 20:56:36 PDT
All reviewed patches have been landed.  Closing bug.