Bug 148508

Summary: Web Inspector: Uncaught exception in CSS Completion - TypeError: undefined is not an object (evaluating 'this._values[middleIndex].startsWith')
Product: WebKit Reporter: Joseph Pecoraro <joepeck>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bburg, commit-queue, graouts, joepeck, mattbaker, nvasilyev, timothy, webkit-bug-importer
Priority: P2 Keywords: DoNotImportToRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
[PATCH] Proposed Fix none

Description Joseph Pecoraro 2015-08-26 18:04:14 PDT
* SUMMARY
Uncaught exception in CSS Completion - TypeError: undefined is not an object (evaluating 'this._values[middleIndex].startsWith')

* STEPS TO REPRODUCE
1. Inspect <body> on about:blank
2. Styles > Rules
3. Type "background: re"
  => while typing "re" each letter triggers uncaught exception trying to generate completions

* EXCEPTION
Resources/Models/CSSCompletions.js:211:42: CONSOLE ERROR TypeError: undefined is not an object (evaluating 'this._values[middleIndex].startsWith')

* NOTES
- A COMPATIBILITY(iOS 6) comment was true, but it was also used that way by other code. Restore the code.
Comment 1 Joseph Pecoraro 2015-08-26 18:10:35 PDT
Created attachment 260014 [details]
[PATCH] Proposed Fix
Comment 2 WebKit Commit Bot 2015-08-26 18:28:23 PDT
Comment on attachment 260014 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 260014

Committed r189008: <http://trac.webkit.org/changeset/189008>
Comment 3 WebKit Commit Bot 2015-08-26 18:28:26 PDT
All reviewed patches have been landed.  Closing bug.