Bug 49898

__getCookies() method implementation