Bug 1081537 - Fall back to the addon global (if one exists) in GetEntryDocument. r=bz
Bug 1081537 - Tests. r=bz