Bug 43240 - Add a check for WebViewClient being null.
Summary: Add a check for WebViewClient being null.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 39485
  Show dependency treegraph
 
Reported: 2010-07-30 05:23 PDT by Satish Sampath
Modified: 2010-07-30 09:57 PDT (History)
3 users (show)

See Also:


Attachments
Patch (1.55 KB, patch)
2010-07-30 05:25 PDT, Satish Sampath
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Satish Sampath 2010-07-30 05:23:10 PDT
It seems valid to pass in a null WebViewClient in the chromium port of WebKit, so check for that before invoking methods on it in the speech input code.
Comment 1 Satish Sampath 2010-07-30 05:25:53 PDT
Created attachment 63050 [details]
Patch
Comment 2 Jeremy Orlow 2010-07-30 05:29:45 PDT
Comment on attachment 63050 [details]
Patch

r=me
Comment 3 Jeremy Orlow 2010-07-30 06:19:40 PDT
Comment on attachment 63050 [details]
Patch

Clearing flags on attachment: 63050

Committed r64352: <http://trac.webkit.org/changeset/64352>
Comment 4 Jeremy Orlow 2010-07-30 06:19:48 PDT
All reviewed patches have been landed.  Closing bug.
Comment 5 Darin Fisher (:fishd, Google) 2010-07-30 09:51:10 PDT
FYI, it is more conventional to pass WebViewImpl* around within chromium/src/ than to pass WebViewClient*.  You will frequently see code like this:

  if (viewImpl->client())
      viewImpl->client()->someMethod()
Comment 6 Satish Sampath 2010-07-30 09:57:01 PDT
Thanks for the comment, I'll use that pattern going forward and change this the next time this code is touched.