Eryk Rakowski
573784967c
feat: add win.setTopBrowserView() so that BrowserViews can be raised ( #27007 ) ( #27713 )
...
* 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 >
Co-authored-by: Stewart Lord <stew@offbynone.com >
2021-02-18 17:09:26 +09:00
Jeremy Rose
c3bce9c664
feat: implement allowFileAccess loadExtension option ( #27702 )
...
Co-authored-by: Сковорода Никита Андреевич <chalkerx@gmail.com >
Co-authored-by: Samuel Maddock <samuel.maddock@gmail.com >
2021-02-16 15:20:20 -08:00
Keeley Hammond
777f23af0d
feat: add display-capture api to session permissions ( #27696 )
2021-02-16 08:00:15 -08:00
trop[bot]
8cdd20e97a
feat: add exit code to render-process-gone details ( #27677 )
...
Co-authored-by: Jeremy Rose <nornagon@nornagon.net >
2021-02-15 09:39:49 +09:00
trop[bot]
025abfc1ba
docs: update Xcode / macOS SDK version in build-instructions-macos.md ( #27536 )
...
Co-authored-by: Milan Burda <milan.burda@gmail.com >
2021-01-29 12:49:12 -08:00
trop[bot]
28fa60fbcb
feat: enable world safe JS by default ( #27502 )
...
* feat: enable world safe JS by default
* refactor: use the ctx bridge to send executeJavaScript results in a world safe way
* docs: add more info about the breaking change
* include default in IsEnabled check
* test: fix failing http spec
Co-authored-by: Samuel Attard <samuel.r.attard@gmail.com >
Co-authored-by: Samuel Attard <sattard@slack-corp.com >
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com >
2021-01-29 12:39:56 -08:00
trop[bot]
da58ded8f9
docs: update verb tenses for structured clone notes ( #27501 )
...
Co-authored-by: Erick Zhao <erick@hotmail.ca >
2021-01-27 17:06:17 +09:00
trop[bot]
80a3f10b6b
docs: add missing contextBridge API to README ( #27511 )
...
Co-authored-by: Erick Zhao <erick@hotmail.ca >
2021-01-27 17:03:10 +09:00
Milan Burda
889abd0c8e
docs: update OSR max FPS number ( #26805 ) ( #27508 )
...
Co-authored-by: Erick Zhao <erick@hotmail.ca >
2021-01-27 16:34:45 +09:00
trop[bot]
f26025301a
fix: enable navigator.setAppBadge/clearAppBadge ( #27431 )
...
Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org >
2021-01-21 12:16:21 -05:00
trop[bot]
1f22b2bfdc
feat: add frame and webContents to webRequest details ( #27334 )
...
* feat: add frame and webContents to webRequest details
* chore: use frame_converter.h
Co-authored-by: Jeremy Rose <nornagon@nornagon.net >
Co-authored-by: Cheng Zhao <zcbenz@gmail.com >
2021-01-21 15:55:30 +09:00
Milan Burda
e25de07657
feat: add webFrameMain.send() / webFrameMain.postMessage() ( #26807 ) ( #27366 )
2021-01-21 15:49:02 +09:00
trop[bot]
c74780117e
feat: exposeInMainWorld allow to expose non-object APIs ( #26834 )
...
* feat: ExposeAPIInMainWorld allow to process non-object APIs cpp part
* fix: add IsTypedArray check before DeepFreeze of the api
* feat: ExposeAPIInMainWorld allow to process non-object APIs js part - ts types change
* test: add new context bridge tests
* docs: ctx bridge exposeInMainWorld change documentation for any API
Co-authored-by: nikitakot <nikitakot@microsoft.com >
2021-01-19 15:46:01 +09:00
Erick Zhao
897fd34253
docs: update devtools extension tutorial ( #26326 ) ( #27310 )
...
* docs: update devtools extension tutorial
* Update docs/tutorial/devtools-extension.md
Co-authored-by: Jeremy Rose <nornagon@nornagon.net >
* update
Co-authored-by: Jeremy Rose <nornagon@nornagon.net >
Co-authored-by: Jeremy Rose <nornagon@nornagon.net >
2021-01-14 14:54:25 +09:00
Milan Burda
f5af20d1d6
feat: add event.senderFrame property returning the originating webFrameMain ( #26764 ) ( #27047 )
2021-01-11 14:31:23 +09:00
trop[bot]
48a8fdfdb6
feat: add webFrameMain.executeJavaScriptInIsolatedWorld() ( #27195 )
...
Co-authored-by: Milan Burda <milan.burda@gmail.com >
2021-01-11 10:47:42 +09:00
trop[bot]
d498d4bf18
feat: make win.setAspectRatio() work on Windows ( #27202 )
2021-01-07 11:46:14 -08:00
trop[bot]
6553c4418f
docs: webFrameMain.fromId() can return undefined ( #27193 )
...
* docs: webFrameMain.fromId() can return undefined
* docs: webFrameMain.fromId() can return undefined
Co-authored-by: Milan Burda <milan.burda@gmail.com >
2021-01-05 17:20:32 +09:00
trop[bot]
ecf981a91a
docs: document frameId meaning ( #27191 )
...
Co-authored-by: Jeremy Rose <nornagon@nornagon.net >
2021-01-04 20:27:18 -08:00
Eryk Rakowski
975123b6bf
fix(extensions): implement missing web_request hooks ( #22655 ) ( #27098 )
...
Co-authored-by: Jeremy Apthorp <nornagon@nornagon.net >
Co-authored-by: samuelmaddock <samuel.maddock@gmail.com >
Co-authored-by: Jeremy Apthorp <nornagon@nornagon.net >
Co-authored-by: samuelmaddock <samuel.maddock@gmail.com >
2021-01-05 11:30:01 +09:00
trop[bot]
cfd848c32f
docs: update broken Chrome webview URL ( #27179 )
...
Co-authored-by: Erick Zhao <erick@hotmail.ca >
2021-01-04 14:05:59 -08:00
trop[bot]
ce8d301921
fix: throw when using globalShortcut before ready ( #27022 )
...
* fix: throw when using globalShortcut before ready
* fix
Co-authored-by: Jeremy Rose <nornagon@nornagon.net >
2020-12-17 10:06:32 +09:00
Jeremy Rose
36c695ce2a
fix: restrict sendToFrame to same-process frames by default ( #26875 ) ( #26925 )
2020-12-11 13:00:17 -08:00
trop[bot]
e77d9ff3b9
docs: add missing deprecated systemPreferences APIs to breaking-changes ( #26937 )
...
Co-authored-by: Milan Burda <milan.burda@gmail.com >
2020-12-11 11:00:53 -08:00
Erick Zhao
2e9305d964
docs: added fiddle support for code samples ( #26767 )
...
Co-authored-by: Antonio <bandantonio@users.noreply.github.com >
2020-12-03 15:54:43 +09:00
trop[bot]
0491cc6906
docs: fix contentTracing code sample ( #26778 )
...
According to the API docs, the property is called included_categories, not include_categories.
Co-authored-by: Jim Fisher <jameshfisher@gmail.com >
2020-12-02 14:29:54 -05:00
trop[bot]
a0d0bd60a5
docs: BrowserWindow extension APIs are deprecated in Electron 9 ( #26783 )
...
Co-authored-by: Milan Burda <milan.burda@gmail.com >
2020-12-01 21:31:36 -08:00
trop[bot]
80e0473649
chore: remove deprecated crashReporter APIs ( #26709 )
...
Co-authored-by: Milan Burda <milan.burda@gmail.com >
2020-11-30 16:54:17 +09:00
trop[bot]
c9801ab5a5
fix: segfault on webContents.fromId(xxx) ( #26651 )
...
Co-authored-by: Jeremy Rose <nornagon@nornagon.net >
2020-11-24 16:12:53 -05:00
trop[bot]
66a22a28a5
docs: fix relative link ( #26601 )
...
Co-authored-by: David Sanders <dsanders11@ucsbalum.com >
2020-11-19 12:41:26 -05:00
NotWearingPants
d4e53925ba
docs: add a white background to body ( #26504 )
2020-11-18 11:54:26 -08:00
Shiranka Miskin
ec85a91472
docs: update contextIsolation documentation on access to globals ( #19732 )
2020-11-18 15:24:00 +09:00
Antonio
968cb970fc
docs: restructured docs directory ( #26335 )
...
* docs: first draft of the restructred docs directory
* docs: first working version of the restructred docs directory
* docs: finalized version of the restructred docs directory
* docs: reverted architecture section back to the toc
2020-11-18 10:13:03 +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
Keeley Hammond
c78ac248dc
docs: update breaking changes for Electron 11 ( #26526 )
...
* docs: update breaking changes for Electron 11
* docs: remove desktopCapture method, add destroy
2020-11-17 11:35:23 -05:00
Jeremy Rose
a9924e1c32
feat: add powerMonitor.onBatteryPower ( #26494 )
2020-11-16 16:31:46 -08:00
Sofia Nguy
8594b55dee
docs: update currently supported versions for 11.0.0 release ( #26368 )
2020-11-16 15:48:50 -08:00
Sofia Nguy
fabc51dc33
docs: update 12 stable dates ( #26367 )
2020-11-16 15:48:28 -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
David Sanders
1cda003e4d
docs: update issue template ( #26293 )
...
* docs: update issue template
* chore: link to new issue template instead of embedding the content
2020-11-12 09:12:45 -05: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
Michaela Laurencin
d836682ee6
docs: add native c++ windows debugging method ( #26286 )
2020-11-06 16:55:55 -08:00
David Sanders
43dbd1bdf8
chore: cleanup whitespace in docs ( #26356 )
2020-11-05 14:12:43 -08:00
David Sanders
3814a56d48
chore: fix markdown in docs ( #26357 )
2020-11-05 14:11:38 -08:00