chrome impl, edits to ff impl