Bug 92476 - Web Inspector: InspectorPageAgent should ascertain document to be non-null in updateViewMetrics()
Summary: Web Inspector: InspectorPageAgent should ascertain document to be non-null in...
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: Vivek Galatage
URL:
Keywords:
Depends on:
Blocks: 90675
  Show dependency treegraph
 
Reported: 2012-07-27 02:38 PDT by Vivek Galatage
Modified: 2012-07-30 20:26 PDT (History)
11 users (show)

See Also:


Attachments
Patch (1.57 KB, patch)
2012-07-27 02:40 PDT, Vivek Galatage
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vivek Galatage 2012-07-27 02:38:00 PDT
Now that https://bugs.webkit.org/show_bug.cgi?id=90675, goes on creating a blank page, with "about:blank" url, this new page will not be having a document object. When the call to Internals::closeDummyInspectorFrontend() is made, it tries to delete the newly created page. In turn, this calls InspectorController::disconnectFrontend() to inform all the agents to clearFrontend(). In case of InspectorPageAgent::clearFrontend(), calls disable() which in turn calls updateViewMetrics(). Now here the document object is NULL. Hence this should be checking for document pointer.
Comment 1 Vivek Galatage 2012-07-27 02:40:58 PDT
Created attachment 154884 [details]
Patch
Comment 2 Pavel Feldman 2012-07-27 11:40:21 PDT
Comment on attachment 154884 [details]
Patch

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

> Source/WebCore/inspector/InspectorPageAgent.cpp:970
> +    if (document)

Is there a test case for this?
Comment 3 WebKit Review Bot 2012-07-27 11:55:11 PDT
Comment on attachment 154884 [details]
Patch

Clearing flags on attachment: 154884

Committed r123901: <http://trac.webkit.org/changeset/123901>
Comment 4 WebKit Review Bot 2012-07-27 11:55:16 PDT
All reviewed patches have been landed.  Closing bug.