Summary: | Add UserContent API to WebKit2 InjectedBundle | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Sam Weinig <sam> | ||||
Component: | WebKit2 | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | Keywords: | InRadar | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | PC | ||||||
OS: | OS X 10.5 | ||||||
Attachments: |
|
Description
Sam Weinig
2010-08-27 18:49:21 PDT
Created attachment 65802 [details]
Patch
Comment on attachment 65802 [details] Patch > +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. |