RESOLVED FIXED 150776
Move the ResourceUsageOverlay out of the way by default.
https://bugs.webkit.org/show_bug.cgi?id=150776
Summary Move the ResourceUsageOverlay out of the way by default.
Andreas Kling
Reported 2015-11-01 11:17:46 PST
It's annoying that it starts out in the top left corner of the viewport. You have to drag it away every time.
Attachments
Patch (3.98 KB, patch)
2015-11-01 11:18 PST, Andreas Kling
darin: review+
Andreas Kling
Comment 1 2015-11-01 11:18:22 PST
Darin Adler
Comment 2 2015-11-01 12:45:03 PST
Comment on attachment 264523 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=264523&action=review > Source/WebCore/page/ResourceUsageOverlay.cpp:60 > + FrameView& frameView = *m_page.mainFrame().view(); What guarantees the view is non-null?
Andreas Kling
Comment 3 2015-11-01 13:45:45 PST
(In reply to comment #2) > Comment on attachment 264523 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=264523&action=review > > > Source/WebCore/page/ResourceUsageOverlay.cpp:60 > > + FrameView& frameView = *m_page.mainFrame().view(); > > What guarantees the view is non-null? Through the magic of the initial empty document load, which happens by way of WebKit calling into Frame::init() on the MainFrame during WebPage bringup, we end up constructing a FrameView when transitioning to committed state. This all happens before the ResourceUsageOverlay is constructed (when the setting is flipped to true, either during WebPage::updatePreferences(), or at any time later through WebCore::Settings API.) Of course, none of this is remotely obvious from looking at the pointer dereference in context, so I'll just put in a null check. :)
Andreas Kling
Comment 4 2015-11-01 14:00:41 PST
Note You need to log in before you can comment on or make changes to this bug.