[Webkit-unassigned] [Bug 44810] Add UserContent API to WebKit2 InjectedBundle

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Aug 27 19:13:39 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=44810


mitz at webkit.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #65802|review?                     |review+
               Flag|                            |




--- Comment #3 from mitz at webkit.org  2010-08-27 19:13:39 PST ---
(From update of attachment 65802)
> +static PassOwnPtr<Vector<String> > toStringVector(ImmutableArray* patterns)
> +{
> +    size_t size =  patterns->size();
> +    if (!size)
> +        return 0;
> +
> +    Vector<String>* patternsVector = new Vector<String>;

Reserve initial capacity here…

> +    for (size_t i = 0; i < size; ++i) {
> +        WebString* entry = patterns->at<WebString>(i);
> +        if (entry)
> +            patternsVector->append(entry->string());

…unchecked append here.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list