Bug 78064 - Web Inspector: avoid making a window for the Inspector when docked
Summary: Web Inspector: avoid making a window for the Inspector when docked
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Timothy Hatcher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-07 17:54 PST by Timothy Hatcher
Modified: 2012-02-07 19:20 PST (History)
12 users (show)

See Also:


Attachments
Proposed Change (12.69 KB, patch)
2012-02-07 18:07 PST, Timothy Hatcher
bweinstein: review+
timothy: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Timothy Hatcher 2012-02-07 17:54:55 PST
Right now WebKit2 always makes a window even if the Inspector is docked. We should not make a window in that case and destroy the window when docked.
Comment 1 Timothy Hatcher 2012-02-07 18:07:14 PST
Created attachment 125972 [details]
Proposed Change
Comment 2 Brian Weinstein 2012-02-07 18:20:51 PST
Comment on attachment 125972 [details]
Proposed Change

View in context: https://bugs.webkit.org/attachment.cgi?id=125972&action=review

> Source/WebKit2/UIProcess/mac/WebInspectorProxyMac.mm:252
> +    }

Can this code be shared with the code in platformDidClose?

> Source/WebKit2/UIProcess/mac/WebInspectorProxyMac.mm:267
> +    [m_inspectorView.get() setHidden:NO];

How would it have been detached if it was hidden? I don't see how the undock button could have been pressed in this case.
Comment 3 Timothy Hatcher 2012-02-07 19:17:40 PST
(In reply to comment #2)
> (From update of attachment 125972 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=125972&action=review
> 
> > Source/WebKit2/UIProcess/mac/WebInspectorProxyMac.mm:252
> > +    }
> 
> Can this code be shared with the code in platformDidClose?

It could, but it didn't see worth adding more plaform specific member functions.

> 
> > Source/WebKit2/UIProcess/mac/WebInspectorProxyMac.mm:267
> > +    [m_inspectorView.get() setHidden:NO];
> 
> How would it have been detached if it was hidden? I don't see how the undock button could have been pressed in this case.

I was just being cautious. But you are right, there is no way to currently cause it.
Comment 4 Timothy Hatcher 2012-02-07 19:20:27 PST
Fixed in r107028.