mirror of
https://github.com/zotero/zotero.git
synced 2026-10-03 02:21:49 +00:00
fx140: Update feedReader.js hiddenDOMWindow comment
This commit is contained in:
parent
e52b1993f4
commit
3e2f6a8783
1 changed files with 2 additions and 5 deletions
|
|
@ -125,11 +125,8 @@ Zotero.FeedReader = function (url) {
|
|||
}.bind(this));
|
||||
|
||||
// The feed processor and related modules assume a content window environment, so we'll simulate
|
||||
// one via a sandbox in a parent window. You might think we could jump straight to
|
||||
// `hiddenDOMWindow` as a parent window, since it does indeed exist on all platforms...
|
||||
// However, when loading scripts into the `hiddenDOMWindow` on Windows and Linux, they get
|
||||
// stuck in some lazily parsed state which bizarrely drops function prototypes. To avoid this,
|
||||
// we prefer other parent windows first, which work fine on all platforms.
|
||||
// one via a sandbox in a parent window. hiddenDOMWindow doesn't exist outside macOS, so we
|
||||
// prefer other parent windows first, which work fine on all platforms.
|
||||
let parentWindow = Services.wm.getMostRecentWindow("navigator:browser");
|
||||
if (!parentWindow) {
|
||||
parentWindow = Services.ww.activeWindow;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue