Issue 1:
When packaging a Mac application for distribution, code signing with a valid Developer ID certificate, packaging fails as the bundled Electron Framework.framework contains an invalid symlink to Libraries. Packaging against the latest non-beta, v1.8.2, does not contain the symlink and passes validation.

Electron version: 2.0.0-beta.1 installed with yarn

Operating system: macOS High Sierra 10.13.3

Expected behavior

MacOS distributable should be signed with the specified Developer ID certificate when packaged.

Actual behavior

An astray corrupted symlink to Libraries within Electron Framework.framework/Versions/A/Libraries/ is causing code signing validation to fail. As mentioned above, this only happens when targeting the beta version of Electron.

How to reproduce

Using electron-builder, build a distributable .app Electron application with code-signing enabled using a Developer ID certificate. You should see this output towards the end of execution:

• signing file=<path to .app> identityName=<certificate name> identityHash=<certificate hash>
Error: Command failed: codesign --verify --deep --strict --verbose=2 <path to .app>
--prepared:<path to .app>/Contents/Library/LoginItems/Electron Login Helper.app
--prepared:<path to .app>/Contents/Frameworks/<app name> Helper.app
--validated:<path to .app>/Contents/Library/LoginItems/Electron Login Helper.app
--validated:<path to .app>/Contents/Frameworks/<appname> Helper.app
--prepared:<path to .app>/Contents/Frameworks/Squirrel.framework/Versions/Current/.
--prepared:<path to .app>/Contents/Frameworks/<appname> Helper NP.app
--validated:<path to .app>/Contents/Frameworks/Squirrel.framework/Versions/Current/.
--validated:<path to .app>/Contents/Frameworks/<appname> Helper NP.app
--prepared:<path to .app>/Contents/Frameworks/<appname> Helper EH.app
--validated:<path to .app>/Contents/Frameworks/<appname> Helper EH.app
--prepared:<path to .app>/Contents/Frameworks/Mantle.framework/Versions/Current/.
--validated:<path to .app>/Contents/Frameworks/Mantle.framework/Versions/Current/.
--prepared:<path to .app>/Contents/Frameworks/ReactiveCocoa.framework/Versions/Current/.
--validated:<path to .app>/Contents/Frameworks/ReactiveCocoa.framework/Versions/Current/.
--prepared:<path to .app>/Contents/Frameworks/Electron Framework.framework/Versions/Current/.
<path to .app>: No such file or directory

It seems to successfully validate, up to Electron Framework.framework/Versions/Current/ where it is unable to continue after reaching the invalid symlink.

Obviously, this version of Electron is a beta, so issues are understandable, but it'd obviously be good to get this checked out! Thank you! :)

Issue 2:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

Electron Version:

>= electron v7.0.0-beta.4

Operating System:

macOS 10.14.6

Last Known Working Electron version:

electron v7.0.0-beta.3

Expected Behavior

Load all resources.

Actual Behavior

Doesn't load all resources.

To Reproduce

For bugs that can be encapsulated in a small experiment, you can use Electron Fiddle (https://github.com/electron/fiddle) to publish your example to a GitHub Gist and link it your bug report.

Was created a web page with HTTP Basic to reproduce bug: https://urr8o0dc29gon6u1.prodoctor.net with user and password equals urr8o0dc29gon6u1.

main.js

const {app, BrowserWindow} = require('electron')

let mainWindow

function createWindow () {
mainWindow = new BrowserWindow({
width: 800,
height: 600,
webPreferences: {
nodeIntegration: true
}
})

mainWindow.loadURL('https://urr8o0dc29gon6u1.prodoctor.net')

mainWindow.on('closed', function () {
mainWindow = null
})
}

app.on('login', (event, webContents, request, authInfo, callback) => {
callback('urr8o0dc29gon6u1', 'urr8o0dc29gon6u1');
})

app.on('ready', createWindow)

app.on('window-all-closed', function () {
app.quit()
})

app.on('activate', function () {
if (mainWindow === null) {
createWindow()
}
})