Skip to content

Revert "Fix window.opener being null when nativeWindowOpen is used" - #10204

Merged
jkleinsc merged 1 commit into
masterfrom
revert-9961-fix-window-opener
Aug 7, 2017
Merged

jkleinsc merged 1 commit into
masterfrom
revert-9961-fix-window-opener

Conversation

@zcbenz

@zcbenz zcbenz commented Aug 7, 2017

Copy link
Copy Markdown
Contributor

Reverts #9961

@MarshallOfSound The change is reliably causing following tests to fail:

not ok 125 BrowserWindow module "webPreferences" option nativeWindowOpen option should inherit the nativeWindowOpen setting in opened windows
  Error: Timeout of 30000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
      at C:\e\workspace\electron-win-ia32\spec\node_modules\mocha\lib\runnable.js:232:19
not ok 126 BrowserWindow module "webPreferences" option nativeWindowOpen option should open windows with the options configured via new-window event listeners
  Error: Timeout of 30000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
      at C:\e\workspace\electron-win-ia32\spec\node_modules\mocha\lib\runnable.js:232:19
not ok 127 BrowserWindow module "webPreferences" option nativeWindowOpen option retains the original web preferences when window.location is changed to a new origin
  Error: Timeout of 30000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
      at C:\e\workspace\electron-win-ia32\spec\node_modules\mocha\lib\runnable.js:232:19

I haven't figured out why, but I'm reverting it for now to avoid blocking new releases.

@MarshallOfSound

Copy link
Copy Markdown
Member

@zcbenz Will investigate, the tests were passing at one point during that PR 😕

@MarshallOfSound

Copy link
Copy Markdown
Member

So these failures are occuring because the process ID for the newly spawned renderer changes between two method calls in our AtomBrowserClient currently investigating if we can somehow track and monitor that process change somewhere.

@jkleinsc

jkleinsc commented Aug 7, 2017

Copy link
Copy Markdown
Member

Merging this to get the 1.7 release out.

@jkleinsc
jkleinsc merged commit d06eeee into master Aug 7, 2017
@zcbenz
zcbenz deleted the revert-9961-fix-window-opener branch August 8, 2017 00:22
@alexstrat alexstrat mentioned this pull request Aug 23, 2017
@Anrock

Anrock commented Oct 5, 2018

Copy link
Copy Markdown
Contributor

@MarshallOfSound is this fix going to be resurrected sometime? Most of the cloud services been broken because of this since long time ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants