Bug 1126018 - [e10s] Add shim for window._content (r=mconley)

This commit is contained in:
Bill McCloskey 2015-01-29 11:24:46 -08:00
Родитель 16620cea14
Коммит e7ba6e45a0
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -789,7 +789,10 @@ TabBrowserElementInterposition.getters.contentDocument = function(addon, target)
let ChromeWindowInterposition = new Interposition("ChromeWindowInterposition",
EventTargetInterposition);
ChromeWindowInterposition.getters.content = function(addon, target) {
// _content is for older add-ons like pinboard and all-in-one gestures
// that should be using content instead.
ChromeWindowInterposition.getters.content =
ChromeWindowInterposition.getters._content = function(addon, target) {
let browser = target.gBrowser.selectedBrowser;
if (!browser.contentWindowAsCPOW) {
return makeDummyContentWindow(browser);