zhangqd / chromiumembedded

Automatically exported from code.google.com/p/chromiumembedded
0 stars 1 forks source link

CefStringVisitor::Visit triggers DCHECK on empty string #1216

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Visit about:blank
2. Call CefFrame::GetSource

What is the expected output? What do you see instead?

Expect to receive an empty string. Instead, a DCHECK is triggered by 
CefStringVisitor::Visit:

  // Verify param: string; type: string_byref_const
  DCHECK(!string.empty());
  if (string.empty())
    return;

I know it's a bit of an edge case, but I'm actually running into it since I 
always load a blank document initially.

Original issue reported on code.google.com by emerick on 21 Feb 2014 at 9:58

GoogleCodeExporter commented 9 years ago
Fixed in trunk revision 1635 and 1750 branch revision 1636.

Original comment by magreenb...@gmail.com on 12 Mar 2014 at 2:50