Bug 148508 - Web Inspector: Uncaught exception in CSS Completion - TypeError: undefined is not an object (evaluating 'this._values[middleIndex].startsWith')
Summary: Web Inspector: Uncaught exception in CSS Completion - TypeError: undefined is...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: DoNotImportToRadar
Depends on:
Blocks:
 
Reported: 2015-08-26 18:04 PDT by Joseph Pecoraro
Modified: 2015-08-26 18:28 PDT (History)
8 users (show)

See Also:


Attachments
[PATCH] Proposed Fix (3.36 KB, patch)
2015-08-26 18:10 PDT, Joseph Pecoraro
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.