The comeback win in 1hr 42min put Williams into a showdown with second seed Maria Sharapova, who earned her last-eight place when opponent Lucie Safarova withdrew before their match with stomach illness.