Tabea4
014bdc9f8a
docs: option title for showSaveDialog is not supported for some platforms ( #28747 )
2021-05-19 09:44:17 +02:00
Thomas Kainrad
af426cbdab
Update accelerator.md ( #29193 )
...
`Meta` is a valid alternative for `Super` and should be listed as an available modifier.
2021-05-19 09:52:06 +09:00
Noelle Leigh
5e6f8349ec
docs: --force-fieldtrials was h2 rather than h3 ( #29161 )
...
All the other argument headers were h3 (`###`) but `--force-fieldtrials` was h2 (`##`) for some reason.
I changed it to make it consistent with the others.
2021-05-14 18:32:21 -07:00
Cheng Zhao
4073599f59
fix: remove background color hack in vibrancy ( #29114 )
2021-05-14 11:05:34 +02:00
PalmerAL
5233feaef9
docs: Improve description of findInPage options ( #29077 )
...
* docs: improve webContents.findInPage description
* docs: improve webview.findInPage description
2021-05-13 11:12:08 +09:00
Erick Zhao
8f8708680f
docs: rework sandbox guide ( #28978 )
...
* docs: rework sandbox guide
* update doc name
* add missing comment to code sample
* Update docs/tutorial/sandbox.md
Co-authored-by: Samuel Attard <samuel.r.attard@gmail.com>
* Update docs/tutorial/sandbox.md
Co-authored-by: Samuel Attard <samuel.r.attard@gmail.com>
* Update docs/tutorial/sandbox.md
Co-authored-by: Biru Mohanathas <birunthan@mohanathas.com>
* load https in the examples
* change `process` docs to Electron's
* remove bit on chrome://sandbox page
* Update docs/tutorial/sandbox.md
Co-authored-by: Jeremy Rose <nornagon@nornagon.net>
* Update docs/tutorial/sandbox.md
Co-authored-by: Jeremy Rose <nornagon@nornagon.net>
* clarify sandbox default posture
* clarify tasks sandboxed renderers need ipc for
* clarify polyfilled preload environment
* emphasize that --no-sandbox is bad
* clarify preload polyfill `require`
* format markdown references properly
Co-authored-by: Samuel Attard <samuel.r.attard@gmail.com>
Co-authored-by: Biru Mohanathas <birunthan@mohanathas.com>
Co-authored-by: Jeremy Rose <nornagon@nornagon.net>
2021-05-06 20:53:55 +09:00
Hamish Macpherson
9fb3a49c7c
docs: link to BrowserView
from webview
page ( #28942 )
...
* docs: Link to `BrowserView` from `webview` page
* fix relative link
2021-05-05 16:12:16 +09:00
Rajdeep Chatterjee
dd80952877
docs: Added loadFile instead of loadURL in BrowserWindow documentation example ( #28829 )
...
* Added loadFile instead of loadURL in the example
For loading a local file the loadFile API is a better way to load any html file in the Renderer process.
Have changed it in the example.
* Changed backticks to single quote to correct for linting error
In order to correct the linting error reported by the bot, I have changed backticks to single quote in the example.
2021-05-03 13:56:33 -04:00
Erick Zhao
18a76c6b9d
docs: uniformize module API doc format ( #28920 )
...
This PR ensures that all API modules are present in the README doc,
as there were a couple missing. It also formats all modules to contain
a level-1 heading and a blockquote description.
2021-04-29 09:56:31 +02:00
Michael Kozakov
c37c9adbe2
docs: Add clarification for Visual Zoom behavior ( #28860 )
...
* Add clarification for visual zoom documentation
2021-04-28 17:20:47 -04:00
Erick Zhao
0b42316803
docs: remove api/locales
page ( #28911 )
...
This page is just a table writing out the contents of an array in
the Chromium source code. We don't actively maintain it, and
it's only referenced in one API, so it makes sense to just
link directly to the code here.
2021-04-28 13:11:50 -07:00
Samuel Attard
fa61e3b119
feat: add session.storagePath to get path on disk for session data ( #28665 )
2021-04-27 09:54:28 -07:00
Jeremy Rose
583660a85a
docs: fix unintentional emoji in win.getMediaSourceId description ( #28767 )
2021-04-22 10:56:25 -07:00
Samuel Maddock
43d27cc4d1
feat: add WebFrameMain.visibilityState ( #28706 )
...
* feat: add WebFrameMain.visibilityState
* docs: mention other page visibility APIs
* test: delay visibilityState check after hiding
* test: add waitForTrue to avoid flaky visibilityState test
* refactor: waitForTrue -> waitUntil
2021-04-22 12:00:58 -04:00
Samuel Attard
79077f6df9
chore: remove app.allowRendererProcessReuse ( #26874 )
2021-04-21 13:59:11 -07:00
Jeremy Rose
4ca518468d
feat: remove BrowserWindow option inheritance ( #28550 )
2021-04-21 10:55:17 -07:00
Shelley Vohr
11199d8824
feat: add BrowserWindow.isFocusable() ( #28642 )
2021-04-21 12:32:19 +02:00
Jeremy Rose
e12a3cb59c
feat: remove deprecated additionalFeatures ( #28548 )
2021-04-19 15:46:54 -07:00
Samuel Attard
400d7c4bce
chore: update ts parser for description comment fixes and generic types ( #28709 )
...
* chore: update ts parser for description comment fixes
* docs: strongly type the getUserDefault API
* spec: add getUserMedia type assertions to smoke run
2021-04-19 11:44:58 -07:00
Electron Bot
22a70eb803
chore: bump chromium to 92.0.4475.0 (master) ( #28462 )
...
* chore: bump chromium in DEPS to 91.0.4464.0
* chore: rebuild chromium/dcheck.patch with import-patches -3
Mechanical only; no code changes
* chore: remove content_browser_main_loop.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2725153
The function being patched (BrowserMainLoop::MainMessageLoopRun()) no
longer exists.
NB: if removing this introduces regressions the likely fix will be to
add a similar patch for ShellBrowserMainParts::WillRunMainMessageLoop()
which has similar code and was added at the same time this was removed.
* chore: rebuild chromium/put_back_deleted_colors_for_autofill.patch with import-patches -3
Mechanical only; no code changes
* chore: rebuild chromium/disable_color_correct_rendering.patch with import-patches -3
Mechanical only; no code changes
* chore: rebuild chromium/eat_allow_disabling_blink_scheduler_throttling_per_renderview.patch with patch
Mechanical only; no code changes
* chore: rebuild chromium/gpu_notify_when_dxdiag_request_fails.patch with import-patches -3
Mechanical only; no code changes
* chore: rebuild chromium/ui_gtk_public_header.patch manually
no code changes
* chore: rebuild chromium/web_contents.patch with import-patches -3
Mechanical only; no code changes
* chore: remove v8/skip_global_registration_of_shared_arraybuffer_backing_stores.patch
Refs: https://chromium-review.googlesource.com/c/v8/v8/+/2763874
This patch has been merged upstream
* chore: export patches
* chore: update add_trustedauthclient_to_urlloaderfactory.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2757969
Sync with removal of render_frame_id_
* chore: sync chromium/put_back_deleted_colors_for_autofill.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2785841
SkColorFromColorId() no longer takes theme, scheme args
* chore: sync chromium/put_back_deleted_colors_for_autofill.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2772143
Change new calls to GetDarkSchemeColor to fit our patched call signature
* chore: update add_trustedauthclient_to_urlloaderfactory.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2757969
Sync with removal of render_frame_id_ in our mojom
* chore: update chromium/frame_host_manager.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2740008
UrlInfo ctor now takes UrlInfo::OriginIsolationRequest instead of a bool
* chore: update chromium/revert_remove_contentrendererclient_shouldfork.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2755314
Upstream has removed `history_list_length_` which we were comparing to 0
to calculate our `is_initial_navigation` bool when calling ShouldFork().
ShouldFork() is ours and none of the code paths actually use that param,
so this commit removes it altogether.
* chore: update permissions_to_register
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2789074
Replace all uses of APIPermission::ID enum with Mojo type
* refactor: update return type of PreMainMessageLoopRun()
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2725153
Used to return void; now returns an int errorcode.
Note: 2725153 also has some nice doc updates about Browser's "stages"
* refactor: sync ElectronBrowserMainParts to MainParts changes
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2725153
RunMainMessageLoopParts has been replaced with WillRunMainMessageLoop
so `BrowserMainLoop::result_code_` is no longer available to us for our
exit_code_ pointer.
This variable held a dual role: (1) of course, hold the exit code, but
also (2) was a nullptr before the message loop was ready, indicating to
anyone calling SetExitCode() that we were still in startup and could
just exit() without any extra steps. exit_code_ still fulfills these two
roles but is now a base::Optional.
* chore: update ElectronBrowserMainParts::PreDefaultMainMessageLoopRun
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2725153
BrowserMainParts::BrowsePreDefaultMainMesssageLoopRun() has been
removed; move that work to the new WillRunMainMessageLoop().
* refactor: stop using CallbackList; it has been removed.
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2785973
* refactor: update use of threadpools.
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2773408
The upstream code is still in flux (e.g. reverts and re-lands) but the
tl;dr for this commit is (1) include thread_pool.h if you're using it
and (2) don't instantiate pools directly.
* refactor: remove routing_id from CreateLoaderAndStart
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2762858
NB: One logic branch in ProxyingURLLoaderFactory::CreateLoaderAndStart
calls std::make_unique<InProgressRequest>, which needs a routing_id.
This PR uses the member field `routing_id_` since there's no longer one
being passed into CreateLoaderAndStart.
* refactor: sync to upstream ParittionOptions churn
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2771318
PartitionOptions' enums have changed.
* refactor: update Manifest::Location usage
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2771320
tldr: s/Manifest::FOO/ManifestLocation::kFoo/
* chore: bump chromium in DEPS to 91.0.4465.0
* update patches
* refactor: update extensions::Manifest to upstream
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2771320
- extensions::Manifest::COMPONENT
+ extensions::mojom::ManifestLocation::kExternalComponent
* refactor: sync with upstream UrlInfo ctor changes
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2740008
UrlInfo ctor now takes UrlInfo::OriginIsolationRequest instead of a bool
* chore: update invocation of convert_protocol_to_json.py
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2792623
python3 is being used in parts of the upstream build, but the copy of
convert_protocol_to_json.py invoked in v8/third_party/inspector_protocol
is not python3-friendly. Node has a py2+3-friendly version of it in its
tools directory, so call it instead.
* chore: use extensions::mojom::APIPermissionID
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2791122
tldr:
- extensions::APIPermission::kFoo
+ extensions::mojom::APIPermissionID::kFoo
* chore: Remove support for TLS1.0/1.1 in SSLVersionMin policy
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2765737
Remove TLS v1.0 & 1.1 from our SSLProtocolVersionFromString() function.
This is the same change made upstream at
https://chromium-review.googlesource.com/c/chromium/src/+/2765737/8/chrome/browser/ssl/ssl_config_service_manager_pref.cc
* fixup! chore: update ElectronBrowserMainParts::PreDefaultMainMessageLoopRun
* chore: Use IDType for permission change subscriptions.
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2791431
tldr: {Subscribe,Unsubscribe}PermissionStatusChange's tag type used to
be an int; now it's the new SubscriptionId type (which is an IdType64).
* chore: sync PowerMonitor code to upstream refactor
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2752635
tldr: PowerMonitor has been split into PowerStateObserver,
PowerSuspendObserver, and PowerThermalObserver to reduce number of tasks
posted to consumers who only need notifications for one of those things
instead of all of them.
* chore: use PartitionOptions's new Cookies field
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2771318
* Revert "refactor: remove routing_id from CreateLoaderAndStart"
This reverts commit 8c9773b87a3c84f9073a47089eb2b6889d745245.
8c9773b was only a partial fix; reverting to start & try again.
* update patches
* chore: bump chromium in DEPS to 91.0.4466.0
* chore: update chromium/accelerator.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2795472
tldr: sync patch with upstream renamed variable & macro names.
* chore: update chromium/gtk_visibility.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2796200
tldr: no code changes; just updating the diff to apply cleanly.
note: ooh upstream Wayland hacking!
* chore: update chromium/picture-in-picture.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2710023
tldr: no code changes; just updating the diff to apply cleanly.
* chore: update chromium/worker_feat_add_hook_to_notify_script_ready.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2775573
tldr: no code changes; just updating the diff to apply cleanly.
* chore: export_all_patches
* chore: update chromium/feat_add_set_theme_source_to_allow_apps_to.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2796511
tldr: NotifyObservers has been renamed to NotifyOnNativeThemeUpdated,
so update the invocation in our patch.
* chore: update ElectronBrowserClient w/upstream API
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2797454
tldr: GetDevToolsManagerDelegate() was returning an owned raw pointer.
Replaced it with CreateDevToolsManagerDelegate() which uses unique_ptr<>.
* chore: handle new content::PermissionType::FILE_HANDLING in toV8()
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2762201
`file-handling` string confirmed in https://chromium-review.googlesource.com/c/chromium/src/+/2762201/18/chrome/browser/ui/webui/settings/site_settings_helper.cc
* refactor: remove routing_id from CreateLoaderAndStart pt 1
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2762858
Part 1: the easiest ones
* 2796724: Support Python3
https://chromium-review.googlesource.com/c/infra/luci/python-adb/+/2796724
* chore: bump chromium in DEPS to 91.0.4468.0
* 2668974: WebShare: Implement SharingServicePicker
https://chromium-review.googlesource.com/c/chromium/src/+/2668974
* 2802766: Apply modernize-make-unique to media/
https://chromium-review.googlesource.com/c/chromium/src/+/2802766
* 2802823: Apply modernize-make-unique to gpu/
https://chromium-review.googlesource.com/c/chromium/src/+/2802823
* 2803041: Apply modernize-make-unique to remaining files
https://chromium-review.googlesource.com/c/chromium/src/+/2803041
* 2798873: Convert GtkKeyBindingsHandler build checks to runtime checks
https://chromium-review.googlesource.com/c/chromium/src/+/2798873
* 2733595: [ch-r] Parse ACCEPT_CH H2/3 frame and restart with new headers if needed
https://chromium-review.googlesource.com/c/chromium/src/+/2733595
* chore: update patch indices
* 2795107: Remove unused PermissionRequest IDs.
https://chromium-review.googlesource.com/c/chromium/src/+/2795107
* chore: bump chromium in DEPS to 91.0.4469.0
* chore: fixup patch indices
* chore: bump chromium in DEPS to 91.0.4469.5
* PiP 1.5: Add microphone, camera, and hang up buttons to the PiP window
https://chromium-review.googlesource.com/c/chromium/src/+/2710023
* fixup! refactor: remove routing_id from CreateLoaderAndStart
* refactor: use URLLoaderNetworkServiceObserver for auth requests from SimpleURLLoader
* fixup! chore: fixup patch indices
* 2724817: Expand scope of wasm-eval to all URLs
https://chromium-review.googlesource.com/c/chromium/src/+/2724817
* Fixup patch after rebase
* chore: bump chromium in DEPS to 91.0.4472.0
* 2797341: [ozone/x11] Enabled the global shortcut listener.
https://chromium-review.googlesource.com/c/chromium/src/+/2797341
* 2805553: Reland Add GTK ColorMixers to ColorPipeline P1
https://chromium-review.googlesource.com/c/chromium/src/+/2805553
* 2804366
: PiP 1.5: Label back to tab button with origin and center it
https://chromium-review.googlesource.com/c/chromium/src/+/2804366
* 2784730: Fix crash on AX mode change in NativeViewHost without a Widget
https://chromium-review.googlesource.com/c/chromium/src/+/2784730
* chore: update patch indices
* 2810174: Add PdfAnnotationsEnabled policy.
https://chromium-review.googlesource.com/c/chromium/src/+/2810174
* 2807829: Allow capturers to indicate if they want a WakeLock or not.
https://chromium-review.googlesource.com/c/chromium/src/+/2807829
* chore: bump chromium in DEPS to 92.0.4473.0
* chore: bump chromium in DEPS to 92.0.4474.0
* chore: bump chromium in DEPS to 92.0.4475.0
* chore: update patches
* chore: updates patches
* chore: update is_media_key patch to handle new ozone impl
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2797341
* fix: ExecuteJavascript requests now need to be flagged as non-bf-aware
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2787195
* chore: icon_util_x11 is now icon_util_linux
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2791362
* build: update sysroots
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2628496
* build: fix missing symbols on linux build
* use_ozone and use_x11 are not exclusive
* new button view to build for pip
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2797341
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2804366
* chore: fix broken gtk_util color patch
* chore: remove patch conflict
* build: update linux manifests
* chore: build bttlb on all platforms for pip
* chore: add thread_pool include for views delegate win
* chore: fix lint
* chore: add node patches for V8 changes
* build: add missing base include on windows
* fix: update frame host manager patch for new state transitions
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2714464
* chore: update windows zip manifests
* chore: update mac zip manifests
* chore: fix patch linting
* refactor: implement missing URLLoaderNetworkServiceObserver methods
It is against The Mojo Rules to leave hanging callbacks. These always
have to be called.
Refs: 186528aab9
* spec: fix locale test on local linux
* fix: pass the exit code correctly in new PreMainMessageLoopRun
Refs: 2622e91c44
* fix: ensure we early-exit when request_handler_ is not provided
Refs: 93077afbfb
* fix: strongly set result_code in the BrowserMainLoop
* fix: invalid usage of non-targetted PostTask
You must always either use a host threadpool or specify a target
thread. In this case we did neither after this refactor.
Refs: 4e33ee0ad3
* chore: fix gn check
* chore: remove stray .rej files in patch
* chore: add mojo error code to url loader failure
* build: ensure CI is truthy in arm test env
* fix: handle windowCaptureMacV2 being enabled when fetching media source id
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2709931
Co-authored-by: Charles Kerr <charles@charleskerr.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
Co-authored-by: deepak1556 <hop2deep@gmail.com>
Co-authored-by: Samuel Attard <samuel.r.attard@gmail.com>
Co-authored-by: Samuel Attard <sattard@slack-corp.com>
2021-04-15 10:44:35 -07:00
Jeremy Rose
f8bdef5349
feat: enable nativeWindowOpen by default ( #28552 )
...
* feat: enable nativeWindowOpen by default
* set nativeWindowOpen: false on spec/ main window
* update snapshots
* fix tests
* fix test
* fix webview test missing allowpopups
* fix other test
* update default
2021-04-13 15:36:38 -04:00
Jeremy Rose
dba4df9326
feat: add more info in setWindowOpenHandler details ( #28518 )
...
* fix: invoke the window open handler for _blank links
* feat: add disposition to setWindowOpenHandler details
* fix: pass postData to new-window event
* postData can be heterogeneous
* fix type of postBody
* fix type of UploadFile and UploadRawData to be discriminated unions
* exclude the empty string from additionalFeatures
* add a test
* add postBody and referrer to setWindowOpenHandler args
* appease typescript
* Update api-browser-window-spec.ts
* update snapshots
2021-04-13 15:35:27 -04:00
Samuel Maddock
ef4954fa1f
docs: systemPreferences.subscribeWorkspaceNotification return type ( #28588 )
2021-04-11 14:02:58 -07:00
Milan Burda
da8c35e3b2
chore: remove deprecated worldSafeExecuteJavaScript option ( #28456 )
2021-04-08 12:03:57 -04:00
Germain
2865d161b7
docs: remove checkbox options in dialog.showMessageBoxSync ( #28418 )
2021-04-07 00:18:19 -07:00
Shelley Vohr
7d04f729d8
fix: beforeunload and unload firing in BrowserViews ( #28382 )
...
* fix: beforeunload and unload firing in BrowserViews
* Ensure UserGesture is sent for BV webContents
* spec: add tests
* refactor: clean up logic
* spec: fixup specs
* docs: document event behavior for BrowserViews
2021-04-07 00:16:10 -07:00
Jeremy Rose
77dcf1020a
fix: pass postData to new-window event ( #28513 )
2021-04-06 09:54:05 -07:00
Michaela Laurencin
19d7a6b761
fix: enable system maximization for frameless windows except if transparent ( #28207 )
...
* fix: move widget maximization check
* fix linting error
* change workaround to only effect transparent windows
* disable menu maximize and restore for transparent windows
* disable double clicking title bar max/unmax for transparent windows
* add docs change and address review
2021-04-06 08:53:59 +09:00
SushiJackal
82ea8ea68c
fix: reject task append to JumpList when description exceeds 260 characters ( #28485 )
...
* fix: reject task when description exceeds 260 characters
* Switched out wcslen() for size() [linear -> constant time]
* Included comment describing the need for the additional check
* Added information about character limit to documentation
* Added newline character to end of jump-list-category.md
2021-04-06 08:50:39 +09:00
Michaela Laurencin
2a55ae4b85
docs: add frameName note for window.open ( #28435 )
2021-03-31 13:57:39 -07:00
Saúl Ibarra Corretgé
2632564ccf
feat: initialize field trials from command line arguments ( #28305 )
...
Fixes : #27877
2021-03-26 09:49:00 +09:00
Alexander Prinzhorn
521146f71e
docs: add missing line in web-contents.md ( #28376 )
...
* Update web-contents.md
The text block was rendered as part of the `features` property, not the `handler`
* fix linting
2021-03-26 09:46:59 +09:00
Will Anderson
8c3165434a
docs: update Node global symbols example to use contextBridge ( #28245 )
...
* docs: update Node global symbols example to use contextBridge
* Trigger Build
* docs: change Node API example to show how to expose a crypto API
Co-authored-by: Jeremy Rose <nornagon@nornagon.net>
* docs: Fix lint warning for crypto code sample
* docs: update node API example description to emphasize APIs instead of symbols
Co-authored-by: Jeremy Rose <nornagon@nornagon.net>
2021-03-22 11:01:12 +09:00
Jeremy Rose
502d4c19ce
feat: allow omitting submitURL when uploadToServer is false ( #28105 )
2021-03-18 14:15:19 -07:00
Samuel Attard
f35fc93080
chore: rename process.contextIsolation to process.contextIsolated ( #28259 )
...
* chore: rename process.contextIsolation to process.contextIsolated
* thing
2021-03-18 14:00:19 -07:00
Milan Burda
fc7f2042ec
feat: add process.contextIsolation property ( #28030 )
2021-03-17 11:23:29 -07:00
Milan Burda
485fa5bea9
feat: add process.contextId used by @electron/remote ( #28007 )
2021-03-17 11:23:03 -07:00
Samuel Attard
b045d42b0e
docs: document the parameter structure of hookWindowMessage ( #28189 )
...
Fixes #28178
2021-03-16 17:54:41 +09:00
Gerrit Niezen
45c4dd529f
docs: remove unnecessary enableBlinkFeatures ( #28129 )
...
* docs: remove unnecessary enableBlinkFeatures
* docs: remove trailing comma
2021-03-15 10:29:10 +09:00
Binyamin Aron Green
a442f11574
fixed typo in docs/api/window-open.md ( #28117 )
2021-03-13 10:47:33 +09:00
Samuel Attard
74e7f98572
docs: fix cookies event documentation for type generation ( #28115 )
2021-03-11 12:14:16 -08:00
Milan Burda
5b205731f6
chore: remove deprecated remote module ( #25734 )
...
Co-authored-by: Jeremy Rose <jeremya@chromium.org>
2021-03-09 17:12:40 -08:00
Shelley Vohr
d9997c303f
fix: capturePage not resolving with hidden windows ( #27883 )
2021-03-09 05:51:44 -08:00
Konstantin Pschera
5b50c88508
docs: auto update downloading multiple times ( #27888 )
2021-03-08 10:03:34 +09:00
Erick Zhao
9ccb8f5910
docs: update WebPreferences default values for Electron 12 ( #27984 )
...
Updates the values for `contextIsolation` and `worldSafeExecuteJavaScript` for Electron 12.
2021-03-08 09:56:50 +09:00
Domenic Horner
46cfb347d7
docs: setWindowOpenHandler
should show object return ( #28015 )
...
* Should use object return
* Fix lint
Co-authored-by: Cheng Zhao <github@zcbenz.com>
2021-03-08 09:56:07 +09:00
Stathis Siatras
d92bab0e29
docs: suspend and resume are available on Linux ( #27958 )
...
* docs: suspend and resume are available on Linux
* docs: suspend and resume are available on Linux
2021-03-05 10:11:36 +09:00
Keeley Hammond
84d0e827a3
chore: revert webFrameMain.executeJavaScriptInIsolatedWorld method ( #27926 )
2021-03-01 10:07:25 -05:00
Jeremy Rose
2e13ce58c0
docs: fix header level of some events in app.md ( #27860 )
2021-02-24 18:04:41 +09:00
Michaela Laurencin
0dd283a7a6
docs: update menu item '&' escaping ( #27770 )
2021-02-19 15:41:16 +09:00
Dennis Keil
8a88799ce2
docs: transparent window opaque while dev tools opened ( #27705 )
...
* Transparent window disabled while dev tools opened
Read that on some external website. I think this should be added to the official docs.
* Update frameless-window.md
Co-authored-by: Cheng Zhao <github@zcbenz.com>
2021-02-15 11:59:40 +09:00
Samuel Maddock
3250ef551c
feat: support registering MV3 extension service workers ( #27562 )
...
* feat: support registering MV3 extension service workers
* feat: load chrome extension APIs in worker context
* feat: add more ContentRendererClient service worker overrides
* fix: lint error
* refactor: emit object for 'registration-completed'
* docs: clarify when registration-completed emits
2021-02-11 10:58:03 -05:00
Stewart Lord
5f5afaae27
feat: add win.setTopBrowserView()
so that BrowserViews can be raised ( #27007 )
...
* feat: Raise a browser view via `BrowserWindow.setTopBrowserView()`.
This is similar to removing and re-adding a browser view, but avoids a visible flicker as the browser view is not removed from the window when using `setTopBrowserView`. Note: if the given browser view is not attached to the window, it will be added.
This commit contains the macOS implementation.
* feat: setTopBrowserView support for Windows and Linux
* docs: add info about setTopBrowserView
* docs: Clarify behavior when browserView is not yet attached.
* fix: throw en error when browserView is not attached to the window
* fix: build error
* fix: test
* fix: add test case
* fix: tests
* fix: reparenting
* fix: close second window in tests
Co-authored-by: sentialx <sentialx@gmail.com>
2021-02-10 16:23:35 +09:00
Cheng Zhao
af4a050a1b
feat: add roundedCorners option for BrowserWindow ( #27572 )
...
* feat: add roundedCorner option for BrowserWindow
* Make roundedCorner work with vibrancy views
* roundedCorner => roundedCorners
2021-02-09 08:38:35 -08:00
Jeremy Rose
28599e5e7c
feat: add exit code to render-process-gone details ( #27580 )
2021-02-08 17:08:11 -08:00
Erick Zhao
affbf1b3e6
docs: remove v5 and v6 modernization docs ( #27498 )
...
* docs: remove v5 and v6 modernization docs
* typo
* run script/gen-filenames.ts
2021-02-03 15:57:33 +09:00
Cyrus Roshan
444ad26f89
feat: add option to not transform processes on win.SetVisibleOnAllWorkspaces ( #27200 )
...
* fix: optionally transform processes on win.SetVisibleOnAllWorkspaces on macOS, making it backwards-compatible with v9.2.1 (#27101 )
* fix: optionally transform processes on win.SetVisibleOnAllWorkspaces on macOS, making it backwards-compatible with v9.2.1 (#27101 )
Co-authored-by: Cyrus Roshan <cyrusroshan@users.noreply.github.com>
2021-02-02 21:24:04 +09:00
Ahmed Elshafey
272611cc82
docs: Update ipcMain.handle() docs in ipc-main.md for error-handling details ( #27461 )
...
* Update ipc-main.md
Include information about ipcMain.handle() error handling and workaround included in issue #24427
* Update ipc-main.md
fixed a typo
* Update ipc-main.md
Remove the exception passing workaround from ipcMain.handle() and refer to open issue only.
* Remove trailing spaces
Co-authored-by: Cheng Zhao <github@zcbenz.com>
2021-02-02 21:22:20 +09:00
Сковорода Никита Андреевич
a5e9af330f
feat: implement allowFileAccess loadExtension option ( #25198 )
...
Co-authored-by: Samuel Maddock <samuel.maddock@gmail.com>
Co-authored-by: Jeremy Rose <jeremya@chromium.org>
2021-02-01 14:41:08 -08:00
Cheng Zhao
8bf66f8974
fix: clean up implementations of titleBarStyle ( #27489 )
...
* Rewrite titleBarStyle impls with WindowButtonsView
* Remove fullscreenWindowTitle option
* Make buttons show correctly under RTL
* Fix docs about traffic lights position
* Fix test on fullscreen resizable
* Fix button states with closabe/minimizable/fullscreenable
* Fix typo
* Deprecate the fullscreenWindowTitle option
2021-01-30 17:15:10 -06:00
Erick Zhao
78d4cb9f5c
docs: update verb tenses for structured clone notes ( #27483 )
2021-01-26 14:14:44 -08:00
John Kleinschmidt
c5a41defbd
fix: enable navigator.setAppBadge/clearAppBadge ( #27067 )
2021-01-21 14:45:06 +09:00
Cheng Zhao
c3091c3a70
fix: make SetWindowButtonVisibility work for customButtonsOnHover ( #27073 )
2021-01-19 19:12:09 +09:00
Milan Burda
2be3d03630
feat: add webFrameMain.send() / webFrameMain.postMessage() ( #26807 )
2021-01-15 09:00:37 +09:00
Jeremy Rose
088f2e625f
feat: add frame and webContents to webRequest details ( #27078 )
...
* feat: add frame and webContents to webRequest details
* chore: use frame_converter.h
Co-authored-by: Cheng Zhao <zcbenz@gmail.com>
2021-01-11 12:20:43 +09:00
AHFriedman
1ef766c4a6
docs: correct meaning of DesktopCapturerSource.id ( #27255 )
...
* docs: correction meaning of DesktopCapturerSource.id
Corrected the meaning of the id string to match observed behavior
(verified on Windows 10 and Ubuntu).
* chore: adjust wordings
Co-authored-by: Cheng Zhao <zcbenz@gmail.com>
2021-01-11 12:20:00 +09:00
Jim Fisher
01b7ceac17
docs: coordinate system of badly named method getCursorScreenPoint ( #27156 )
...
* Document coordinate system of badly named method getCursorScreenPoint
[Electron inherits this confusing name from Chromium](99314be815/ui/display/win/screen_win.cc (L677-L681)
). We can also see there that the return value is a DIPPoint, due to `ScreenToDIPPoint` call:
gfx::Point ScreenWin::GetCursorScreenPoint() {
POINT pt;
::GetCursorPos(&pt);
return gfx::ToFlooredPoint(ScreenToDIPPoint(gfx::PointF(gfx::Point(pt))));
}
I lost over a day due to debugging this. I don't think we can change the method name due to backwards compatibility, but we can at least make amends in the documentation.
* Remove advice
* Softer wording
Co-authored-by: Cheng Zhao <zcbenz@gmail.com>
2021-01-11 12:19:48 +09:00
Jim Fisher
0f8b5ab606
docs: coordinate system of Display.bounds and Display.workArea ( #27157 )
...
They are in DIP points (rather than screen points). We can use
screen.dipToScreen* to convert to screen points.
2021-01-07 19:49:45 +09:00
theLMGN
b531123b4d
docs: NSVisualEffectMaterialDark has been deprecated and removed as of macOS 10.15 ( #27125 )
...
* NSVisualEffectMaterialDark has been deprecated and removed as of macOS 10.15.
* Update browser-window.md
2021-01-05 13:39:07 -08:00
Milan Burda
3d59aa5609
feat: add webFrameMain.executeJavaScriptInIsolatedWorld() ( #26913 )
2021-01-05 17:18:38 +09:00
Cheng Zhao
5f99569b6c
feat: make win.setAspectRatio() work on Windows ( #26941 )
...
* feat: make win.setAspectRatio() work on Windows
* update patches
Co-authored-by: Electron Bot <electron@github.com>
2021-01-05 17:17:33 +09:00
Milan Burda
16c864a932
docs: webFrameMain.fromId() can return undefined ( #27068 )
...
* docs: webFrameMain.fromId() can return undefined
* docs: webFrameMain.fromId() can return undefined
2021-01-05 11:31:21 +09:00
Jeremy Rose
c210956afb
docs: document frameId meaning ( #27072 )
2021-01-05 11:12:38 +09:00
Erick Zhao
4db3e3a08a
docs: update broken Chrome webview URL ( #27079 )
2021-01-04 12:48:35 -08:00
Electron Bot
8383c14aba
chore: bump chromium to 7264889ce3aad1568ff3d211c81fe (master) ( #27003 )
...
* chore: bump chromium in DEPS to 91c9f44297abe2844f593ec7956e6ce79c81f463
* chore: update chromium patches
* chore: update v8 patches
* build: service_names.mojom has been deleted
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2568681
* chore: add DISPLAY_CAPTURE permission to converter
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2551098
* chore: handle AXPropertyFilter::SCRIPT in accessibility_ui
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2563923
* refactor: web_isolated_world_ids.h has been deleted
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2585255
* refactor: ResourceType has been deprecated / removed in ExtensionsBrowserClient
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2562002
* chore: fix lint
* chore: remove deleted headers
* build: disable gn check for blink header
* fix: refactor X11 event handling
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2577887
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2585750
* chore: update patches
* chore: bump chromium in DEPS to bfd8e7dbd37af8b1bc40d887815edd5a29496fa3
* chore: update patches
* refactor: xeventobserver is now x11:eventobserver
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2585750
* refactor: remove UseWebUIBindingsForURL
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2583590
* chore: DidProcessXEvent has been removed
* chore: bump chromium in DEPS to b13e791d7244a08d9d61dbfa2bb2b6cdf1ff6294
* chore: update patches
* build: change gfx::GetAtom to x11:GetAtom
Refs: d972a0ae4a
* build: change gfx namespace to x11
Ref: d972a0ae4a
* build: change ui namespace to x11
Refs: c38f8571a8
:ui/gfx/x/xproto_util.h;dlc=ba9145d0c7f2b10e869e2ba482ca05b75ca35812
* chore: add patch to fix blink prefs fetching during frame swap
* chore: fix lint
* fix: do not make invalid SKImageRep in FrameSubscriber
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2572896
Co-authored-by: Samuel Attard <samuel.r.attard@gmail.com>
2020-12-22 14:14:44 -08:00
Eryk Rakowski
bf24759354
fix(extensions): implement missing web_request hooks ( #22655 )
...
Co-authored-by: Jeremy Apthorp <nornagon@nornagon.net>
Co-authored-by: samuelmaddock <samuel.maddock@gmail.com>
2020-12-18 15:11:43 -08:00
Gerrit Niezen
420eaaa294
docs: update select-serial-port example ( #26992 )
2020-12-16 16:57:28 +09:00
Shelley Vohr
9eab298779
feat: add missing 'context-menu' values ( #26788 )
...
* fix: add missing 'context-menu' values
* Add missing canSave
* Remove canTranslate
2020-12-16 14:32:11 +09:00
Cheng Zhao
e01b1831d9
feat: make trafficLightPosition work for customButtonOnHover ( #26789 )
2020-12-16 14:30:39 +09:00
Jeremy Rose
833baa4c54
fix: throw when using globalShortcut before ready ( #27002 )
2020-12-15 11:13:56 -08:00
Samuel Attard
b9c9e7fc06
feat: add support for DOM elements going over the context bridge ( #26776 )
...
* feat: add support for DOM elements going over the context bridge
* Update context-bridge.md
2020-12-10 13:03:00 -08:00
Milan Burda
cec6378881
feat: add event.senderFrame property returning the originating webFrameMain ( #26764 )
2020-12-09 15:34:06 -08:00
Jeremy Rose
07a1c2a3e5
fix: restrict sendToFrame to same-process frames by default ( #26875 )
2020-12-09 12:48:16 -08:00
Erick Zhao
e87061398b
docs: update OSR max FPS number ( #26805 )
2020-12-08 13:41:09 +09:00
Samuel Attard
771e34a53a
feat: route frame based permission checks through our permission check handler ( #19903 )
...
* feat: route frame based permission checks through our permission check handler
* docs: add change to setPermissionCheckHandler to breaking changes doc
2020-12-07 15:44:56 -08:00
Nikita Kot
7672aa9525
feat: exposeInMainWorld allow to expose non-object APIs ( #26594 )
2020-12-04 09:43:20 -08:00
Jim Fisher
430189fa84
docs: fix contentTracing code sample ( #26737 )
2020-12-01 15:45:45 -08:00
Shelley Vohr
94381cda49
docs: add debugging vars to env var doc ( #26743 )
2020-12-01 15:04:07 -08:00
Milan Burda
19954126e0
chore: remove deprecated extension APIs ( #26696 )
2020-11-30 14:40:56 -08:00
Milan Burda
09d7b2bc91
chore: remove deprecated shell.moveItemToTrash() ( #26723 )
2020-11-30 23:25:03 +03:00
Milan Burda
14c8e000cb
feat: add process.uptime() to sandboxed renderers ( #26684 )
2020-11-30 16:49:18 +09:00
Milan Burda
022bafc485
chore: remove deprecated crashReporter APIs ( #26695 )
2020-11-26 22:07:40 +03:00
David Sanders
87e20f2b97
chore: tidy up docs markdown ( #26666 )
2020-11-24 18:52:46 -08:00
David Sanders
e455a79218
chore: use relative links in docs ( #26360 )
2020-11-24 11:02:16 +09:00
Jeremy Rose
329494cfeb
fix: segfault on webContents.fromId(xxx) ( #26609 )
2020-11-23 09:21:00 -08:00
David Sanders
abb1504ecc
docs: use asterisks for unordered lists ( #26552 )
2020-11-23 12:15:27 -05:00
David Sanders
18f004eab1
docs: fix relative link ( #26585 )
2020-11-19 16:06:32 +09:00
David Sanders
03a70896c7
chore: tidy up markdown ( #26554 )
2020-11-18 20:58:47 -08:00
Shiranka Miskin
ec85a91472
docs: update contextIsolation documentation on access to globals ( #19732 )
2020-11-18 15:24:00 +09:00
LuoJinghua
e1cc78f275
feat: allow setting the Origin header and Sec-Fetch-* headers in net.request() ( #26135 )
2020-11-17 14:25:41 -08:00
Jeremy Rose
ead13791a8
fix: setCertVerifyProc canceling unrelated requests ( #26517 )
2020-11-17 11:12:50 -08:00
Jeremy Rose
040ee66678
docs: note about structured clone and DOM types ( #26516 )
2020-11-17 11:11:40 -08:00
Jeremy Rose
a9924e1c32
feat: add powerMonitor.onBatteryPower ( #26494 )
2020-11-16 16:31:46 -08:00
Shelley Vohr
6f6c1b7ca6
feat: add displayFrequency to Display object ( #26472 )
2020-11-16 15:33:51 -08:00
Samuel Attard
d6019634f9
feat: add app.runningUnderRosettaTranslation to detect running under rosetta ( #26444 )
...
* feat: add app.isRunningUnderRosettaTranslation to detect running under rosetta
* chore: fixup
* chore: make const
* chore: add missing import
2020-11-13 12:53:32 -08:00
Samuel Maddock
83d30c5c2a
feat: add 'resized' event to BrowserWindow ( #26216 )
...
Also adds 'moved' event to BrowserWindow on Windows.
2020-11-11 19:27:24 -05:00
Cheng Zhao
bb3fb548d8
feat: add APIs to enable/disable spell checker ( #26276 )
...
* feat: add APIs to enable/disable bulitin spell checker
* feat: add togglespellchecker menu item role
2020-11-11 10:29:18 -05:00
loc
0b85fdf26c
feat: add webContents.setWindowOpenHandler API ( #24517 )
...
Co-authored-by: Jeremy Rose <jeremya@chromium.org>
2020-11-10 09:06:03 -08:00
David Sanders
f21a21f172
chore: cleanup inline HTML in docs ( #26354 )
2020-11-09 16:52:06 -05:00
David Sanders
43dbd1bdf8
chore: cleanup whitespace in docs ( #26356 )
2020-11-05 14:12:43 -08:00
David Sanders
34feaf1df0
docs: link ProtocolResponseUploadData ( #26294 )
2020-11-02 19:01:46 +09:00
David Sanders
ecd23bb29b
docs: tidy up links ( #26292 )
2020-11-02 18:58:14 +09:00
Antonio
6017a0de88
docs: revised dark mode feature page ( #26187 )
...
* docs: revised dark mode page
* docs: fixed lint errors in dark mode page
* docs: fixed mentions, revised doc structure in the dark mode feature page
* docs: fixed mentions, made all the steps more verbose in the dark mode feature page
2020-11-02 16:18:29 +09:00
John Kleinschmidt
7f9b21daa0
feat: correctly identify permissions when using setPermissionRequestHandler ( #26172 )
...
* fix: correctly identify clipboard read permission
* Update tests for variable clipboard content
* chore: add all possible permission conversions
* VIDEO_CAPTURE and AUDIO_CAPTURE were already defined
* Handle all PermissionTypes
* use skewer case for accessibility events to match permissions api
https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API
2020-10-29 14:22:32 -04:00
Milan Burda
d2727f5aba
feat: add support for UNNotificationResponse in app 'ready' event ( #25950 )
2020-10-28 04:25:10 +03:00
LuoJinghua
201fc11b4b
feat: Added support for all proxy modes ( #24937 )
...
* feat: Added support for all proxy modes
This commit extended setProxy to support all proxy modes including
direct, auto_detect, pac_script, fixed_servers and system.
* feat: New api for reload proxy configurations
2020-10-27 15:50:06 +09:00
Milan Burda
184bccdc7d
docs: fix app 'ready' event arguments ( #26171 )
2020-10-27 00:43:27 +03:00
Milan Burda
aa157c3f05
feat: add osProcessId / name properties to webFrameMain ( #26093 )
...
* feat: add osProcessId / name properties to webFrameMain
* Update docs/api/web-frame-main.md
Co-authored-by: Jeremy Rose <jeremya@chromium.org>
Co-authored-by: Jeremy Rose <jeremya@chromium.org>
2020-10-26 06:03:34 +03:00
Samuel Maddock
10a209ecba
feat: add webPreferences.enablePreferredSizeMode ( #25874 )
...
* feat: add preferredSizeMode preference
* docs: webPreferences.preferredSizeMode and event
* docs: better explain preferred size
* docs: small improvement
* refactor: preferredSizeMode -> enablePreferredSizeMode
2020-10-21 15:44:19 -07:00
Jeremy Rose
22cb3cd18b
feat: add disabledCipherSuites option to setSSLConfig ( #25818 )
2020-10-21 11:03:59 -07:00
Cheng Zhao
a631a8a8b0
docs: put required field frontmost in the dialog options ( #26059 )
2020-10-21 20:07:44 +09:00
Milan Burda
df1432a315
feat: add net.online / net.isOnline() ( #21004 )
2020-10-20 19:55:06 -07:00
David Sanders
e6f570d191
docs: improve relative link linting and fix broken ( #26020 )
2020-10-20 10:46:27 +09:00
Cheng Zhao
6b6ffbdd10
feat: add support for share menu on macOS ( #25629 )
2020-10-19 18:33:06 -07:00
Milan Burda
decb1eb87b
feat: add serviceName to 'child-process-gone' / app.getAppMetrics() ( #25975 )
2020-10-19 14:55:47 +03:00
Lishid
05b5c197ae
feat: Expose renderer spellcheck API ( #25060 )
2020-10-19 20:48:16 +09:00
Ben Russert
bf68405a2f
feat: support exclude from capture on Windows ( #24274 )
...
* feat: support exclude from capture on Windows
Check for WDA_EXCLUDEFROMCAPTURE support, and fallback to WDA_MONITOR. Windows versions that support exclude from capture will exclude the window entirely when `setContentProtection` is enabled similar to how Mac behaves. Fall back to `WDA_MONITOR` for windows verisions that do not support.
This flag is mentioned at the very end of a Microsoft blog post here: https://blogs.windows.com/windowsdeveloper/2019/09/16/new-ways-to-do-screen-capture/
Use WDA_EXCLUDEFROMCAPTURE for content protection on windows
Starting with Windows 10, version 2004 this will exclude a window similar to the expected behavior on mac. It is safe to use WDA_EXCLUDEFROMCAPTURE on older Windows versions, as it will still behave as if WDA_MONITOR is applied.
https://github.com/microsoft/Windows.UI.Composition-Win32-Samples/issues/64#issuecomment-697074762
See the docs here: https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowdisplayaffinity
* docs: update setContentProtection docs
Update `setContentProtection` docs with `WDA_EXCLUDEFROMCAPTURE` info. This is to support screen capture fully excluding a particular window instead of showing it as a black screen.
2020-10-16 20:02:49 +09:00
Electron Bot
46f3491c7d
chore: bump chromium to 6b9fa6b352d824d052222e1abe541 (master) ( #25558 )
...
* chore: bump chromium in DEPS to d5c9bf9e2a18fa508201a88e5803bec1d107b1ae
* chore: bump chromium in DEPS to 45f1316afae33e52c92480b34bf4f7fe4a7db898
* update patches
* WillCreateURLLoaderFactory now gets a ukm_source_id
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2346803
* ink_drop_visible_opacity -> GetInkDropVisibleOpacity
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2415368
* chore: bump chromium in DEPS to ddb5b6db5e35ab1a7b5adbd9f15373af6c35ea2a
* 2418471: PDF Viewer update: Add missing aria-labels to various buttons.
https://chromium-review.googlesource.com/c/chromium/src/+/2418471
* update printing.patch given print settings mojoification
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2409467
* update patches
* content::BluetoothChooser::Event -> content::BluetoothChooserEvent
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2387901
* set_ink_drop_base_color -> SetInkDropBaseColor
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2419388
* chore: bump chromium in DEPS to ecf7c9ee830d4d85f300b461a2fa13aa40c79a4c
* update patches
* gfx::ConvertPointToPixel -> gfx::ConvertPointToPixels
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2418568
* remove ContentSettingsObserver::AllowStorage()
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2401847
* service_manager::kCrashDumpSignal -> kCrashDumpSignal
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2417073
* chore: bump chromium in DEPS to abdb7ebe5f8c8328b8f435283df90d0a3ecff7bd
* chore: bump chromium in DEPS to 2a7e138ab1066534ceb2622e8a9d2c8ebf574215
* chore: bump chromium in DEPS to ab1884e75ced904e4276851eb4e1ad89919ca93b
* chore: bump chromium in DEPS to a12413902380dcc2a73ac74d582328280a8af686
* Fixup printing patch
https://chromium-review.googlesource.com/c/chromium/src/+/2428623
* Fixup OSR patch
https://chromium-review.googlesource.com/c/chromium/src/+/2415128
* Make ExtensionURLLoaderFactory always owned by its |receivers_|.
https://chromium-review.googlesource.com/c/chromium/src/+/2357523
* Add deprecated_default_sources_assignment_filter variable
https://chromium-review.googlesource.com/c/chromium/src/+/2416496
* Fixup patch indices
* Remove several references to BrowserPlugin from content
https://chromium-review.googlesource.com/c/chromium/src/+/2401031
* Remove SurfaceEmbeddingTime and LocalSurfaceIdAllocation
https://chromium-review.googlesource.com/c/chromium/src/+/2415128
* Add DragOperation and AllowedDragOperations Mojo types
https://chromium-review.googlesource.com/c/chromium/src/+/2196167
* chore: bump chromium in DEPS to 378450342cf6aa160663d0ce3a178a11b570c25a
* Fixup patch indices
* Remove SurfaceEmbeddingTime and LocalSurfaceIdAllocation
https://chromium-review.googlesource.com/c/chromium/src/+/2415128
* Add DragOperation and AllowedDragOperations Mojo types
https://chromium-review.googlesource.com/c/chromium/src/+/2196167
* 2426564: Remove global sources assignment filter value
https://chromium-review.googlesource.com/c/chromium/src/+/2426564
* Fixup blink_local_frame.patch
* [XProto] Remove a subset of ui/gfx/x/x11.h
https://chromium-review.googlesource.com/c/chromium/src/+/2430328
* Fixup patch indices
* Remove several references to BrowserPlugin from content
https://chromium-review.googlesource.com/c/chromium/src/+/2401031
* Remove lossy ConvertSizeToPixel() methods
https://chromium-review.googlesource.com/c/chromium/src/+/2419534
* serial: Use USB driver name to disambiguate ports
https://chromium-review.googlesource.com/c/chromium/src/+/2413176
* Remove set_sources_filter import
* Fix ModMask usage
* [XProto] Remove usage of all Xlib headers
https://chromium-review.googlesource.com/c/chromium/src/+/2392140
* [XProto] Remove usage of Xlib Visuals
https://chromium-review.googlesource.com/c/chromium/src/+/2429933
* Skip Angle manifest file
https://chromium-review.googlesource.com/c/angle/angle/+/2425197
* Add whole src\third_party\angle\.git directory
This directory is needed in order to properly generate gen/angle/angle_commit.h
* [libvpx] Fix HighBD config on Windows ARM64
https://chromium-review.googlesource.com/c/chromium/src/+/2437745
* update patches
* fix: correct calling convention for Windows on Arm
https://chromium-review.googlesource.com/c/v8/v8/+/2440717
* Add third_party/angle/.git to the archive before adding the rest of the source
* fixup source caching on Windows
* Fixup erroneous close paren
* fixup for goma issues
* This should work
* chore: bump chromium roll manually
https://chromium-review.googlesource.com/c/chromium/src/+/2435142
This landed the day after we paused roller-bot and may resolve the
visibility test flakes that we're seeing. h/t to @jkleinsc for
finding this with me.
* chore: remove obsoleted cherry-pick fix for libvpx
https://chromium-review.googlesource.com/c/chromium/src/+/2437745
* chore: remove obsoleted cherry-pick libvpx patch
https://chromium-review.googlesource.com/c/chromium/src/+/2437745
* chore: re-export patches
* chore: add tracer comment to visibility-stat-spec.
The line numbers between the source and the CI runs don't seem to match
up, so this temp tracer is to help track the source of that difference.
* chore: bump chromium in DEPS to 7c2b8cc3b8638aee8abeb013042a6c1d15b2da6b
* update patches
* impl SortingLSH service
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2425327
* 2446525: [Flash] Remove some Flash APIs
https://chromium-review.googlesource.com/c/chromium/src/+/2446525
* 2440974: Reland "Delete service_manager/embedder/switches.h"
https://chromium-review.googlesource.com/c/chromium/src/+/2440974
* 2359402: Remove ContentBrowserClient::NonNetworkURLLoaderFactoryDeprecatedMap.
https://chromium-review.googlesource.com/c/chromium/src/+/2359402
* 2250506: Implement tabs.removeCSS
https://chromium-review.googlesource.com/c/chromium/src/+/2250506
* 2429143: Remove implicit-conversion-to-integer ConvertRectToPixel() methods.
https://chromium-review.googlesource.com/c/chromium/src/+/2429143
* 2444430: Remove DataElementType::kBlob
https://chromium-review.googlesource.com/c/chromium/src/+/2444430
* 2441964: Clean up WebView public API
https://chromium-review.googlesource.com/c/chromium/src/+/2441964
* 2357523: Make ExtensionURLLoaderFactory always owned by its |receivers_|.
https://chromium-review.googlesource.com/c/chromium/src/+/2357523
* 2461606: Use blink::mojom::PreferredColorScheme instead of blink::PreferredColorScheme
https://chromium-review.googlesource.com/c/chromium/src/+/2461606
* 2461235: a11y inspect reorg: move PropertyFilter struct to a new location
https://chromium-review.googlesource.com/c/chromium/src/+/2461235
* remove flash support
* fix frame_host_manager patch
* fix lint
* remove flash info from docs
* fix build
* fix osr
* chore: bump chromium in DEPS to 9269f9eb1d98d29564c2b2ab97f30c6e148c4e11
* fix visibilityState tests
* 2463049: Replace all uses of web_pref::AutoplayPolicy with mojom::AutoplayPolicy
https://chromium-review.googlesource.com/c/chromium/src/+/2463049
* update patches
* fix tests harder
* 2414921: Add Group and Ungroup functions to Tabs extension API
https://chromium-review.googlesource.com/c/chromium/src/+/2414921
* more test fix
* Remove all keyboard related usage of Xlib
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2436787
* fix linux build
* 2453807: [XProto] Remove usage of Xlib error handling
https://chromium-review.googlesource.com/c/chromium/src/+/2453807
* lint
* fixup! 2453807: [XProto] Remove usage of Xlib error handling
* disable CalculateNativeWinOcclusion on win ci
* remove UploadBlob from docs
* Update appveyor.yml
Co-authored-by: Andy Locascio <andy@slack-corp.com>
Co-authored-by: John Kleinschmidt <jkleinsc@github.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
Co-authored-by: Jeremy Rose <nornagon@nornagon.net>
Co-authored-by: Electron Bot <anonymous@electronjs.org>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
Co-authored-by: Samuel Attard <samuel.r.attard@gmail.com>
Co-authored-by: Jeremy Rose <jeremya@chromium.org>
2020-10-15 18:30:41 -07:00
Milan Burda
beaed6c434
docs: fix protocol.registerFileProtocol() usage in session.md ( #25949 )
2020-10-15 11:11:14 -07:00
Antonio
8dfb1cf78f
docs: revised version of the quick start guide ( #25760 )
2020-10-13 13:15:40 -07:00
Samuel Maddock
704d69a8f9
feat: add webFrameMain API to the main process ( #25464 )
2020-10-09 09:50:46 -07:00
Erick Zhao
3402fe712c
docs: update link to did-fail-load
events ( #25794 )
...
* docs: update link to `did-fail-load` events
* Update docs/api/web-contents.md
Co-authored-by: Vlad Hashimoto <hashimoto.stream@gmail.com>
Co-authored-by: Vlad Hashimoto <hashimoto.stream@gmail.com>
2020-10-09 19:59:43 +09:00
David Sanders
6677c5064f
docs: fix typos ( #25808 )
2020-10-09 19:56:07 +09:00
Samuel Attard
6d5cf02abd
feat: add support for preventing the system context menu ( #25795 )
2020-10-08 15:45:05 -07:00
LuoJinghua
e4213e326b
feat: add ability to close connections for a session ( #24945 )
...
These methods are needed for closing all idle and in-flight connections after
switching to another proxy from same origin for a session, otherwise
these connections may be reused for future requests which is
unexpected for most of users.
2020-10-08 09:45:36 -07:00
Egor Stronhin
125c5a6e9b
docs: end listener must be placed before data listener ( #25568 )
2020-10-06 10:27:30 +09:00
David Sanders
9717dff4fa
docs: link ProtocolRequest doc ( #25761 )
2020-10-05 11:18:18 -04:00
Samuel Attard
a189dc779e
feat: add webContents.forcefullyCrashRenderer() to forcefully terminate a renderer process ( #25580 )
...
* feat: add webContents.forcefullyCrashRenderer() to forcefully terminate a renderer process
* chore: fix up docs and tests
2020-10-02 14:50:24 -07:00
Milan Burda
5387b5b9b2
docs: rename launch-failure -> launch-failed to match C++ code ( #25726 )
2020-10-01 22:34:42 +02:00
bitdisaster
b43859f098
feat: custom toast xml and failure reporting for notifications ( #25401 )
...
* allow custom toast xml and report failures
* docs
* tests
* don't use namespaces
* lint doesn't like trailing commas
* addressing feedback
2020-09-29 12:20:10 -07:00
Jeremy Rose
0e7d59dd79
feat: [net] add "credentials" option to net.request ( #25284 )
...
* feat: [net] add "credentials" option to net.request
* remove debugging log
* add tests
2020-09-29 12:03:33 -04:00
Cheng Zhao
8970c80520
docs: command line flags for GPU controls ( #25589 )
2020-09-29 11:49:09 -04:00
Jeremy Rose
ac25f4d2ff
docs: clarify example in message-channel-main ( #25625 )
2020-09-28 10:58:32 -07:00
John Kleinschmidt
fd63510ca9
feat: add serial api support ( #25237 )
...
* feat: add serial api support
resolves #22478
* Put serial port support behind a flag and mark as experimental
* Update docs/api/session.md
Co-authored-by: Jeremy Rose <jeremya@chromium.org>
* Use enable-blink-features=Serial instead of enable-experimental-web-platform-features
* Set enableBlinkFeatures on webPreferences instead of commandline
Co-authored-by: Jeremy Rose <jeremya@chromium.org>
2020-09-28 12:22:03 -04:00
Jeremy Rose
3ceaf4aa54
docs: document process.crashReporter apis in node children ( #25579 )
2020-09-24 08:22:50 -07:00
Jeremy Rose
27ea3fc069
feat: allow setting SSL config ( #25461 )
...
* feat: allow setting SSL config
* lint
* configure system network context with min TLS1.2
* fix
* note defaults
2020-09-23 16:22:10 -04:00
Samuel Maddock
9d0d9a1664
feat(extensions): expose ExtensionRegistryObserver events in Session ( #25385 )
...
* feat(extensions): expose ExtensionRegistryObserver events in Session
Extensions can be loaded and unloaded for various reasons. In some cases this can
occur by no means of the Electron programmer, such as in the case of chrome.runtime.reload().
In order to be able to manage state about extensions outside of Electron's APIs, events
reloaded to loading and unloaded are needed.
* docs(extensions): elaborate on extension-loaded/unloaded details
* fix: remove scoped extension registry observer
* docs: update extension-unloaded
2020-09-23 15:29:08 -04:00
liulun
6aaaabd90f
docs: add more info about downloadItem.setSavePath api ( #25402 )
...
* docs: add more info about downloadItem.setSavePath api
add more info about downloadItem.setSavePath api
* Update docs/api/download-item.md
^_^
Co-authored-by: Samuel Attard <samuel.r.attard@gmail.com>
Co-authored-by: Samuel Attard <samuel.r.attard@gmail.com>
2020-09-23 11:02:05 +09:00
Milan Burda
29c6864ee1
docs: remove unused StreamProtocolResponse / StringProtocolResponse ( #25573 )
2020-09-23 10:48:22 +09:00
Jaroslav Maslo
4f54d71518
docs: fix incorrect dialog.showMessageBox() docs ( #25549 )
2020-09-23 10:35:00 +09:00
dmitryk
0d72bf3ed2
docs: remove deprecated options for the findInPage method. ( #25574 )
2020-09-22 11:55:56 -07:00
Shelley Vohr
6acf34fa4c
feat: add macOS fast user switching evt ( #25321 )
2020-09-22 10:12:39 -07:00
Cheng Zhao
c50ded2b71
feat: add BrowserWindow.isTabletMode API ( #25209 )
2020-09-22 14:40:42 +09:00
bitdisaster
2cfa41e6e0
feat: read/write Toast Activator CLSID in shortcuts ( #25493 )
...
* read/write Toast Activator CLSID
* docs
* tests
* tweaks
2020-09-17 15:17:44 -07:00
Shelley Vohr
77038b7bda
chore: upgrade to Node.js v14.9.0 ( #25249 )
2020-09-17 16:08:57 -06:00
Jeremy Rose
a200b15600
docs: update menu example to avoid remote ( #25291 )
2020-09-16 14:32:32 -07:00
Samuel Maddock
45170fdbd7
fix(extensions): define platform info to prevent renderer crash ( #25357 )
2020-09-15 10:29:32 -06:00
Jeremy Rose
9f4a097e03
feat: remove getMediaSourceIdForWebContents() ( #25414 )
...
This reverts commit 204f001c5d
.
2020-09-14 10:38:05 -07:00
Jeremy Rose
5de7eb3618
docs: remove references to remote from docs ( #25416 )
2020-09-14 10:36:54 -07:00
Jeremy Rose
4dc09ea9dc
feat: [crashReporter] enable compression by default ( #25288 )
2020-09-03 12:43:58 -07:00
Jeremy Rose
1b6534b326
feat: add shell.trashItem() to replace shell.moveItemToTrash() ( #25114 )
2020-09-02 10:32:33 -07:00
morgan-sam
e0611d0946
docs: setZoomLevel chromium zoom policy ( #25105 )
2020-09-02 10:06:58 +09:00
Eryk Rakowski
3745b76da8
feat(extensions): add support for some chrome.management APIs ( #25098 )
...
* fix: initialize management policy
* fix(extensions): crash when using chrome.management
* test: add tests
* docs: add a note about chrome.management
* fix: lint errors
* fix: lint errors
* fix: remove favicon_service include
* fix: add missing management permission
* docs: more supported apis
* fix: extensions.md line endings
2020-09-02 09:59:56 +09:00
Jeremy Rose
bf7dbff858
docs: note remote deprecation in docs/api/remote ( #24941 )
2020-08-31 11:27:00 -07:00
Cheng Zhao
e06a1c2746
docs: fix supported platforms of powerMonitor ( #25149 )
2020-08-31 16:46:10 +09:00
Shelley Vohr
a4b6fce907
fix: honor pageRanges when printing ( #25064 )
2020-08-27 20:21:29 -07:00
Shelley Vohr
c8a0b2b71d
fix: prevent crash if BrowserView webContents was destroyed ( #25112 )
2020-08-25 20:04:13 -07:00
Keeley Hammond
7704954505
docs: add restricted header info to ClientRequest docs ( #25075 )
...
* docs: add restricted header info to docs
* docs: clarify header language
Co-authored-by: Jeremy Rose <nornagon@nornagon.net>
Co-authored-by: Jeremy Rose <nornagon@nornagon.net>
2020-08-25 20:29:58 +09:00
George Xu
beaf60de0a
feat: add nativeImage.createThumbnailFromPath API ( #24802 )
...
* initial commit, mac implementation
* add documentation
* convert createThumbnailFromPath to async function
* windows impl protoype
* add tests
* added test
* fix
* fix test
* clean up
* update docs
* cleaning up code
* fix test
* retrigger CI
* retrigger CI
* refactor from app to native_image
* windows build
* lint
* lint
* add smart pointers, fix test
* change tests and update docs
* fix test, remove nolint
* add renderer-main process routing to fix tests
* lint
* thanks sam
* thanks sam
2020-08-24 09:36:13 -07:00
Shelley Vohr
024ea32313
feat: make window visual effect state customizable ( #25083 )
2020-08-24 11:44:48 -04:00
Alfred Xing
a23c66e4e1
feat: allow monospaced font styles to be specified for macOS tray titles ( #25059 )
...
* feat: add optional font type to macOS tray title
* test: add tests for tray font type
* docs: update API reference for Tray setTitle
* review: change API to use an options object
* review: fix string enum in docs
Co-authored-by: Samuel Attard <samuel.r.attard@gmail.com>
* review: return after throwing errors
* review: don't need thrower anymore now that we have args
Co-authored-by: Samuel Attard <samuel.r.attard@gmail.com>
2020-08-23 14:39:29 -07:00
shur
a17e97c3b2
feat: expose currencyCode on Product struct in IAP module ( #25058 )
...
Co-authored-by: Shur Singh <ssingh@evernote.com>
2020-08-21 10:41:40 -07:00
Charles Kerr
d9a1c453ab
fix: revert 6ecf729
to fix Linux titlebar dark mode ( #25055 )
...
Fixes #24741
2020-08-20 16:53:06 -04:00
Shelley Vohr
53668445ba
feat: reinvigorate visibleOnFullscreen option ( #24956 )
2020-08-19 13:31:25 -07:00
GitHubPang
5c5e006e46
docs: fix typos ( #24982 )
...
* docs: sync table of content from pull-requests.md to CONTRIBUTING.md
This also fixes some incorrect / dead links.
* docs: fix a bunch of typos
2020-08-18 16:55:16 +09:00
Vlad Hashimoto
b55e8dc578
docs: update default value for enableRemoteModule
in BrowserWindow ( #24955 )
2020-08-18 16:54:47 +09:00
GitHubPang
47f88b65b7
docs: fix typo in api/ipc-renderer ( #24901 )
2020-08-11 07:31:38 -07:00
Jeremy Rose
b5cd9ce0b3
refactor: ginify WebContents ( #24651 )
2020-07-30 09:17:57 -07:00
Jeremy Rose
d93bb34ac4
fix: increase max crash key value length ( #24782 )
...
* fix: increase max crash key value length
* chore: fix linting
* chore: fix linux
* Update spec-main/api-crash-reporter-spec.ts
Co-authored-by: Jeremy Rose <jeremya@chromium.org>
Co-authored-by: Samuel Attard <samuel.r.attard@gmail.com>
Co-authored-by: Samuel Attard <sattard@slack-corp.com>
2020-07-29 19:04:04 -07:00
George Xu
1b175a0609
feat: add capabilities to app.getLoginItemSettings() and app.setLoginItemSettings() ( #24494 )
...
* fixed
* semantic commit
* add comments to browser.h
Co-authored-by: Samuel Attard <samuel.r.attard@gmail.com>
2020-07-29 10:08:37 -07:00
Samuel Attard
b500294c1d
feat: add worldSafe flag for executeJS results ( #24114 )
...
* feat: add worldSafe flag for executeJS results
* chore: do not log warning for webContents.executeJS
* Apply suggestions from code review
Co-authored-by: Jeremy Rose <jeremya@chromium.org>
* chore: apply PR feedback
* chore: split logic a bit
* chore: allow primitives through the world safe checl
* chore: clean up per PR feedback
* chore: flip boolean logic
* chore: update per PR feedback
* chore: fix typo
* chore: fix spec
Co-authored-by: Jeremy Rose <jeremya@chromium.org>
2020-07-23 14:32:20 -07:00
szTheory
3b250b649b
docs: fix role typos in startSpeaking/stopSpeaking ( #24550 )
2020-07-23 13:59:24 -07:00
Charles Kerr
00fc8066de
docs: clarify use of pageRanges when printing. ( #24694 )
...
Fixes #24684 -- the docs are slightly unclear about how pageRanges
should be used, e.g. whether the page indices are zero-based or
one-based.
2020-07-23 12:03:52 -07:00
Charles Kerr
cd805544d1
docs: update the URL for catapult's trace viewer. ( #24654 )
...
The old URL points to an archived repo. The updated URL points to the
catapult's landing page for trace-viewer.
2020-07-21 15:00:31 -07:00
szTheory
74e7f2773f
doc: fix typos in role values ( #24552 )
2020-07-21 08:59:20 -07:00
Cheng Zhao
a12602dbc3
docs: document missing permission types ( #24660 )
2020-07-21 07:49:37 -04:00
Erick Zhao
77eea08a54
docs: update webContents.send link in ipcMain docs ( #24245 )
2020-07-21 14:47:10 +09:00
Kriti Singh
86b441d599
docs: add descriptions for types of permissions ( #23781 )
2020-07-21 14:29:32 +09:00
Samuel Attard
682f78b9a8
test: add more auto updater tests for squirrel.mac ( #24611 )
2020-07-20 09:51:33 -07:00
Milan Burda
fa1323d6cd
feat: add child-process-gone event to app ( #24367 )
2020-07-20 10:34:16 -04:00
Samuel Attard
4c3da359fc
build: convert touch-bar to typescript ( #24511 )
2020-07-16 11:37:38 -07:00
Electron Bot
8bbdc224ac
chore: bump chromium to 6d130075d378a64187360ba4e7820 (master) ( #24256 )
...
* chore: bump chromium in DEPS to 7fb9778894d73378bff51087ce869ea5aa6e5d5d
* chore: bump chromium in DEPS to 83da426e53d423f0530fc23433b6d2c4d0548442
* update patches
* remove chromeos-only TtsControllerDelegate
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2255314
* SharedUserScriptMaster -> SharedUserScriptManager
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2258357
* avoid deprecated DISALLOW_COPY_AND_ASSIGN
https://groups.google.com/a/chromium.org/forum/#!msg/cxx/qwH2hxaEjac/TUKq6eqfCwAJ
* chore: bump chromium in DEPS to b2eaf9ff4e6b03267bf279583ea20ceb2b25e9d0
* update patches
* rename GetHighContrastColorScheme -> GetPlatformHighContrastColorScheme
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2250224
* remove vulkan info collection
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2252818
* add max_xcode_version build var
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2264867
* add missing headers
* chore: bump chromium in DEPS to cded18ca1138f7e8efc904f077ddcca34f0135cf
* update patches
* add empty floc blocklist to BrowserProcessImpl
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2240873
* chore: bump chromium in DEPS to f06602226cd80bf677b2ce013a94a2fb7f6ac58d
* chore: bump chromium in DEPS to 747aa4bfc74fc6cf7f08ee72624cd69ae41ae28d
* chore: bump chromium in DEPS to 31c0105e50fcc4e94de33e5c8602c755ace4a32b
* chore: update patches
* Reland "[base] Stop including check.h, notreached.h, etc. in logging.h"
https://chromium-review.googlesource.com/c/chromium/src/+/2264297
* X11 and Ozone: make sure gfx::AcceleratedWidget to be uint32_t
https://chromium-review.googlesource.com/c/chromium/src/+/2260554
* Move zygote from //services/service_manager back to //content
https://chromium-review.googlesource.com/c/chromium/src/+/2252466
* chore: update v8 patches
* [XProto] Remove usage of Shape extension
https://chromium-review.googlesource.com/c/chromium/src/+/2262113
* fixup! add empty floc blocklist to BrowserProcessImpl
* Require macOS 10.15.1 sdk
https://chromium-review.googlesource.com/c/chromium/src/+/2238504
* Use newer Xcode version 11.5.0
* update src cache
* chore: bump chromium in DEPS to 60a9883e35db3f6f91916f0878e88e1849c17b11
* chore: update patches
* Reland "Reland "New toolchain for Windows 10 19041 SDK""
https://chromium-review.googlesource.com/c/chromium/src/+/2255527
* update patches
* Convert raw NonClientFrameViews to unique_ptrs
https://chromium-review.googlesource.com/c/chromium/src/+/2240417
* [printing] Move PrintHostMsg_DidPreviewDocument_Params to print.mojom
https://chromium-review.googlesource.com/c/chromium/src/+/2257035
* chore: bump chromium in DEPS to 12c233c2a85bfa28fb279f390121ba681e52a71b
* chore: update patches
* Removing oppressive language for the directory chrome/browser/apps
https://chromium-review.googlesource.com/c/chromium/src/+/2269822
* Inclusion: rename SpellcheckLanguageBlacklistPolicyHandler
https://chromium-review.googlesource.com/c/chromium/src/+/2267646
* Clean up duplicate WebContents "is fullscreen" functions
https://chromium-review.googlesource.com/c/chromium/src/+/2275148
* Adds icon loading service with sandbox for Windows.
https://chromium-review.googlesource.com/c/chromium/src/+/1987273
* No more Vulkan info collection for UMA on Windows
https://chromium-review.googlesource.com/c/chromium/src/+/2252818
* fix lint
* chore: update buildflag conditions
* chore: bump chromium in DEPS to a837d4c4230ace4f10b2768728f4044b7995dfa5
* update hunspell files
* chore: update patches
* Make content::FileSelectListener a RefCounted
https://chromium-review.googlesource.com/c/chromium/src/+/2275338
* fix build failures on MAS
* update patches
* fixup! Reland "[base] Stop including check.h, notreached.h, etc. in logging.h"
* fix build on windows
* Check for GDI exhaustion if window creation fails
https://chromium-review.googlesource.com/c/chromium/src/+/2244124
* chore: bump chromium in DEPS to 2c9b2a73be4ef9ec22d8b6da8e174cb80753f125
* chore: update patches
* Network Service: Move DeleteCookiePredicate into public folder
https://chromium-review.googlesource.com/c/chromium/src/+/2264186
* chore: bump chromium in DEPS to fa2606299bcc02c362528d26b5dcf8c8a0db0735
* chore: bump chromium in DEPS to d9c235d1227204dbae3708daae851573a3566b94
* chore: bump chromium in DEPS to 2f82c284243c035f49a747fd1ead6c44b4b31093
* chore: update patches
* Move creating the LayerTreeSettings into blink.
https://chromium-review.googlesource.com/c/chromium/src/+/2267720
* chore: bump chromium in DEPS to 914112f1d9af9e4974059dc403da62699a55550f
* update patches
* chore: bump chromium in DEPS to e0bc1ffae6393fc543a2da94c88167df75859b36
* refactor: match upstream print preview handling (#24452 )
* update patches
* chore: bump chromium in DEPS to 0881423156abe084164b51ab58ce93a8bd380524
* update patches
* update patches
* give a type to pendingPromise
* chore: bump chromium in DEPS to 11a8c1534b16d130075d378a64187360ba4e7820
* update patches
* 2272609: Move //services/service_manager/sandbox to //sandbox/policy.
https://chromium-review.googlesource.com/c/chromium/src/+/2272609
* update patches
* fixup! 2272609: Move //services/service_manager/sandbox to //sandbox/policy.
* fixup! 2272609: Move //services/service_manager/sandbox to //sandbox/policy.
* 2264511: Cookies: Update SetCanonicalCookie to return CookieAccessResult
https://chromium-review.googlesource.com/c/chromium/src/+/2264511
* chore: fix setAlwaysOnTop test
The window must be visible for state to be updated properly.
* Revert "Migrate modules/desktop_capture and modules/video_capture to webrtc::Mutex."
https://webrtc-review.googlesource.com/c/src/+/179080
* update patches
Co-authored-by: Andy Locascio <andy@slack-corp.com>
Co-authored-by: deepak1556 <hop2deep@gmail.com>
Co-authored-by: Samuel Attard <samuel.r.attard@gmail.com>
Co-authored-by: John Kleinschmidt <jkleinsc@github.com>
Co-authored-by: Electron Bot <anonymous@electronjs.org>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
Co-authored-by: Jeremy Rose <nornagon@nornagon.net>
Co-authored-by: Samuel Attard <marshallofsound@electronjs.org>
2020-07-13 21:13:34 -04:00
Sam Saccone
e18f508e66
docs: fix incorrect formatting in browser docs. ( #24473 )
...
Address incorrect typing for isEnabled. The root cause of this was due
to missing backticks which caused the docs parser to think that the
return type of the `isEnabled` function was null, where it was supposed
to be a boolean type.
The side effect of this was that the generated typescript typings were
incorrect for this function.
Fixes #24409
2020-07-10 13:57:29 -07:00
Shelley Vohr
6c4017ff45
fix: always callback error with invalid print settings ( #24476 )
2020-07-10 09:42:22 -07:00
Samuel Attard
eb6616e4e9
build: update to standard 14 ( #24479 )
2020-07-09 10:18:49 -07:00
Jeremy Rose
9bd0fc5348
refactor: ginify BrowserView ( #23578 )
2020-07-09 08:48:39 -07:00
Milan Burda
7fd96cd188
feat: add name to app.getAppMetrics() output ( #24359 )
2020-07-07 14:00:45 -04:00
Jeremy Rose
71a7e1b2e3
chore: tsify menu ( #24358 )
2020-07-06 13:24:54 -07:00
Milan Burda
82af855579
chore: add missing _Deprecated_ to 'renderer-process-crashed' on app ( #24410 )
2020-07-06 10:09:42 -07:00
Robo
d330c6f9fe
feat: expose sessionId in debugger module ( #24170 )
2020-07-02 13:04:20 -07:00
George Xu
ee61eb9aa4
feat: add app.getApplicationInfoForProtocol API ( #24112 )
...
* pre merge
* windows changes
* added tests
* clean up
* more cleanup
* lint error
* windows 7 support
* added windows 7 implementation
* code review
* lint and code review
* code review
* app.md merge conflict
* merge conflict app.md
accidently deleted code block
* 'lint'
* mis-moved getapplicationinfoforprotocol() into anonymous namespace
* fix test
* lint
* code review
2020-06-30 12:22:30 -07:00
Jeremy Rose
80e5007c47
chore: tsify browser-window ( #24326 )
...
* chore: tsify browser-window
* fix focus
* also tsify top-level-window
2020-06-29 10:22:55 +09:00
Milan Burda
9b4572de44
feat: implement systemPreferences.getMediaAccessStatus() on Windows ( #24275 )
2020-06-25 09:47:50 -07:00
Shelley Vohr
4290555a0d
feat: support suspend/resume on macOS ( #24254 )
2020-06-24 10:17:07 -07:00
Shelley Vohr
6369748a2a
feat: support suspend/resume on Windows ( #24251 )
2020-06-24 07:28:29 -07:00
Shelley Vohr
a54fcde3f4
docs: fix MenuItem click handler type ( #24147 )
2020-06-17 10:34:25 -07:00
Lukas Weber
cf284991d8
feat: Add did-become-active event on mac ( #23872 )
...
Co-authored-by: Lukas Weber <luweber@microsoft.com>
2020-06-16 10:03:41 -07:00
Jeremy Rose
d08cfce6cb
chore: use more inclusive language in a few places ( #24023 )
...
* chore: use more inclusive language in lint script
* whitelist -> allowed_extension_ids in plugin_utils
* some other places
2020-06-09 11:29:29 -07:00
Evgeny
aa32fbf1d6
docs: update setAboutPanelOptions iconPath description ( #23998 )
...
* Updated doc setAboutPanelOptions iconPath #23833
* Simplify docs
2020-06-08 17:46:25 -07:00
Paul Frazee
c6c022dc46
feat: add {stream} opt to custom protocol registry to configure media player ( #22955 )
2020-06-08 09:49:36 -07:00
Shelley Vohr
27d629abb9
fix: add missing isComposing KeyboardEvent property ( #23971 )
2020-06-05 15:18:20 -07:00
Robo
512e1541c6
fix: default to NTLM v2 in the network service for POSIX platforms ( #23846 )
...
* fix: default to NTLM v2 in the network service
* chore: update patch details
2020-06-02 12:58:00 -07:00
Samuel Attard
c36981da8b
docs: default of allowRendererProcessReuse is true ( #23888 )
2020-06-02 11:09:20 -07:00
Samuel Attard
d3fa5ed1e8
docs: move protocol-ns to protocol.md ( #23883 )
...
* docs: move protocol-ns to protocol.md
* chore: fix up tests and implement missing pieces required for tests
2020-06-02 09:46:18 -07:00
Robo
f67aff2704
feat: add V8CacheOptions webpreference ( #23842 )
...
* feat: add V8CacheOptions webpreference
* address review comments
2020-05-31 20:09:23 -07:00
Shelley Vohr
f78504515b
fix: handle asynchronous URL loading in bw proxy ( #23776 )
2020-05-27 13:50:54 -07:00
Jeremy Judeaux
204f001c5d
feat: add desktopCapturer.getMediaSourceIdForWebContents() to get stream source id from web contents ( #22701 )
...
* feat: add desktopCapturer.getMediaSourceIdForWebContents() to get stream source id from web contents
* Cleanup from #22701 PR comments
2020-05-26 16:34:24 -04:00
Florian Keller
82924679fe
docs: Explain console-message parameters ( #23661 )
2020-05-21 15:39:51 -07:00
Shelley Vohr
78d74bf8b4
fix: trigger about panel for about role on on win ( #23687 )
2020-05-21 15:38:26 -07:00
Cheng Zhao
ce77e3327c
docs: errors in isolated world are not dispatched ( #23653 )
2020-05-21 11:56:22 -04:00
mtgto
7b55a70a36
feat: Add Secure Keyboard Entry APIs in macOS ( #20678 )
...
* feat: Add Secure Keyboard Entry APIs in macOS
Add methods:
- app.isSecureInputEnabled()
- app.setSecureInputEnabled(enabled)
These enable to prevent other process listens keyboard input events.
* fix: lint error in app.md for #20678
* fix: crash app.setSecureInputEnabled() in password textfield
* fix: export Secure keyboard Entry API to only macOS
* fix: lint error in browser_mac.mm for #20678
* test: add test for app.setSecureKeyboardEntryEnabled in macOS
2020-05-21 11:53:44 -04:00
Shelley Vohr
21a6062a31
docs: document optional scaleFactor param to nativeImage fns ( #23671 )
2020-05-20 18:52:48 -07:00
Milan Burda
df53816eea
feat: expose the desktopCapturer module in the main process ( #23548 )
2020-05-20 20:25:49 -04:00
Jeremy Apthorp
27d7eb3880
docs: remove note about experimental nature of sandbox ( #23651 )
2020-05-19 10:17:31 -07:00
Jeremy Apthorp
87a670f74d
feat: allow compressing crash uploads on linux ( #23597 )
...
* chore: align crash patch with upstream
* feat: allow compressing crash uploads on linux
* update patches
Co-authored-by: Electron Bot <anonymous@electronjs.org>
2020-05-18 11:09:50 -04:00
Milan Burda
52b50e6b33
feat: add app render-process-gone event ( #23560 )
2020-05-17 17:05:05 +02:00
Milan Burda
4afc756094
feat: add contents.getBackgroundThrottling() + backgroundThrottling property ( #21036 )
2020-05-14 15:11:45 +02:00
Samuel Attard
54ff423dac
fix: leave behind the unmodified XDG_CURRENT_DESKTOP variable ( #23512 )
2020-05-12 20:13:53 -07:00
Felix Rieseberg
dcbed18f44
feat: app.getPath('recent') ( #23381 )
...
* feat: getPath("recent")
* test: Add a spec and docs
* fix: Integrate feedback
* fix: Handle path change
* chore: Cut SetRecentPath
2020-05-13 11:27:56 +09:00
Samuel Attard
34da3bc500
feat: add new render-process-gone event ( #23096 )
2020-05-11 13:42:24 -07:00
Robin Dupret
ce4d95b16a
docs: badgeCount needs notifications permission on macOS ( #23488 )
...
In order for `badgeCount` to properly update the dock icon on
macOS, the application needs to have the permissions to display
notifications.
Cross-refs #22715 .
2020-05-11 11:13:17 -07:00
Alexander Prinzhorn
ade8f285d0
Update mime-typed-buffer.md ( #23384 )
...
I think this should be aligned with `StringProtocolResponse`. At least the `charset` was missing from the docs.
https://www.electronjs.org/docs/api/protocol#protocolregisterbufferprotocolscheme-handler-completion
> should be called with either a Buffer object or an object that has the data, mimeType, and charset properties.
2020-05-11 19:00:38 +09:00
Jeremy Apthorp
06bf0d08dc
fix: crashReporter incompatible with sandbox on Linux ( #23265 )
2020-05-07 13:31:26 -07:00
Robo
a707a3eda3
feat: add enableWebSQL webpreference ( #23311 )
...
* feat: add enableWebSQL webpreference
* chore: update indexedDB test
2020-05-06 12:52:59 -07:00
Samuel Attard
096c799e24
docs: rename duplicated interface ( #23362 )
2020-04-30 10:20:34 -07:00
Sean Lee
3e5486323a
docs: event.newGuest for new-window in WebContents and webContents in BrowsweWindow's constructor ( #21698 )
...
* docs: `newGuest` in `WebContents` and `webContents` in `BrowsweWindow`
According to the example codes in the documentation of `new-window`
event in `WebContents`, `webContents` in `BrowsweWindow` constructor
options and `newGuest` in `event` argument of `new-window` handler are
both existing but documented. This patch is for adding the related
documentations. Also, it provides typescript-definitations for these
two properties.
* Remove the documnent of `webContents` in BrowserWindow constructor option.
2020-04-30 09:25:13 -07:00
szTheory
c68589f212
docs: menu-item.md remove duplicate options ( #23286 )
2020-04-27 12:05:58 -07:00
diegozhu
e5fe81ac15
docs: update description on second-instance event. ( #23119 )
...
* Update app.md
more descriptions on second-instance event.
* Update docs/api/app.md
Co-Authored-By: loc <andy@slack-corp.com>
Co-authored-by: Cheng Zhao <zcbenz@electronjs.org>
Co-authored-by: loc <andy@slack-corp.com>
2020-04-27 15:21:28 +09:00
Shelley Vohr
f3dc3997b1
feat: support fullScreen BrowserWindow property ( #23145 )
2020-04-20 20:25:18 -07:00
Shelley Vohr
656d371b1b
docs: fix devToolsWebContents union type ( #23143 )
2020-04-20 08:08:51 -07:00
Shelley Vohr
37e92b7650
docs: explain the swipe event on macOS ( #23117 )
2020-04-16 09:16:11 -07:00
Jeremy Apthorp
aeaccd00a2
feat: crashReporter: expose rateLimit and compress options ( #23062 )
2020-04-14 10:36:31 -07:00
CezaryKulakowski
c65f41dfbd
fix: don't assign NSAlert to window which is not visible ( #22672 )
...
* fix: don't assign NSAlert to window which is not visible
Without this change it's possible to create message box which can't
be dismissed on mac.
* fixup! fix: don't assign NSAlert to window which is not visible
* fixup! fix: don't assign NSAlert to window which is not visible
2020-04-13 17:25:55 +09:00
Samuel Attard
9fb06b923b
docs: fix type definition for setUserDefault ( #23002 )
2020-04-09 12:10:18 -07:00
Jeremy Apthorp
6bf83e9244
docs: note that shell can't be used in sandboxed renderers ( #22974 )
2020-04-07 09:55:01 -07:00
Samuel Attard
0d2e967960
feat: expose electron/{process} typed modules ( #22937 )
...
* feat: expose electron/{process} typed modules
* chore: update imports for common modules
* chore: update typescript generator
* chore: remap electron/* to the internal packages
2020-04-06 17:04:09 -07:00
Samuel Attard
1d158399a6
feat: expose the sameSite value for cookies ( #22789 )
...
* feat: expose the sameSite value for cookies
* Apply suggestions from code review
Co-Authored-By: Charles Kerr <ckerr@github.com>
* Apply suggestions from code review
Align with cookie samesite values for the extensions API
https://developer.chrome.com/extensions/cookies#type-SameSiteStatus
* chore: add tests for sameSite cookies get/set
* chore: update docs parser
* chore: update docs for MessageChannel and MessagePort to have correct process information
* chore: remove LOG warning
* chore: throw error if the string->samesite conversion fails
Co-authored-by: Charles Kerr <ckerr@github.com>
2020-04-02 11:28:43 -07:00
Samuel Attard
22fb4f85e5
docs: document what experimental means explicitly ( #22893 )
...
* docs: document what experimental means explicitly
* Apply suggestions from code review
Co-Authored-By: Jeremy Apthorp <jeremya@chromium.org>
* Update experimental.md
Co-authored-by: Jeremy Apthorp <jeremya@chromium.org>
2020-04-02 09:32:18 -07:00
Shelley Vohr
da67cbf551
feat: add property support for remainder of BrowserWindow ( #22771 )
...
Adds property-based support for the remainder of primitive gette/setter pairs on `BrowserWindow`.
Namely:
- `win.simpleFullScreen`
- `win.title`
- `win.visibleOnAllWorkspaces`
- `win.documentEdited`
- `win.representedFilename`
- `win.shadow`
- `win.kiosk`
- `win.menuBarVisible`
2020-04-01 08:22:32 -07:00
Jeremy Apthorp
5715e94db0
docs: clarify app.enableSandbox documentation ( #22894 )
2020-04-01 11:20:37 -04:00
Charles Kerr
33ef0d23a6
docs: minor grammar & spelling fixes ( #22851 )
...
* docs: fix minor grammar error 'punctuations'
* docs: fix minor grammar error pluralizing Chromium
* docs: fix typo 'updateCurrentActiviy'
* docs: use consistent spelling of 'behavior'
* docs: use 'macOS' instead of 'Mac OS' or 'OS X'.
* docs: use 'GTK' instead of 'GTK+'
https://mail.gnome.org/archives/gtk-devel-list/2019-February/msg00000.html
* docs: minor capitalization: use 'TCP' not 'tcp'
* Update docs/development/build-instructions-linux.md
Co-Authored-By: Mark Lee <malept@users.noreply.github.com>
Co-authored-by: Mark Lee <malept@users.noreply.github.com>
Co-authored-by: John Kleinschmidt <jkleinsc@github.com>
2020-03-31 13:06:25 +09:00
Samuel Attard
6ecf729487
feat: default gtk darkTheme option to nativeTheme.shouldUseDarkColors for better platform support ( #20138 )
...
* feat: default gtk darkTheme option to nativeTheme.shouldUseDarkColors for better platform support
* chore: update syntax for PR feedback
* refactor: only define SetGTKDarkThemeEnabled when needed
Co-authored-by: Cheng Zhao <zcbenz@gmail.com>
2020-03-30 15:02:16 +09:00
Heilig Benedek
74372d65ae
feat: enhance native window.open to match the custom implementation's behavior ( #19703 )
...
Co-authored-by: Andy Locascio <andy@slack-corp.com>
2020-03-26 11:05:45 -07:00
Jeremy Apthorp
07cd70a37e
refactor: ginify powerMonitor ( #22751 )
2020-03-24 09:03:29 -07:00
Samuel Attard
60bd52880f
feat: add support for net requests to use the session cookie store ( #22704 )
2020-03-20 15:56:02 -07:00
Jeremy Apthorp
c4a7eade28
refactor: ginify session.netLog ( #22732 )
2020-03-18 16:46:05 -07:00
Shelley Vohr
fc661ec56b
chore: update app module property support ( #22713 )
2020-03-18 10:06:41 -07:00
Thomas Levy
2fa499b682
docs: update type and description of IncomingMessage.headers ( #22522 )
...
* docs: update type and description of IncomingMessage.headers
Fixes #22521
Updates the docs for IncomingMessage.headers to match the changes made in #17517
* Update docs/api/incoming-message.md
Co-Authored-By: Mark Lee <malept@users.noreply.github.com>
Co-authored-by: Cheng Zhao <zcbenz@electronjs.org>
Co-authored-by: Mark Lee <malept@users.noreply.github.com>
2020-03-18 11:32:26 +09:00
Shelley Vohr
674e4a9fdd
chore: more modules to dual prop/fn support ( #22688 )
2020-03-17 18:06:52 -07:00
Shelley Vohr
97d8caa1e0
chore: support props/fns for BrowserWindow ( #22686 )
2020-03-16 14:03:35 -07:00
Shelley Vohr
a4c4c86b9d
fix: crash on invalid zoomFactor ( #22673 )
2020-03-13 16:13:05 -07:00
Shelley Vohr
1b353d1ed3
chore: revert deprecated WebContents properties ( #22640 )
...
* chore: revert deprecated WebContents properties
* Fix failing zoomFactor test
2020-03-13 10:16:08 -07:00
Jeremy Apthorp
0c02d794c9
feat: add onclose method to MessagePort ( #22532 )
...
* feat: add onclose method to MessagePort
* more scope, more good
* de-flake GC test
2020-03-13 10:00:50 -07:00
Jeremy Apthorp
b4d07f76d3
feat: MessagePorts in the main process ( #22404 )
2020-03-11 18:07:54 -07:00
Shelley Vohr
b724fbc0ed
feat: add force option to app.focus() ( #22612 )
2020-03-11 09:07:01 -07:00
Erick Zhao
34e004015d
feat: add API to check if session is persistent ( #22622 )
2020-03-11 16:02:22 +09:00
Erick Zhao
3ff98e15d0
fix: prevent in-memory sessions from writing to custom spellchecker dictionary ( #22157 )
...
* fix: prevent in-memory sessions from writing to custom dictionary
* docs
* spec
2020-03-10 16:45:43 +09:00
Samuel Attard
3e2cec83d9
feat: programmatically modify traffic light positioning ( #22533 )
...
* setter
* getter
* specs and docs
* fixup
Co-authored-by: Samuel Attard <samuel.r.attard@gmail.com>
2020-03-05 14:22:12 -08:00
Samuel Attard
1811751c6c
docs: clean up dark mode related docs ( #22489 )
...
* docs: clean up systemPreferences.effectiveAppearance text
* Grammar fixes
* Add links for Electron Packager & Electron Forge
* Update Packager API links, given https://github.com/electron/electron-packager/pull/1131
* docs: clean up Dark Mode guide
* Grammar fixes
* Add links for Electron Packager & Electron Forge
* docs: adjust based on Electron 8 using 10.14 SDK
2020-03-05 13:19:43 -08:00
Samuel Attard
b3e1134a1a
feat: add events for spellcheck dictionary downloads ( #22449 )
2020-03-05 11:58:19 -08:00
Shelley Vohr
e8c628ecdf
fix: bail early if no printers on the network ( #22418 )
2020-03-04 02:20:31 +00:00
bughit
84126a4f23
feat: optional typically sync callback for WebFrame#executeJavaScript* ( #21423 )
2020-03-02 16:11:40 -08:00
Samuel Attard
748a917ffd
docs: add documentation on case insensitive dictionary hosting ( #22483 )
2020-03-02 14:15:55 -08:00
Сковорода Никита Андреевич
d731a676f5
feat: add disableDialogs option to WebPreferences ( #22395 )
...
Allows to disable dialogs completely in a similar way of how safeDialogs option can be used. Overrides safeDialogs option.
2020-03-02 20:50:44 +00:00
Samuel Attard
0ea1985ec4
docs: improve documentation on spellchecker download URL ( #22383 )
...
* docs: improve documentation on spellchecker download URL
* Update session.md
2020-02-26 16:04:27 -08:00
Samuel Attard
7b7def7d1e
feat: set app.enableRendererProcessReuse to true by default ( #22336 )
...
* feat: set app.enableRendererProcessReuse to true by default
* chore: add context aware info to breaking changes doc
* spec: fix nodeIntegration in child windows test for rendererprocessreuse
* spec: fix remote listeners in destroyed renderers spec as the error is now async
* Update api-browser-window-spec.ts
* chore: deprecate affinity
* chore: fix docs
* spec: handle tests crashing without an exist code
* spec: update tests for new rendererprocessreuse default
* spec: with renderer process re-use we get to destroy less views
2020-02-24 18:11:06 -08:00
Erick Zhao
1848e3f658
feat: Add OtherItemsProxy TouchBar item ( #22270 )
...
* feat: Add OtherItemsProxy touchbar item
* review!
2020-02-24 17:55:06 +09:00
Samuel Maddock
68c6d53156
feat(extensions): add more properties to extension object ( #22244 )
2020-02-24 12:30:32 +09:00
John Kleinschmidt
e0c0875d6f
docs: update session.clearAuthCache ( #22292 )
...
* docs: update session.clearAuthCache
* Update specs to match doc change.
2020-02-21 13:40:45 -05:00
Samuel Attard
e7b0a9ca8f
feat: add API for receiving logs from service workers ( #20624 )
...
* feat: add API for receiving logs from service workers
* feat: add new serviceWorkerContext APIs
* chore: add missing #include's
* refactor: rename serviceWorkerContext to serviceWorkers
* chore: clean up based on review
* chore: remove native_mate
* chore: add tests for the service worker module
* Update spec-main/api-service-workers-spec.ts
Co-Authored-By: Jeremy Apthorp <jeremya@chromium.org>
* chore: fix linting
* chore: handle renames
Co-authored-by: Jeremy Apthorp <nornagon@nornagon.net>
2020-02-20 15:19:06 -08:00
Mark Lee
2e6fff885d
docs: clean up protocol docs ( #22262 )
...
* docs: clean up protocol docs
* Fix capitalization
2020-02-20 11:27:17 -06:00
Shelley Vohr
53b4fffff6
doc: remove accidental deprecation ( #22256 )
2020-02-18 21:36:57 +00:00
Cheng Zhao
c608d6d7fb
fix: make webRequest work with WebSocket ( #22040 )
...
* fix: web request support proxying websocket
* fix: make tests work
* chore: do not use api:: code outside api/ folder
* chore: do not create proxy when no listener
* test: use separate session to avoid conflicts
* chore: address review
2020-02-11 14:56:09 +09:00
Erick Zhao
9942149f3c
feat: add session.listWordsFromSpellCheckerDictionary API ( #22101 )
...
* doesn't work yet but compiles.
* works
* fixup
2020-02-10 14:08:53 -08:00
Erick Zhao
17abeca8b7
feat: add session.removeWordFromSpellCheckerDictionary API ( #22039 )
...
* feat: add session.removeWordFromSpellCheckerDictionary API
* rebase fixup
2020-02-10 14:07:25 -08:00
Jeremy Apthorp
af631f8204
fix: disallow loading extensions in temp sessions ( #22090 )
...
* fix: disallow loading extensions in temp sessions
* docs
2020-02-10 10:28:03 -06:00
CoderPoet
97cf24ac98
docs: modify the showMessageBox method to showMessageBoxSync ( #22080 )
...
In handling the will-prevent-unload event, preventDefault should be executed synchronously, and here should also be showMessageBoxSync
2020-02-10 17:12:30 +09:00
Shelley Vohr
83124889e5
feat: enable passing Node.js cli flags ( #21110 )
...
* feat: enable passing Node.js cli flags
* Allow cli flags in ELECTRON_RUN_AS_NODE mode
2020-02-07 02:59:38 +00:00
Jeremy Apthorp
eca1dd7f8b
docs: document supported extensions apis ( #22021 )
...
* docs: document supported extensions apis
* Update extensions.md
* Update README.md
* Apply suggestions from code review
Co-Authored-By: Mark Lee <malept@users.noreply.github.com>
Co-authored-by: Mark Lee <malept@users.noreply.github.com>
2020-02-06 16:36:02 -05:00
Erick Zhao
070e312e8b
docs: clarify requirements for GOOGLE_API_KEY ( #22034 )
...
* docs: clarify requirements for GOOGLE_API_KEY
* Update docs/api/environment-variables.md
Co-Authored-By: Mark Lee <malept@users.noreply.github.com>
* Update docs/api/environment-variables.md
Co-Authored-By: Mark Lee <malept@users.noreply.github.com>
* Update docs/api/environment-variables.md
Co-Authored-By: Mark Lee <malept@users.noreply.github.com>
* update
Co-authored-by: Mark Lee <malept@users.noreply.github.com>
2020-02-06 11:28:06 -06:00
Shelley Vohr
303ca10846
feat: allow macOS apps to set activation policies ( #21983 )
2020-02-05 19:12:25 +00:00
Shelley Vohr
928175bdfe
feat: allow specifying pageSize for print ( #22014 )
2020-02-05 04:25:02 +00:00
Charles Kerr
c83f836faf
refactor: prefer using app.whenReady() ( #21972 )
...
* docs: add references to app.whenReady() in isReady
* refactor: prefer app.whenReady()
In the docs, specs, and lib, replace instances of `app.once('ready')`
(seen occasionally) and `app.on('ready')` (extremely common) with
`app.whenReady()`.
It's better to encourage users to use whenReady():
1. it handles the edge case of registering for 'ready' after it's fired
2. it avoids the minor wart of leaving an active listener alive for
an event that wll never fire again
2020-02-03 22:43:22 +00:00
Jeremy Apthorp
a061c87e56
feat: enable native extensions support ( #21814 )
2020-02-03 14:01:10 -08:00
bitdisaster
89eb309d0b
feat: allow GUID parameter to avoid systray demotion on Windows ( #21891 )
...
* fix: systray icon demotion
Adding support for GUID parameter in Tray API.
In combination with signed binaries this allows to maintain
the position in the systray on Windows.
* unit tests
* make mac and linux compile
2020-01-31 14:37:03 +09:00
Shelley Vohr
2955c67c4e
fix: prevent print crash on bad deviceName ( #21946 )
...
* fix: prevent print crash on bad deviceName
* address review feedback
2020-01-31 11:49:13 +09:00
Jeremy Apthorp
662b94f46e
docs: windows don't need to be retained ( #21957 )
2020-01-30 14:15:35 -08:00
Shelley Vohr
7c070c58af
docs: fix missing docs for <webview>.print() ( #21962 )
2020-01-29 17:12:45 -08:00
Hye Sung Jung
0bd8a97f38
update ( #21915 )
2020-01-29 18:42:25 +09:00
Mark Lee
28fb2b7ed5
docs: move breaking changes out of API folder ( #21870 )
...
This should allow planned breaking changes to be shown in the website
prior to a stable release with the changes included.
2020-01-28 22:19:18 +00:00
Shelley Vohr
548b290ea7
feat: add more options to printToPDF ( #21906 )
2020-01-28 20:47:24 +00:00
Shelley Vohr
55ccca922d
fix: About Panel credits should be dark mode aware ( #21880 )
2020-01-28 04:23:02 +00:00
Mark Lee
1aac233711
docs: clean up context bridge API docs ( #21888 )
2020-01-27 17:14:54 -06:00
Samuel Attard
37feeb8e5f
feat: expose the chromium validated certificate in the certificate verify proc ( #21890 )
2020-01-27 10:48:29 -08:00
Samuel Attard
edafbc43e1
Update browser-window.md ( #21892 )
2020-01-26 12:17:18 -08:00
LuoJinghua
852b8693bd
feat: Exposing methods required by capturing a hidden webContents ( #21679 )
2020-01-25 09:43:42 +09:00
Tony
5781850706
feat: custom positioning for traffic light buttons ( #21781 )
...
* feat: custom positioning for traffic light buttons
* remove NSLog and unnecessary call-site in IsVisible()
* no longer need to check if entering fullscreen
* change API to take a point object
Co-authored-by: tonyfwoo <55114329+tonyfwoo@users.noreply.github.com>
2020-01-23 10:13:08 -08:00
Ross Rosen
1d58072f65
docs: added info on bookmark return values for securityScopedBookmarks ( #17584 )
2020-01-23 10:17:39 +09:00
Shelley Vohr
b90537a629
feat: add tray.closeContextMenu() ( #21807 )
2020-01-22 15:25:17 -08:00
Shelley Vohr
38947f43de
docs: menu item labels are not dynamic ( #21823 )
2020-01-20 15:44:22 +09:00
Martin
9636acb907
docs: update setAspectRatio documentation ( #19945 )
2020-01-17 20:35:27 +00:00
Shelley Vohr
5c6f9a6947
feat: add mouse-down & mouse-up to Tray ( #21795 )
2020-01-17 16:28:34 +00:00
Jorn
aef9ab1bb7
Es6ify api docs ( #21686 )
...
* docs: es6ify docs -> var -> const / let
* docs: apply arrow functions throughout all of the docs
2020-01-13 10:29:46 +09:00
Milan Burda
c0bde4baa4
docs: responseHeaders should be Record<string, string[]> ( #21730 )
2020-01-12 09:20:13 -08:00
Shelley Vohr
2858471151
feat: remove visibleOnFullscreen option ( #21706 )
2020-01-10 09:11:38 -08:00
Shelley Vohr
bb054716c9
feat: allow http-parser NODE_OPTION in packaged apps ( #21694 )
2020-01-09 08:09:14 -08:00
Shelley Vohr
181eecd03e
docs: fix shell.openPath documentation ( #21641 )
2019-12-30 11:40:30 -08:00
Jeremy Apthorp
1cac62f0a2
feat: remove deprecated base::Value-based serialization ( #21560 )
...
* feat: remove deprecated base::Value-based serialization
* add note to breaking-changes
2019-12-18 15:24:50 +09:00
Shelley Vohr
dba8a0caa8
feat: enable explicit IAP restoration ( #21461 )
2019-12-17 07:07:11 -08:00
Jeremy Apthorp
53957d47d6
test: clean up some stale code in renderer spec runner ( #21384 )
...
* test: clean up some stale code in renderer spec runner
* remove jquery from spec
* remove extraneous close tag
* Revert "remove jquery from spec"
This reverts commit 7b885c8ca807e15bad3b7bf94691eee3c53d0a8d.
* re-clean-up html
* don't highlight tags
* update session docs; clear cache on boot
* clear user-data-dir before running tests
2019-12-17 11:15:12 +09:00
Javan Makhmali
b57d218466
docs: update webContents.printToPDF() example for promisified API ( #21541 )
2019-12-16 16:14:13 -08:00
Victor Bennich
cf833a7650
feat: add win.getBackgroundColor() for macOS ( #21448 )
...
thanks @vbennich - great work on this 🌟
2019-12-13 11:08:30 -05:00
Jeremy Apthorp
1f3561227d
feat: add tracing info to WebContents IPC methods ( #21404 )
2019-12-06 13:15:23 -08:00
Jeremy Apthorp
dc9beda182
feat: remove deprecated setLayoutZoomLevelLimits ( #21383 )
2019-12-06 13:14:25 -08:00
Shelley Vohr
4ac575416f
docs: fix return type of getPrinters ( #21411 )
2019-12-06 12:36:35 -08:00
Jeremy Apthorp
9526c5584e
fix: deprecate setLayoutZoomLevelLimits ( #21296 )
2019-12-02 13:27:03 -08:00
liulun
3d2fa09db3
Two 'close' in this line ( #21345 )
2019-12-02 18:30:56 +09:00
Julio
96c4c48268
docs: app.dock could be undefined
( #20609 )
2019-11-27 22:23:13 +09:00
Jeremy Apthorp
d25256dcf5
refactor: rewrite the net module to simplify state tracking ( #21244 )
2019-11-26 17:01:13 -08:00
Samuel Attard
149aaeba94
feat: add session.addWordToSpellCheckerDictionary to allow custom words in the dictionary ( #21266 )
...
* feat: add session.addWordToSpellCheckerDictionary to allow custom words in the dictionary
* Update session.md
2019-11-26 13:16:43 -08:00
Samuel Attard
34452ee69e
feat: expose executeJavaScriptInIsolatedWorld on webContents ( #21190 )
...
* feat: expose executeJavaScriptInIsolatedWorld on webContents
* Apply suggestions from code review
Co-Authored-By: loc <andy@slack-corp.com>
2019-11-22 15:33:55 -08:00
Samuel Attard
0cadf2846b
docs: remove string literal type from window events ( #21235 )
2019-11-21 11:12:03 -08:00
Bruce Auyeung
07b94ff578
docs: clarify uniqueness of WebContents.id, BrowserWindow.id ( #21101 )
2019-11-21 11:11:44 -08:00
Samuel Attard
ea23f18e94
docs: document the channel param for event.reply
( #21185 )
2019-11-19 13:17:59 -08:00
Samuel Attard
c8ed22def3
docs: fix isMactemplateImage
type definition ( #21166 )
2019-11-18 10:57:22 -08:00
Jeremy Apthorp
4f1536479e
fix: implement 'login' event for net.ClientRequest ( #21096 )
2019-11-14 10:01:18 -08:00
Shelley Vohr
af1e8a347e
chore: remove unused promisify code ( #21114 )
2019-11-14 14:50:50 +09:00
Milan Burda
97e2569f02
feat: add 'screen' to systemPreferences.getMediaAccessStatus() ( #20764 )
...
* feat: add 'screen' to systemPreferences.getMediaAccessStatus()
* Update docs/api/system-preferences.md
2019-11-13 16:47:51 -05:00
Erick Zhao
ba85d4c3bb
docs: document webkitdirectory breaking change ( #20934 )
...
* chore: empty folder structure
* chore: PR template
* docs: add `webkitdirectory` change in Electron 7
* linguist?
* link
* Delete hacktoberfest.md
2019-11-13 14:11:25 -05:00
Shelley Vohr
b8ee8c4eee
feat: enhance PrinterInfo object values ( #21081 )
2019-11-13 14:31:28 +09:00
Jeremy Apthorp
034f4d5734
fix: implement 'login' event for WebContents ( #20954 )
2019-11-11 09:47:01 -08:00
Milan Burda
093f2dd4a6
chore: remove deprecated <webview>.getWebContents() ( #20986 )
2019-11-08 15:46:35 -05:00
Shelley Vohr
d3622f9c37
feat: convert shell.openItem to async shell.openPath ( #20682 )
2019-11-07 23:08:43 -08:00
Samuel Attard
b06a479240
build: remove debug builds ( #21016 )
...
* build: remove debug builds
* Update docs/development/debugging-instructions-macos.md
Co-Authored-By: Robo <hop2deep@gmail.com>
2019-11-07 11:51:44 -08:00
Milan Burda
f1e7393e30
feat: deprecate <webview>.getWebContents() ( #20726 )
2019-11-07 09:43:19 -08:00
Andrew MacDonald
9b01bb00d2
feat: add app.getApplicationNameForProtocol API ( #20399 )
...
* Add GetApplicationNameForProtocol.
* Fix Windows implementation.
* Fix up test.
* Add documentation.
* Implement for real on Linux using xdg-mime.
Also ensure we allow blocking calls here to avoid errant DCHECKing.
* Improve docs for Linux.
* Clean up tests.
* Add a note about not relying on the precise format.
* Update docs/api/app.md
Co-Authored-By: Shelley Vohr <codebytere@github.com>
* Remove needless `done()`s from tests.
* Use vector list initialization.
* Add a simple test for isDefaultProtocolClient.
* Remove unneeded include and skip a test on Linux CI.
* We no longer differentiate between CI and non-CI test runs.
2019-11-06 17:50:33 -08:00
Samuel Attard
5b7382765c
feat: allow TouchBarButton instances to be disabled ( #20945 )
...
* feat: allow TouchBarButton instances to be disabled
* Update touch-bar-button.md
2019-11-05 15:56:36 -08:00
Shelley Vohr
05de7277ab
docs: fix win.setIcon ts type ( #20950 )
...
* docs: fix win.setIcon ts type
* test: update smoke tests
2019-11-05 13:47:08 -08:00
Samuel Attard
fcee7212ce
chore: upgrade ts generator for better type safety ( #20975 )
...
* chore: upgrade ts generator for better type safety
* spec: fix tests
2019-11-05 13:34:04 -08:00
Shelley Vohr
38711233c5
feat: allow some NODE_OPTIONS in packaged apps ( #20857 )
...
* feat: allow some NODE_OPTIONS in packaged apps
* fix: correctly detect packaged app
2019-11-01 18:06:15 -07:00