Jessica Lord [Thu, 3 Dec 2015 20:16:32 +0000 (12:16 -0800)]
Merge pull request #3680 from atom/newline-before-code-block
Add newline before example code block
Kevin Sawicki [Thu, 3 Dec 2015 16:40:47 +0000 (08:40 -0800)]
Add newline before example code block
Cheng Zhao [Thu, 3 Dec 2015 13:44:54 +0000 (21:44 +0800)]
Merge pull request #3663 from preco21/master
Update as upstream
Cheng Zhao [Thu, 3 Dec 2015 10:06:34 +0000 (18:06 +0800)]
Merge pull request #3676 from atom/callback-race-condition
Make sure V8 handles are deleted on UI thread
Cheng Zhao [Thu, 3 Dec 2015 09:10:14 +0000 (17:10 +0800)]
Weak map only needs to be deleted for once
Cheng Zhao [Thu, 3 Dec 2015 09:04:40 +0000 (17:04 +0800)]
Remove itself from the cleanup list when it is destroyed
Cheng Zhao [Thu, 3 Dec 2015 08:33:57 +0000 (16:33 +0800)]
It is fine to leak a V8 handle on exit
Cheng Zhao [Thu, 3 Dec 2015 08:17:10 +0000 (16:17 +0800)]
window.id is no longer available when window is closed
Cheng Zhao [Thu, 3 Dec 2015 08:04:46 +0000 (16:04 +0800)]
Use BuildPrototype to build prototype
This saves the step of manually keeping the global template object,
which is easy to forget then leak.
Cheng Zhao [Thu, 3 Dec 2015 07:38:43 +0000 (15:38 +0800)]
Do not manually manage native resources
We should rely on the destructor to cleanup everything, instead of
putting them in the Destroy method.
Cheng Zhao [Thu, 3 Dec 2015 03:24:33 +0000 (11:24 +0800)]
Make sure V8 Function passed to native code are destroyed on UI thread
Plusb Preco [Wed, 2 Dec 2015 15:21:34 +0000 (00:21 +0900)]
Update as upstream
Plusb Preco [Wed, 2 Dec 2015 15:21:28 +0000 (00:21 +0900)]
Merge remote-tracking branch 'refs/remotes/atom/master'
Cheng Zhao [Wed, 2 Dec 2015 12:55:02 +0000 (20:55 +0800)]
Merge pull request #3660 from atom/tray-custom-menu
Add `menu` parameter for Tray.popUpContextMenu
Cheng Zhao [Wed, 2 Dec 2015 11:59:43 +0000 (19:59 +0800)]
Merge pull request #3659 from lukeapage/patch-1
Update debugging-main-process.md
Cheng Zhao [Wed, 2 Dec 2015 11:58:10 +0000 (19:58 +0800)]
win: Implement menu parameter
Cheng Zhao [Wed, 2 Dec 2015 11:05:22 +0000 (19:05 +0800)]
mac: Implement menu parameter
Cheng Zhao [Wed, 2 Dec 2015 10:43:11 +0000 (18:43 +0800)]
Add `menu` parameter for Tray.popUpContextMenu
Luke Page [Wed, 2 Dec 2015 10:23:21 +0000 (10:23 +0000)]
Update debugging-main-process.md
Cheng Zhao [Wed, 2 Dec 2015 09:29:58 +0000 (17:29 +0800)]
Deprecating a property with method of same name causes trouble
Close #3511.
Cheng Zhao [Wed, 2 Dec 2015 03:36:29 +0000 (11:36 +0800)]
Make sure temp file will be cleaned up when base::Move fails
Cheng Zhao [Wed, 2 Dec 2015 03:04:47 +0000 (11:04 +0800)]
Don't call Move if there is no need to move
Cheng Zhao [Wed, 2 Dec 2015 03:00:28 +0000 (11:00 +0800)]
spec: Fix failing tests on win32
Cheng Zhao [Wed, 2 Dec 2015 02:45:24 +0000 (10:45 +0800)]
Merge pull request #3648 from jviotti/jviotti/fix/exec-file-asar-bat
:checkered_flag: Preserve file extension when extracting from asar
Cheng Zhao [Wed, 2 Dec 2015 02:21:10 +0000 (10:21 +0800)]
Merge pull request #3650 from arturts/patch-5
:memo: [ci skip] Update to match english docs, fix typos
Cheng Zhao [Wed, 2 Dec 2015 02:20:58 +0000 (10:20 +0800)]
Merge pull request #3649 from arturts/pt-BR-auto-updater
:memo: [ci skip] Add translation to auto-updater, change links
Artur de Oliveira Tsuda [Tue, 1 Dec 2015 23:57:07 +0000 (21:57 -0200)]
:memo: [ci skip] fix more typos
Artur de Oliveira Tsuda [Tue, 1 Dec 2015 23:46:13 +0000 (21:46 -0200)]
:memo: [ci skip] fix typos
Artur de Oliveira Tsuda [Tue, 1 Dec 2015 23:38:25 +0000 (21:38 -0200)]
Change header
Artur de Oliveira Tsuda [Tue, 1 Dec 2015 23:34:35 +0000 (21:34 -0200)]
:memo: [ci skip] Update to match english docs, fix typos
Artur de Oliveira Tsuda [Tue, 1 Dec 2015 23:09:20 +0000 (21:09 -0200)]
:memo: [ci skip] Add translation to auto-updater, change links
Juan Cruz Viotti [Tue, 1 Dec 2015 15:57:32 +0000 (11:57 -0400)]
:checkered_flag: Preserve file extension when extracting from asar
Currently, when calling `copyFileOut`, the original extension from the
file is lost, and a generic `*.tmp` is added instead.
This becomes problematic in the scenario where we use
`child_process.execFile` on a Windows Batch script that lives inside the
`asar` package.
Windows relies on the extension being present in order to interpret the
script accordingly, which results in the following bug because the
operating system doesn't know what do to with this `*.tmp` file:
```
Error: spawn UNKNOWN
```
Steps to reproduce:
1. Create a dummy batch script (test.bat):
```
@echo off
echo "Hello world"
```
2. Create an electron app that attemps to call this script with
`child_process.execFile`:
```js
var child_process = require('child_process');
var path = require('path');
child_process.execFile(path.join(__dirname, 'test.bat'), function(error, stdout) {
if (error) throw error;
console.log(stdout);
});
```
3. Package this small application as an asar archive:
```sh
> asar pack mytestapp app.asar
```
4. Execute the application:
```sh
> electron.exe app.asar
```
Cheng Zhao [Tue, 1 Dec 2015 11:12:34 +0000 (19:12 +0800)]
Merge pull request #3645 from atom/fix-page-title-set
Delay the page-title-updated event to next tick
Cheng Zhao [Tue, 1 Dec 2015 10:50:56 +0000 (18:50 +0800)]
Deprecate the page-title-set event
We have two names for the same event, page-title-updated wins.
Cheng Zhao [Tue, 1 Dec 2015 10:34:58 +0000 (18:34 +0800)]
Delay the page-title-set event to next tick
Cheng Zhao [Tue, 1 Dec 2015 09:52:13 +0000 (17:52 +0800)]
Emit event when title becomes empty
Cheng Zhao [Tue, 1 Dec 2015 09:51:09 +0000 (17:51 +0800)]
No need to override TitleWasSet in NativeWindow
Cheng Zhao [Tue, 1 Dec 2015 09:19:52 +0000 (17:19 +0800)]
Merge pull request #3643 from atom/fix-did-fail-load-crash
Delay the did-fail-provisional-load event to next tick
Cheng Zhao [Tue, 1 Dec 2015 08:55:52 +0000 (16:55 +0800)]
Delay the did-fail-provisional-load event to next tick
Chrome is doing some stuff after the DidFailProvisionalLoad event, if we
call LoadURL at this time crash would happen.
Cheng Zhao [Tue, 1 Dec 2015 08:21:15 +0000 (16:21 +0800)]
Put common constants in atom_constants
Cheng Zhao [Tue, 1 Dec 2015 06:40:37 +0000 (14:40 +0800)]
Merge pull request #3641 from atom/process-no-asar
Add process.noAsar to toggle asar support
Cheng Zhao [Tue, 1 Dec 2015 05:43:52 +0000 (13:43 +0800)]
docs: process.noAsar
Cheng Zhao [Tue, 1 Dec 2015 05:09:50 +0000 (13:09 +0800)]
spec: process.noAsar
Cheng Zhao [Tue, 1 Dec 2015 05:09:37 +0000 (13:09 +0800)]
Add process.noAsar to turn off asar support
Cheng Zhao [Tue, 1 Dec 2015 04:43:38 +0000 (12:43 +0800)]
Merge pull request #3567 from atom/cors
Enable all origins via CORS header for custom schemes
Paul Betts [Tue, 1 Dec 2015 02:12:00 +0000 (18:12 -0800)]
Lint harder
Cheng Zhao [Tue, 1 Dec 2015 02:06:55 +0000 (10:06 +0800)]
Merge pull request #3638 from arturts/pt-br-translation
:memo: [ci skip] Add translation to app.md
Cheng Zhao [Tue, 1 Dec 2015 02:06:38 +0000 (10:06 +0800)]
Merge pull request #3636 from arturts/patch-4
:memo: [ci skip] Update to match english docs.
Cheng Zhao [Tue, 1 Dec 2015 02:06:13 +0000 (10:06 +0800)]
Merge pull request #3635 from arturts/patch-3
:memo: [ci skip] Fix typos
Artur de Oliveira Tsuda [Mon, 30 Nov 2015 23:56:19 +0000 (21:56 -0200)]
:memo: [ci skip] Add translation to app.md
Artur de Oliveira Tsuda [Mon, 30 Nov 2015 21:43:19 +0000 (19:43 -0200)]
:memo: [ci skip] Update to match english docs.
Artur de Oliveira Tsuda [Mon, 30 Nov 2015 21:14:33 +0000 (19:14 -0200)]
:memo: [ci skip] Fix typos
Paul Betts [Mon, 30 Nov 2015 19:08:22 +0000 (11:08 -0800)]
Linting
Paul Betts [Wed, 25 Nov 2015 23:20:50 +0000 (15:20 -0800)]
Add tests to verify behavior
Paul Betts [Wed, 25 Nov 2015 23:00:47 +0000 (15:00 -0800)]
Add CORS header to file jobs
Paul Betts [Wed, 25 Nov 2015 23:00:34 +0000 (15:00 -0800)]
Fix CORS header code to be cleaner
Paul Betts [Tue, 24 Nov 2015 07:29:49 +0000 (23:29 -0800)]
Enable all origins via CORS header for custom schemes
This PR disables CORS for custom schemes, which allows you to serve Font
resources from custom schemes after using registerCustomSchemeAsSecure
Cheng Zhao [Mon, 30 Nov 2015 14:40:48 +0000 (22:40 +0800)]
Merge pull request #3634 from atom/fix-crash-on-exit
Delete BridgeTaskRunner when main message loop is ready
Cheng Zhao [Mon, 30 Nov 2015 14:29:01 +0000 (22:29 +0800)]
Delete BridgeTaskRunner when main message loop is ready
Cheng Zhao [Mon, 30 Nov 2015 10:26:04 +0000 (18:26 +0800)]
Merge pull request #3628 from lovemyliwu/patch-1
:art: add miss charactor
Smite Chow [Mon, 30 Nov 2015 09:16:35 +0000 (17:16 +0800)]
:art: add miss charactor
Plusb Preco [Mon, 30 Nov 2015 08:24:43 +0000 (17:24 +0900)]
Update as upstream
Cheng Zhao [Mon, 30 Nov 2015 08:01:05 +0000 (16:01 +0800)]
Merge pull request #3626 from arturts/patch-2
Update 'Estilo de código' link.
Cheng Zhao [Mon, 30 Nov 2015 08:01:01 +0000 (16:01 +0800)]
Merge pull request #3625 from arturts/patch-1
Remove 'Google Translator'-like translation
Cheng Zhao [Mon, 30 Nov 2015 07:33:49 +0000 (15:33 +0800)]
Merge pull request #3622 from atom/wl-docs-skip-ci
Suggest [ci skip] in documentation-only commits
Cheng Zhao [Mon, 30 Nov 2015 07:21:39 +0000 (15:21 +0800)]
docs: Mention submitting to MAC costs money
Close #3617.
Cheng Zhao [Mon, 30 Nov 2015 07:01:08 +0000 (15:01 +0800)]
Merge pull request #3618 from preco21/master
Update as upstream
Cheng Zhao [Mon, 30 Nov 2015 07:00:33 +0000 (15:00 +0800)]
Merge pull request #3616 from leftstick/master
add packaging translation for ZH-CN
Cheng Zhao [Mon, 30 Nov 2015 06:57:16 +0000 (14:57 +0800)]
Merge pull request #3612 from gunmetal313/translate_to_ru
init russian lang docs
Artur de Oliveira Tsuda [Mon, 30 Nov 2015 01:25:16 +0000 (23:25 -0200)]
Update 'Estilo de código' link.
'Estilo de código' in 'Desenvolvimento' section now points to the translated coding-style.md
Artur de Oliveira Tsuda [Mon, 30 Nov 2015 00:56:34 +0000 (22:56 -0200)]
Remove 'Google Translator'-like translation
Paul Betts [Sun, 29 Nov 2015 23:33:55 +0000 (15:33 -0800)]
Merge pull request #3621 from lukewestby/patch-1
fix misspelling in "rotation" string
Wliu [Sun, 29 Nov 2015 19:57:48 +0000 (14:57 -0500)]
Wrap [ci skip] in backticks
Wliu [Sun, 29 Nov 2015 19:04:57 +0000 (14:04 -0500)]
Suggest [ci skip] in documentation-only commits
Luke Westby [Sun, 29 Nov 2015 18:22:53 +0000 (12:22 -0600)]
fix typo in "rotation" string
Plusb Preco [Sun, 29 Nov 2015 14:06:01 +0000 (23:06 +0900)]
Small fixes
Plusb Preco [Sun, 29 Nov 2015 14:03:31 +0000 (23:03 +0900)]
Update as upstream
Plusb Preco [Sun, 29 Nov 2015 09:46:01 +0000 (18:46 +0900)]
Merge remote-tracking branch 'refs/remotes/atom/master'
howard.zuo [Sun, 29 Nov 2015 04:14:49 +0000 (12:14 +0800)]
add packaging translation for ZH-CN
Ivan Kulikov [Fri, 27 Nov 2015 19:32:45 +0000 (22:32 +0300)]
init russian lang docs
Cheng Zhao [Fri, 27 Nov 2015 14:23:19 +0000 (22:23 +0800)]
Bump v0.35.2
Cheng Zhao [Fri, 27 Nov 2015 14:21:33 +0000 (22:21 +0800)]
Merge pull request #3608 from atom/cp-execfile
Add docs and tests for child_process.execFile
Cheng Zhao [Fri, 27 Nov 2015 14:06:37 +0000 (22:06 +0800)]
Add executable permission in CopyFileOut
Cheng Zhao [Fri, 27 Nov 2015 13:38:43 +0000 (21:38 +0800)]
spec: Test execFile and execFileSync
Cheng Zhao [Fri, 27 Nov 2015 13:29:31 +0000 (21:29 +0800)]
docs: Add notes on spawn and exec
Cheng Zhao [Fri, 27 Nov 2015 10:39:11 +0000 (18:39 +0800)]
Merge pull request #3604 from niedzielski/patch-2
Update docs for webContents.addWorkSpace
Cheng Zhao [Fri, 27 Nov 2015 10:38:39 +0000 (18:38 +0800)]
Merge pull request #3603 from niedzielski/patch-1
Update docs for globalShortcut.register
Cheng Zhao [Fri, 27 Nov 2015 10:38:13 +0000 (18:38 +0800)]
Merge pull request #3606 from preco21/master
Update as upstream
Plusb Preco [Fri, 27 Nov 2015 08:28:09 +0000 (17:28 +0900)]
Update as upstream
Plusb Preco [Fri, 27 Nov 2015 08:27:58 +0000 (17:27 +0900)]
Merge remote-tracking branch 'refs/remotes/atom/master'
Stephen Niedzielski [Fri, 27 Nov 2015 06:16:00 +0000 (23:16 -0700)]
Update docs for webContents.addWorkSpace
Specify that webContents.addWorkSpace cannot be called before DevTools
creation and include example.
Fix: #3536
Stephen Niedzielski [Fri, 27 Nov 2015 05:35:22 +0000 (22:35 -0700)]
Update docs for globalShortcut.register
Document return value for globalShortcut.register and common failure scenario.
Fix: #3600
Cheng Zhao [Fri, 27 Nov 2015 03:39:45 +0000 (11:39 +0800)]
Merge pull request #3595 from jviotti/jviotti/fix/3512/execFile-override-exec-permissions
:bug: Fix missing execution permission bit in execFile override
Juan Cruz Viotti [Thu, 26 Nov 2015 12:48:47 +0000 (08:48 -0400)]
:bug: Fix missing execution permission bit in execFile override
Consider an electron application that uses `execFile` to run a script
that lives within the application code base:
```coffee
child_process = require 'child_process'
child_process.execFile __dirname + '/script.sh', (error) ->
throw error if error?
```
An application like this will fail when being packaged in an `asar` with
an following error:
```
Error: spawn EACCES
```
Electron overrides certain `fs` functions to make them work within an
`asar` package. In the case of `execFile`, the file to be executed is
extracted from the `asar` package into a temporary file and ran from
there.
The problem is that during the extraction, the original permissions of
the file are lost.
We workaround this by:
1. Extending `asar.stat` to return whether a file is executable or not,
which is information that's already saved in the `asar` header.
2. Setting execution permissions on the extracted file if the above
property holds true.
Fixes: https://github.com/atom/electron/issues/3512
Plusb Preco [Fri, 27 Nov 2015 03:19:47 +0000 (12:19 +0900)]
Merge remote-tracking branch 'refs/remotes/atom/master'
Cheng Zhao [Fri, 27 Nov 2015 02:30:51 +0000 (10:30 +0800)]
Fix wrong deprecation wrappers of BrowserWindow
Cheng Zhao [Thu, 26 Nov 2015 13:51:35 +0000 (21:51 +0800)]
Merge pull request #3594 from atom/public-env
Add ELECTRON_RUN_AS_NODE environment variable
Cheng Zhao [Thu, 26 Nov 2015 13:02:55 +0000 (21:02 +0800)]
Add ELECTRON_NO_ATTACH_CONSOLE env var
Close #1556.
Cheng Zhao [Thu, 26 Nov 2015 12:44:07 +0000 (20:44 +0800)]
docs: Add example
Cheng Zhao [Thu, 26 Nov 2015 12:37:48 +0000 (20:37 +0800)]
docs: Add Environment Variables