Bug 142365

Summary: [GTK] Documentation for webkit_user_style_sheet_new is wrong
Product: WebKit Reporter: Michael Catanzaro <mcatanzaro>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bugs-noreply, cgarcia, mcatanzaro
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   

Description Michael Catanzaro 2015-03-05 15:19:56 PST
Our documentation for webkit_user_style_sheet_new says: "URI patterns must be of the form [protocol]://[host]/[path], where the *host* and *path* components can contain the wildcard character (*) to represent zero or more other characters."

But looking at UserContentURLPattern.cpp, that's not right. Either the entire host must be * (match all domains) or the host must begin with *. (match all subdomains); any other use of * in the host string is invalid.

This was reported on IRC by the Midori folks.
Comment 1 Carlos Garcia Campos 2015-03-05 23:21:27 PST
See bugs #112476 and #37931