[webkit-dev] Let's use only 'ENABLE_CUSTOM_SCHEME_HANDLER' flag, and remove 'ENABLE_REGISTER_PROTOCOL_HANDLER' flag.

DongWoo Im dw.im at samsung.com
Thu Jun 28 01:10:11 PDT 2012


Dear WebKit!


There are two flags in WebKit - 'ENABLE_REGISTER_PROTOCOL_HANDLER' and 'ENABLE_CUSTOM_SCHEME_HANDLER'.
How about delete one of them?


There is a feature named "Custom Scheme Hander" in the W3C HTML5 spec. : http://dev.w3.org/html5/spec/Overview.html#custom-handlers
There are three APIs in the spec. - registerProtocolHandler, isProtocolHandlerRegistered, and unregisterProtocolHandler.
Those three APIs are implemented in WebKit already.

But I think there is a problem.
The problem is, we are using two flags for the one spec. 
   - 'registerProtocolHandler' function have been implemented behind the 'REGISTER_PROTOCOL_HANDLER' flag.
   - two other functions have been implemented behind the 'ENABLE_CUSTOM_SCHEME_HANDLER' flag.


I think this could make confusion.

Why don't we use only one flag for the one spec which has only three APIs?
Let's use only one flag - 'ENABLE_CUSTOM_SCHEME_HANDLER' .

I've filed that bug already - https://bugs.webkit.org/show_bug.cgi?id=88614.


What do you think about this?




BR, 
Dongwoo.


More information about the webkit-dev mailing list