This patch replaces the privateWindow API with the toolkit PrivateBrowsingUtils.isWindowPrivate API, which is better in the sense that it is chrome/content agnostic and is not browser/ specific.