RESOLVED FIXED 35306
When the WebInspector window can't dock because the host window is too small, the dock button should be disabled.
https://bugs.webkit.org/show_bug.cgi?id=35306
Summary When the WebInspector window can't dock because the host window is too small,...
Brady Eidson
Reported 2010-02-23 11:24:10 PST
When the WebInspector window can't dock because the host window is too small, the dock button should be disabled. Spun out of discussion from https://bugs.webkit.org/show_bug.cgi?id=35274 and will be needed as a followup to that fix.
Attachments
Brady Eidson
Comment 1 2010-02-23 11:48:04 PST
Causes a layouttest failure --- /tmp/layout-test-results/inspector/timeline-event-dispatch-expected.txt 2010-02-23 11:40:48.000000000 -0800 +++ /tmp/layout-test-results/inspector/timeline-event-dispatch-actual.txt 2010-02-23 11:40:48.000000000 -0800 @@ -1,12 +1,4 @@ Tests the Timeline API instrumentation of a DOM Dispatch (mousedown) Test Mouse Target -EventDispatch Properties: -+ startTime : * DEFINED * -+ data : { -+- type : mousedown -+ } -+ children : * DEFINED * -+ endTime : * DEFINED * -+ type : 0
Brady Eidson
Comment 2 2010-02-23 11:48:46 PST
Whoops, wrong bug.
Brady Eidson
Comment 3 2010-02-23 15:53:45 PST
My gut reaction was to have inspector.js just listen for the resize event from the inspected window, but there's no way to do that. We'd either: A - have to find a way to get the browser window's resize event passed to an undocked inspector window or B - add native code to WebCore that calls out to the web inspector when a resize event for the browser window should cause the "enabled" state of the dock button to change.
Note You need to log in before you can comment on or make changes to this bug.