Heilig Benedek
5a08522b98
feat: add removeInsertedCSS ( #16579 )
2019-06-17 11:39:35 -04:00
Milan Burda
deebde66f9
feat: make async webContents / <webview> methods return a Promise ( #18792 )
2019-06-17 12:10:02 +03:00
Jeremy Apthorp
bb19142389
test: move some remote specs to the main runner ( #18636 )
2019-06-07 10:43:32 -07:00
Samuel Attard
f80601da16
docs: ensure that optionality matches between documented params and signatures ( #18613 )
...
* docs: ensure that optionality matches between documented params and signatures
* docs: ensure that all optional declarations are lower case
* chore: fix broken link
2019-06-04 14:03:24 -07:00
Jeremy Apthorp
901cdb22e3
test: move some BrowserWindow specs to the main runner ( #18551 )
2019-06-03 15:10:58 -07:00
Milan Burda
76783e2a90
fix: 'page-title-updated' event forwarding + documentation ( #18270 )
2019-05-16 12:33:16 +03:00
Milan Burda
6609138959
feat: add webContents 'zoom-changed' event ( #17747 )
2019-05-14 09:40:40 +03:00
Samuel Attard
a96b6e2c96
build: move to the new docs parser ( #18103 )
...
* build: move to the new docs parser
* chore: remove the bad getTitle param doc
* build: update parser/ts gen deps + fix some docs issues highlighted by GH desktop
* chore: apply suggestions from code review
Co-Authored-By: MarshallOfSound <samuel.r.attard@gmail.com>
* chore: update docs for accidentally removed things
* chore: update docs/api/command-line.md
Co-Authored-By: MarshallOfSound <samuel.r.attard@gmail.com>
2019-05-06 08:29:01 -07:00
bughit
493af7f84c
document the loadURL promise pre-attached rejection handler ( #18043 )
2019-05-01 14:04:21 -07:00
Milan Burda
d2cebc62d1
docs: fix webContents 'new-window' event handler sample ( #18067 )
2019-05-01 10:49:42 -07:00
Shelley Vohr
d87b3ead76
chore: remove promisification deprecation callbacks ( #17907 )
...
* chore: remove promisification deprecation callbacks
* update docs
* fix smoke test
* fix executejs issue
* cleanup leftovers
* fix webContents.executeJavaScript tests
* cleanup WebContents.prototype.takeHeapSnapshot
* fix "sets arbitrary webContents as devtools" test
* fix executeJavaScriptInFrame related tests
2019-04-30 07:08:32 -07:00
Samuel Attard
f901170a4f
docs: fix doc linter warnings ( #17818 )
2019-04-16 19:03:17 -04:00
Shelley Vohr
879462af4b
docs: document modernization initiative more clearly ( #17376 )
...
* docs: document modernization initiative more clearly
2019-03-19 10:31:45 -07:00
Milan Burda
2e89348541
feat: promisify executeJavaScript ( #17312 )
2019-03-14 12:08:54 -07:00
Samuel Maddock
ac88b3ead5
feat: add 'disableHtmlFullscreenWindowResize' option to webPreferences ( #17203 )
...
This option allows users to prevent the window from resizing when the HTML5 FullScreen API is used.
2019-03-07 15:29:37 -08:00
Gavin Wang
391f6dd663
docs: add sample code for contents.insertCSS() ( #16959 )
...
it not work before Event: 'did-finish-load', so add this sample code to show it.
2019-02-25 18:10:56 -08:00
Shelley Vohr
de27911661
feat: promisify webContents.savePage() ( #16742 )
...
* feat: promisify webContents.savePage()
* no need to make compatible w callbacks, we're breaking it
* fix promise resolve type
* address feedback from review
* fix promise return text
* update smoke test
2019-02-14 09:03:28 -08:00
Milan Burda
36ce3e9546
feat: promisify webContents.printToPDF() ( #16795 )
2019-02-11 09:20:04 -10:00
Gilbert Emerson
76d919fff5
docs: added webContents.getType() method ( #16767 )
...
* docs: added webContents.getType() method
* docs: add enumeration of return value for webContents.getType()
* docs: getType() in WebContents should be class method not module method
2019-02-06 10:42:34 -08:00
Shelley Vohr
f303caa87c
refactor: remove ServiceWorker APIs from WebContents ( #16717 )
2019-02-04 22:22:46 -08:00
michtsu
392458b252
Add devtools API to inspect shared worker. ( #16615 )
2019-02-01 10:44:24 -08:00
Shelley Vohr
d105dcc0d3
feat: promisify webContents.hasServiceWorker() ( #16535 )
...
* feat: promisify contents.hasServiceWorker()
* spec: add initial test for hasServiceWorker()
2019-01-26 10:23:16 -08:00
Samuel Attard
58a6fe13d6
feat: preloads and nodeIntegration in iframes ( #16425 )
...
* feat: add support for node / preloads in subframes
This feature has delibrately been built / implemented in such a way
that it has minimum impact on existing apps / code-paths.
Without enabling the new "nodeSupportInSubFrames" option basically none of this
new code will be hit.
The things that I believe need extra scrutiny are:
* Introduction of `event.reply` for IPC events and usage of `event.reply` instead of `event.sender.send()`
* Usage of `node::FreeEnvironment(env)` when the new option is enabled in order to avoid memory leaks. I have tested this quite a bit and haven't managed to cause a crash but it is still feature flagged behind the "nodeSupportInSubFrames" flag to avoid potential impact.
Closes #10569
Closes #10401
Closes #11868
Closes #12505
Closes #14035
* feat: add support preloads in subframes for sandboxed renderers
* spec: add tests for new nodeSupportInSubFrames option
* spec: fix specs for .reply and ._replyInternal for internal messages
* chore: revert change to use flag instead of environment set size
* chore: clean up subframe impl
* chore: apply suggestions from code review
Co-Authored-By: MarshallOfSound <samuel.r.attard@gmail.com>
* chore: clean up reply usage
* chore: fix TS docs generation
* chore: cleanup after rebase
* chore: rename wrap to add in event fns
2019-01-22 11:24:46 -08:00
Milan Burda
6cba2c50a2
feat: make ipc-message
and ipc-message-sync
events public ( #16468 )
2019-01-22 08:47:58 -08:00
Shelley Vohr
3ca87d205f
feat: make zoomLevel/zoomFactor sync ( #16410 )
...
* feat: make zoomLevel/zoomFactor sync
* update ts defs dep
2019-01-20 23:40:27 -08:00
Milan Burda
7d4a1223fd
feat: add preload-error
event to webContents
( #16411 )
2019-01-18 12:03:43 +01:00
Milan Burda
349a3c20ae
feat: add additional remote APIs filtering ( #16293 )
2019-01-08 14:27:56 -08:00
Milan Burda
547097b036
security: allow to block desktopCapturer.getSources() calls ( #15964 )
...
* security: allow to block desktopCapturer.getSources() calls
* return empty instead of error
* fix: release resources of DesktopCapturer on exit
2018-12-20 11:44:30 +09:00
Jeremy Apthorp
03f876470e
docs: note that visual zoom is disabled by default ( #16130 )
2018-12-18 20:40:42 -07:00
Jeremy Apthorp
442c1b22e3
feat: webContents.loadURL returns a promise ( #15855 )
2018-12-06 12:16:19 -08:00
Shelley Vohr
41c2685204
feat: promisify win.capturePage() ( #15743 )
...
* feat: promisify win.capturePage
* mark optional arg correctly
* Add to breaking changes doc
* properly deprecate win.capturePage
* remove change from api-contract
* document both callback and promise versions
* address docs feedback
* update promisification progress doc
2018-11-27 23:50:53 -05:00
Milan Burda
d63a848011
feat: add activate option to webContents.openDevTools ( #13852 )
2018-11-27 18:34:44 +09:00
Samuel Attard
bdef033459
docs: add Size as an option for pageSize in docs for printToPDF ( #15519 )
2018-11-01 09:00:33 -04:00
Andy Dill
37f2113032
feat: expose setBackgroundThrottling api ( #15104 )
2018-10-19 11:32:22 +11:00
Milan Burda
db37ab1039
feat: add remote.require() / remote.getGlobal() filtering ( #15014 )
2018-10-18 14:36:45 +11:00
Samuel Attard
5541cab1ba
docs: type the promises in our docs ( #14715 )
2018-09-20 22:37:56 +10:00
Milan Burda
e22142ef9c
feat: add process.takeHeapSnapshot() / webContents.takeHeapSnapshot() ( #14456 )
2018-09-18 11:00:31 -07:00
Samuel Attard
7065093869
feat: add will-redirect ( #13866 )
...
* feat: add will-redirect to allow people to prevent 30X redirects
* spec: add tests for the will-redirect event
* refactor: implement will-redirect using NavigationThrottle instead of PostTask
This avoids a potential race condition and immediately cancels the
navigation
* docs: add docs for did-redirect-navigation
* refactor: move AtomNavigationThrottle out of net folder
* refactor: update header guard for atom_navigation_throttle.h
* refactor: fix chromium style errors in the GN build
* refactor: update throttle impl to NOTREACHED and std::make_unqique
2018-09-16 01:42:43 +10:00
Samuel Attard
558fff69e7
chore: update to standard 12
2018-09-14 14:57:01 +10:00
Milan Burda
58577bd431
feat: add options to webContents.loadFile ( #14515 )
2018-09-11 17:56:49 +10:00
Cheng Zhao
cd8bb1d3b4
chore: print error when removed webview attribute is used ( #14230 )
...
* chore: print error when removed webview attribute is used
* docs: document removed webview features
2018-08-23 10:45:43 +09:00
Tiago Danin
1fd6d38a0a
docs: Improved documentation ( #13403 )
2018-07-20 10:58:19 -07:00
Felix Rieseberg
deedf6c3f4
feat: Add isCurrentlyAudible() to WebContents ( #13614 )
...
* 🔧 Add isCurrentlyAudible() to WebContents
* ❤️ Implement feedback, use await to wait for event
* 👷 Add missing imports
2018-07-12 21:35:11 +10:00
Heilig Benedek
60ba2013c4
Re-add dirtyOnly to FrameSubscriber and document API change
2018-06-19 11:49:44 +10:00
deepak1556
c4b8e106c0
Create network_converter for services/network/* types
2018-06-19 11:49:42 +10:00
deepak1556
7b47d69efe
Remove did-get-response-details and did-get-redirect-request events
...
https://chromium-review.googlesource.com/c/chromium/src/+/805008
https://chromium-review.googlesource.com/c/chromium/src/+/786320
2018-06-19 11:49:41 +10:00
Mateus Silva
1b3cd01851
Doc: Delete unnecessary require and update flag name
2018-06-12 20:17:16 +01:00
Mateus Silva
370d790776
Doc: Update bluetooth example
...
Update event select-bluetooth-device example documentation.
2018-06-07 20:29:20 +01:00
Shelley Vohr
265aa3da29
docs: deprecate UploadFileSystem ( #13064 )
...
Deprecate UploadFileSystem in preparation for its being phased out completely in Chromium 66 and correspondingly Electron 4.0.0.
2018-05-25 10:50:27 -07:00
Milan Burda
56cdf94f95
Fix contents.setSize(options) documentation in web-contents.md ( #12922 )
2018-05-15 10:17:04 +10:00