<h3 dir="auto">Preflight Checklist</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://www.github.com/electron/electron/issues">issue tracker</a> for a feature request that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Electron Version</h3>
<p dir="auto">12.0.4</p>
<h3 dir="auto">What operating system are you using?</h3>
<p dir="auto">macOS</p>
<h3 dir="auto">Operating System Version</h3>
<p dir="auto">macOS Catalina 10.15.7</p>
<h3 dir="auto">What arch are you using?</h3>
<p dir="auto">x64</p>
<h3 dir="auto">Last Known Working Electron version</h3>
<p dir="auto">11.4.5</p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">With either the <code class="notranslate">sandbox</code> option or the <code class="notranslate">nativeWindowOpen</code> option enabled:</p>
<p dir="auto">When you open a new window using <code class="notranslate">window.open</code> from a window that is created using <code class="notranslate">window.open</code>, I expect to see 3 windows rendering their own html.</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">When you open a new window using <code class="notranslate">window.open</code> from a window that is created using <code class="notranslate">window.open</code>, the second window goes blank (white screen). Closing either of these two windows closes the other window.</p>
<p dir="auto">Step to reproduce:</p>
<ul dir="auto">
<li>Run the attached sample:</li>
<li>Click open window to create a new window</li>
<li>Click open window from the new window to create third window</li>
<li>Observe second window is blank</li>
</ul>
<h3 dir="auto">Testcase Gist URL</h3>
<p dir="auto"><a href="https://gist.github.com/naineshsolanki-lmi/587f79ad7a4f0c794f9561f9ec85b389">https://gist.github.com/naineshsolanki-lmi/587f79ad7a4f0c794f9561f9ec85b389</a></p>
<h3 dir="auto">Additional Information</h3>
<p dir="auto"><em>No response</em></p>
<p dir="auto">Using VS Code 1.29 insiders on Electron 2.0.12<br>
Ubuntu 18.10 with Yaru GTK3 theme</p>
<p dir="auto"><strong>Expected Behavior</strong><br>
The menubar should have light text with a black background.</p>
<p dir="auto"><strong>Actual behavior</strong><br>
The menubar has dark text on a dark background.</p>
<p dir="auto"><strong>To Reproduce</strong></p>
<ol dir="auto">
<li>Install and Run VS Code 1.29 insiders</li>
<li>See dark text on dark background for menubar</li>
</ol>
<p dir="auto"><strong>Screenshots</strong><br>
If applicable, add screenshots to help explain your problem.</p>
<p dir="auto"><strong>Additional Information</strong><br>
After tweaking the theme css for the Yaru Ubuntu 18.10 theme, it seems the foreground color for the menubar is being pulled from the context menu color, not the menubar foreground color.</p>
<p dir="auto">The colors are set here: </p><div class="Box Box--condensed my-2">
  <div class="Box-header f6">
    <p class="mb-0 text-bold">
      <a href="https://github.com/electron/electron/blob/74644e53e85afe05d99592f4633c40fa070b345a/atom/browser/ui/views/menu_bar.cc#L142">electron/atom/browser/ui/views/menu_bar.cc</a>
    </p>
    <p class="mb-0 color-fg-muted">
         Line 142
      in
      <a data-pjax="true" class="commit-tease-sha" href="/electron/electron/commit/74644e53e85afe05d99592f4633c40fa070b345a">74644e5</a>
    </p>
  </div>
  <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data">
    <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip="">

        <tbody><tr class="border-0">
          <td id="L142" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="142"></td>
          <td id="LC142" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> background_color_ = <span class="pl-c1">libgtkui::GetBgColor</span>(menubar_selector); </td>
        </tr>
    </tbody></table>
  </div>
</div>
<p></p>
<p dir="auto">Related VS Code issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="377411949" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/62593" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/62593/hovercard" href="https://github.com/microsoft/vscode/issues/62593">microsoft/vscode#62593</a></p>