<ul dir="auto">
<li>Electron version: 2.0.6</li>
<li>Operating system: MacOS High Sierra (latest)</li>
</ul>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">The mas build should be accepted by the App Store.</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">The App Store suddenly started to reject my mas build based on the Electron Framework v. 1.7.9. The upgrade to the last stable version 2.0.6 didn’t solve the problem. Any ideas?</p>
<p dir="auto">I always get the following message:</p>
<p dir="auto">Your app uses or references the following non-public APIs:</p>
<p dir="auto">From framework:<br>
-Symbol: _CGDisplayUsesForceToGray<br>
From framework: /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics<br>
-Symbols: ___CFRunLoopSetOptionsReason, __CFIsObjC<br>
From framework: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation</p>
<p dir="auto">In binary:<br>
-Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework</p>
<p dir="auto">Please help.</p>
<p dir="auto"><strong>Electron Version:</strong> v3.0.x, v2.0.x<br>
<strong>OS:</strong> Windows 10 (1803) x64</p>
<p dir="auto"><strong>Expected Behavior</strong><br>
Context menu of a flash object should stay open until user performs an action that normally closes it.</p>
<p dir="auto"><strong>Actual behavior</strong><br>
Opening a flash context menu works fine but it randomly disappears when clicking nothing. Once it is gone, the app gets somewhat unresponsive. JS code is not getting executed, navigation does not work, reopening the context menu is impossible...<br>
I noticed that when I was using multiple electron windows, the bug only occured once and was only affecting that one window. Every other window was fine after that and the bug could not be reproduced a second time.</p>
<p dir="auto"><strong>To Reproduce</strong><br>
Right click onto a flash object, so that the context menu appears. Then do nothing and wait until it disappears.</p>
<p dir="auto"><strong>Additional Information</strong><br>
This one is very tricky to reproduce. It can take quite some time until it disappears, it is completely random when it disappears and I have no idea why it is happening. I was able to reproduce this issue in v2.0.2, v3.0.0-beta.3 and v3.0.0-beta.4 in various main.js setups.</p>
<p dir="auto"><strong>Workaround</strong><br>
I came up with disabling the context menu, which seems to avoid the issue entirely (inline JS in HTML file):<br>
<code class="notranslate">document.getElementById("flash").oncontextmenu = function(){return false};</code></p>