Merge "Move helper function to webkit"