Remove unused code to support preffed-off and chrome-only APIs.
auto merge of #2657 : Ms2ger/servo/geckoisms, r=jdm