Jeremy Apthorp
1dcda7b809
chore: DCHECK for correct thread in EventEmitter::EmitWithSender ( #19959 )
2019-08-27 15:15:52 -07:00
Cheng Zhao
4eee71ffbf
feat: migrate webRequest module to NetworkService (Part 9) ( #19976 )
...
* no need to get WebContents for URLLoaderFactory
* consult embedder for network_factory created in net module
* set disable_web_security to false
* re-enable webRequest tests in net module
2019-08-27 09:12:33 -07:00
Samuel Attard
4e809f0048
fix: ensure that reloads retain modified window background colors ( #19967 )
2019-08-26 23:14:23 -07:00
Kuts Alexey
cddbddc543
feat: HTTP preconnect feature minimal for electronjs ( #18671 )
2019-08-26 09:47:32 -07:00
Electron Bot
b7d25ccb77
chore: bump chromium to 62327c655093c821aa0fcfc6db53f5fd943e08c7 (master) ( #19792 )
...
* chore: bump chromium in DEPS to f3bf493731e868e1f5f48e7e1adc02ea5eccfbbd
* chore: bump chromium in DEPS to 4db0c87d4aa6f27ffa0b5fc77d20e10047962484
* chore: bump chromium in DEPS to d933a504c264dc8fe85267f47aef3588531875b5
* chore: bump chromium in DEPS to 34afdb68980f581ae911b85b727bc17e126cf5f9
* update disable-redraw-lock.patch
https://chromium-review.googlesource.com/c/chromium/src/+/1600387
* update desktop_media_list.patch
https://chromium-review.googlesource.com/c/chromium/src/+/1729156
* update notification_provenance.patch
https://chromium-review.googlesource.com/c/chromium/src/+/1742779
* update printing.patch
https://chromium-review.googlesource.com/c/chromium/src/+/1646772
* update verbose_generate_bpad_syms.patch
https://chromium-review.googlesource.com/c/chromium/src/+/1745986
* update patch metadata
* remove printing_compositor manifests
https://chromium-review.googlesource.com/c/chromium/src/+/1742734
* update for URLLoaderFactoryType enum
https://chromium-review.googlesource.com/c/chromium/src/+/1754716
* remove gin string16 converter
https://chromium-review.googlesource.com/c/chromium/src/+/1750093
* ClearCompositorFrame() has been removed
https://chromium-review.googlesource.com/c/chromium/src/+/1746301
* message_loop -> message_loop_current
https://chromium-review.googlesource.com/c/chromium/src/+/1738552
* include resource_response header
* pdf compositor no longer uses service manager
https://chromium-review.googlesource.com/c/chromium/src/+/1742734
* chore: bump chromium in DEPS to 00d5933101d8d8dc9546eadbe7ee1b41077e6db1
* pane focus fns aren't pure virtual anymore
https://chromium-review.googlesource.com/c/chromium/src/+/1708767
* fix: make std::hash value-non-const
broken by https://chromium-review.googlesource.com/c/chromium/src/+/1711202
* update swiftshader in zip_manifests
https://swiftshader-review.googlesource.com/c/SwiftShader/+/34911
* address feedback from @deepak1556
* don't enable kLegacyWindowsDWriteFontFallback
https://chromium-review.googlesource.com/c/chromium/src/+/1753006
* chore: bump chromium in DEPS to 84497314005e1968da06804f8fde539d9872310e
* update printing.patch
remove bottom diff owing to https://chromium-review.googlesource.com/c/chromium/src/+/1678182 and update for https://chromium-review.googlesource.com/c/chromium/src/+/1678182
* convert CookieChangeListener to new Mojo types
https://chromium-review.googlesource.com/c/chromium/src/+/1753371
* rename ui::ClipboardType -> ui::ClipboardBuffer
https://chromium-review.googlesource.com/c/chromium/src/+/1758730
* logging::LoggingSettings log_file -> log_file_path
https://chromium-review.googlesource.com/c/chromium/src/+/1699477
* roll DEPS to latest lkgr
* fix: override GetFontLookupTableCacheDir()
When Chromium goes to use its fallback font table creation code paths,
it creates the cache directory it uses by calling
GetFontLookupTableCacheDir() with a path that doesn't exist in Electron.
To ensure that a legitimate file path is created, we need to override it
with Electron's DIR_USER_DATA so it doesn't use chrome::DIR_USER_DATA.
* chore: bump chromium in DEPS to 6758a0879931bc4df630a80a36c82d7855ae3155
* update pthread_fchdir patch
https://chromium-review.googlesource.com/c/chromium/src/+/1759149
* update printing patch
* update cookie usage and fn signatures
https://chromium-review.googlesource.com/c/chromium/src/+/1758437
* chore: bump chromium in DEPS to bdaca97e1cc27fb977e56f30f74cdb906da9527e
* remove fix_make_std_hash_value-non-const.patch
https://chromium-review.googlesource.com/c/chromium/src/+/1762335
* Convert enum to enum class for FocusManager::FocusChangeReason
https://chromium-review.googlesource.com/c/chromium/src/+/1767281
* roll DEPS to latest lkgr
* update dom_storage_limits.patch
https://chromium-review.googlesource.com/c/chromium/src/+/1767556
2019-08-23 18:14:23 -07:00
Shelley Vohr
c89debd19a
refactor: use Error util when only throwing errors ( #19837 )
2019-08-23 15:49:54 -07:00
Milan Burda
81e9dab52f
refactor: replace ipcRendererUtils.invoke() with ipcRendererInternal.invoke() ( #19574 )
2019-08-23 15:45:50 -07:00
Samuel Attard
6a3922d330
refactor: make util::Promise type safe when chaining in native ( #19809 )
...
* refactor: make util::Promise type safe when chaining in native
* fixup! refactor: make util::Promise type safe when chaining in native
* chore: remove spare brackets
2019-08-22 17:03:28 -07:00
John Kleinschmidt
46b6bcd99b
chore: Update comment for desktop_capturer ( #19848 )
...
* chore: Update comment for desktop_capturer
* Guard TopLevelWindow::MoveAbove with ENABLE_DESKTOP_CAPTURER
* Fix lint errors
2019-08-21 15:16:43 -07:00
Cheng Zhao
b7defaaf6a
feat: migrate webRequest module to NetworkService (Part 8) ( #19841 )
...
* fix: fill uploadData property
* fix: requestHeaders in onBeforeSendHeaders
* fix: responseHeaders in onHeadersReceived
* fix: header keys should not be lowercased
* fix: gin::Dictionary::Get succeeds even though key does not exist...
* fix: throw for invalid filters
* test: re-enable api-web-request-spec
* chore: do not use deprecated base::Value API
2019-08-21 11:14:21 +09:00
Cheng Zhao
cd1b15a155
feat: migrate webRequest module to NetworkService (Part 7) ( #19820 )
...
* fix: gin treats Function as Dictionary when doing convertions
* fix: check if listener exists
* fix: listener callback should be executed in next tick
* feat: make InProgressRequest work
* test: re-enable protocol test that relies on webRequest
* chore: merge conditions
2019-08-20 20:46:20 +09:00
Shelley Vohr
1dc02e6dbc
fix: fall back to default logs path in getPath('logs') ( #19653 )
2019-08-19 15:16:00 -07:00
Heilig Benedek
b33558d822
refactor: mojofy autofill renderer->browser ( #18760 )
...
* re-implement renderer->browser calls with mojo
* lint
* fix: clean up after rebase
* lint
* fix: lazy load autofill drivers
2019-08-19 13:13:24 -07:00
Shelley Vohr
43e6d7fe88
chore: add error throwing utility ( #19803 )
...
* chore: add error throwing utility
* feedback from review
* DRY out repeated isolate calls
2019-08-19 09:10:18 -07:00
Cheng Zhao
2595cb5698
fix: compilation failure after chromium upgrade ( #19787 )
2019-08-16 07:55:34 -07:00
Cheng Zhao
c3bb73a711
feat: migrate webRequest module to NetworkService (Part 6) ( #19752 )
...
* Implement OnBeforeSendHeaders
* Pass the request
* Handle simple listeners
* Handle response listeners
* Read responses from listener
2019-08-16 10:19:05 +09:00
Electron Bot
db21391156
chore: bump chromium to cbeb16cf544f79c1990f1eae4d4fe (master) ( #19610 )
...
Co-authored-by: Erick Zhao <erickzhao@github.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
Co-authored-by Micha Hanselmann <DeerMichel@github.com>
2019-08-15 13:50:58 -07:00
Julien Isorce
680399f476
feat: Implement BrowserWindow.getMediaSourceId() and BrowserWindow.moveAbove(mediaSourceId) ( #18926 )
...
* feat: Implement BrowserWindow.moveAbove(mediaSourceId)
BrowserWindow.{focus,blur,moveTop}() are not enough in some
situations. For example when implementing an overlay that
follows another window that can lose focus. In that case
it is useful to move the overlay above the tracked window.
sourceId is a string in the format of DesktopCapturerSource.id,
for example "window:1869:0".
Notes: Added BrowserWindow.moveAbove(mediaSourceId)
https://github.com/electron/electron/issues/18922
* feat: Implement BrowserWindow.getMediaSourceId
Return the Window id in the format of DesktopCapturerSource's id.
For example "window🔢 0".
https://github.com/electron/electron/issues/16460
Notes: Added BrowserWindow.getMediaSourceId
2019-08-15 15:51:15 +09:00
Samuel Attard
efa1818cb4
feat: add new nativeTheme API ( #19656 )
...
* feat: add new nativeTheme API
* chore: deprecate and clean up old systemPreferences theme APIs in favor of new nativeTheme module
* chore: clean up and deprecate things per feedback
* chore: add tests for deprecate and clean up invert impl
* build: when is a boolean not a boolean???
2019-08-14 13:42:55 -07:00
Micha Hanselmann
4c54cfc692
move net converter to gin ( #19734 )
2019-08-14 14:15:34 +09:00
Micha Hanselmann
ba5ee79af8
move file dialog converter to gin ( #19709 )
2019-08-13 14:49:48 +09:00
Cheng Zhao
69eac0d9d2
feat: migrate webRequest module to NetworkService (Part 5) ( #19714 )
...
* Pass WebRequest to ProxyingURLLoaderFactory
* Call WebRequestAPI in InProgressRequest
* Store the listeners
* Pass the request and response
* Add stub to handle the events
* Use extensions::WebRequestInfo
* Make sure webRequest is managed by Session
* chore: make creation of WebRequestNS more clear
* fix: check WebContents for service workers
2019-08-13 14:47:35 +09:00
Erick Zhao
f654da9f56
feat: add about panel customization on Windows ( #19420 )
2019-08-12 16:32:51 -07:00
Cheng Zhao
2dffc9f6eb
feat: migrate webRequest module to NetworkService (Part 4) ( #19679 )
...
* chore: use gin in WebRequest
* Add stubs for APIs
2019-08-11 13:24:51 +09:00
Micha Hanselmann
57507ca37c
refactor: move native window gin converter ( #19577 )
...
* move native window gin converter
* extract to new file
2019-08-09 13:43:18 -07:00
Shelley Vohr
7861e9f728
feat: allow customization of print page header and footer ( #19688 )
...
* feat: allow customization of more print settings
* address feedback from @jkleinsc
* header and footer are optional
2019-08-09 13:16:25 -07:00
Milan Burda
03debb4ef9
feat: add tray.focus() ( #19548 )
2019-08-09 07:43:48 -07:00
Milan Burda
0fb3c8cb7c
feat: add new options to tray.displayBalloon() ( #19544 )
2019-08-08 14:43:33 -07:00
Robo
eebea63bed
chore: remove pre network service classes from shell/browser/net ( #19644 )
...
* refactor: rm IOThread class
* chore: rm expose-net-observer-api.patch
* chore: rm unused shell/browser/net/ classes
* chore: mv CertVerifierClient to separate header
* chore: rm url_request_context_getter references
2019-08-07 11:04:09 -04:00
Shelley Vohr
9c7a216814
fix: crash on print cancellation and silent print settings ( #19598 )
...
* fix: crash on print cancellation
* fix: update printing patch for new options
* refactor: use DictionaryValue for printBackground
2019-08-07 10:47:24 -04:00
CezaryKulakowski
50cc54e50b
fix: keep references to active menus created by api Menu ( #19427 )
...
Without this such menus would be destroyed by js garbage collector even
when they are still displayed.
2019-08-06 14:55:00 -07:00
Milan Burda
ee674acca4
feat: add tray.removeBalloon() ( #19547 )
2019-08-05 08:52:47 -07:00
Electron Bot
e959137a4b
chore: bump chromium to 32e0bab929213da1019992bf31d29 (master) ( #19488 )
2019-08-02 16:56:46 -07:00
Andy Dill
e78b902a7d
fix: expose setMenuBarVisibility again ( #19557 )
2019-08-01 14:01:05 -07:00
Micha Hanselmann
b80429ab7f
refactor: migrate dialog API to //gin ( #19482 )
...
* get ShowMessageBoxSync working with gin
* move more dialog methods
* all methods moved
* cleanup
* add util func for template creation
2019-08-01 10:57:41 -04:00
Milan Burda
c76b0b70c1
refactor: remove content::WebContentsObserver from Event ( #19251 )
2019-07-31 15:20:28 -07:00
Micha Hanselmann
47a38daee2
feat: migrate custom macOS tray view to native one ( #18981 )
...
* restore stash
revert
some things work others dont
tracking area for rescue
manual popup
restore drag n drop
cleanup
* fix: make tray not block main process (#18880 )
* fix: make tray not block main process
* make AtomMenuModel refcounted
* add support for ansi codes in title
add remove TODOs
* chore: use ScopedPumpMessagesInPrivateModes in tray (#18977 )
* chore: use ScopedPumpMessagesInPrivateModes in tray
* revert refcounting of AtomMenuModel
* Prefer WeakPtr for posting tasks to handle unexpected destruction
* cleanup .h
* cleanup .mm
* add imports
add missing include
* fix: crash when tray popup called twice (#18999 )
* remove highlightMode and TODOs
* remove unnecessary copy
2019-07-31 10:52:50 -07:00
Shelley Vohr
51ce3e5a83
fix: set default dock bounce type ( #19523 )
2019-07-31 08:20:45 -07:00
Milan Burda
d6605193a1
build: fix with ENABLE_OSR disabled ( #19533 )
2019-07-31 14:34:04 +02:00
Shelley Vohr
69646f4258
fix: throw better error on getPath('logs') ( #19514 )
2019-07-30 13:55:04 -07:00
Milan Burda
9ab3ec080f
fix: tray.displayBalloon() does not work with custom icon on Windows ( #19330 )
2019-07-30 14:06:16 +02:00
Micha Hanselmann
42a483ad27
feat: add getBounds() method for BrowserView ( #19370 )
...
* implement getBounds on mac
* add Linux/Win impl
* add test
* add docs
2019-07-29 19:43:05 -07:00
Shelley Vohr
aaca9011ae
fix: [wc|bw]-created events do not emit an event object ( #19465 )
...
* fix: emit real Event instead of empty object in [wc|bw]
* chore: add ability to emit empty events
2019-07-29 13:54:37 -07:00
Shelley Vohr
c6bcf49acc
chore: clean up BrowserView/TopLevelWindow New impl ( #19375 )
...
* chore: clean up BrowserView::New impl
* also default TL win options dict
2019-07-26 16:18:13 -07:00
Jeremy Apthorp
477661d0e4
feat: allow setting capture mode and max file size in netLog API ( #19215 )
2019-07-25 16:06:39 -07:00
Shelley Vohr
49096c2359
fix: throw on invalid webRequest filters ( #19337 )
...
Closes #11371 .
Previously, we didn't consider the return value of the webRequest URLPattern mate converter, which meant that when the pattern wasn't correctly parsed owing to invalid filter specification users would not be made aware of that fact and would just think that the filtering itself had failed. This corrects that error by moving the business logic of url pattern parsing out of the converter and into the function itself so that granular and specific errors can be thrown.
There's also no real reason that i'm aware of not to allow wider breadth of filters by letting users use a wildcard for effective TLD, so I also overrode that (default for the 1-arg Parse is not to allow that).
Finally, I added some examples of url filter types for users to reference.
2019-07-25 10:20:02 -07:00
Charles Kerr
f6fb877de9
chore: pass base::StringPiece args by value ( #19432 )
...
https://cs.chromium.org/chromium/src/base/strings/string_piece.h?l=14
discusses this, saying "Prefer passing StringPieces by value" because
"[p]assing by value generates slightly smaller code."
2019-07-25 10:19:04 -05:00
Samuel Maddock
95977291f7
feat: preliminary support for //extensions ( #17440 )
2019-07-24 16:01:08 -07:00
Electron Bot
bd526f97a5
chore: bump chromium to 79eae5b7b2d9dac441ac0182ee160 (master) ( #19166 )
2019-07-24 15:58:51 -07:00
Milan Burda
103b38650f
feat: add memory to app.getAppMetrics() ( #18831 )
2019-07-23 13:41:58 -07:00