WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
78064
Web Inspector: avoid making a window for the Inspector when docked
https://bugs.webkit.org/show_bug.cgi?id=78064
Summary
Web Inspector: avoid making a window for the Inspector when docked
Timothy Hatcher
Reported
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.
Attachments
Proposed Change
(12.69 KB, patch)
2012-02-07 18:07 PST
,
Timothy Hatcher
bweinstein
: review+
timothy
: commit-queue-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Timothy Hatcher
Comment 1
2012-02-07 18:07:14 PST
Created
attachment 125972
[details]
Proposed Change
Brian Weinstein
Comment 2
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.
Timothy Hatcher
Comment 3
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.
Timothy Hatcher
Comment 4
2012-02-07 19:20:27 PST
Fixed in
r107028
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug