зеркало из https://github.com/mozilla/pjs.git
Bug 13892. Fix window targeting for new sidebar.
This commit is contained in:
Родитель
56f36ccf03
Коммит
45579e4158
|
@ -26,7 +26,7 @@
|
|||
// god-awful fragile. The logic goes something like this. Our parent
|
||||
// is the sidebar, whose parent is the content frame, whose frame[1]
|
||||
// is the content area.
|
||||
var ContentWindow = window.parent.parent.frames[1];
|
||||
var ContentWindow = window.content;
|
||||
|
||||
// The related links handler
|
||||
var Handler = Components.classes["component://netscape/related-links-handler"].createInstance();
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
// god-awful fragile. The logic goes something like this. Our parent
|
||||
// is the sidebar, whose parent is the content frame, whose frame[1]
|
||||
// is the content area.
|
||||
var ContentWindow = window.parent.parent.frames[1];
|
||||
var ContentWindow = window.content;
|
||||
|
||||
// The related links handler
|
||||
var Handler = Components.classes["component://netscape/related-links-handler"].createInstance();
|
||||
|
|
Загрузка…
Ссылка в новой задаче