Add UserContent API to WebKit2 InjectedBundle. In the first pass, I will only add it to the InjectedBundle, but we can consider whether we want to provide a convenient way of doing much of this from the UIProcess if this turns out to be too cumbersome.
Created attachment 65802 [details] Patch
<rdar://problem/8367587>
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.
Landed in r66292.