electron/lib/renderer/api
Samuel Attard d6bb9b40b0
feat: add webUtils module with getPathForFile method (#38776)
* feat: add blinkUtils module with getPathForFile method

This is designed to replace the File.path augmentation
we currently have in place to allow apps to get the filesystem
path for a file that blink has a representation of.

File.path is non-standard and messes with certain websites, using
a method like this is effectively 0-cost and removes one of the final
deviations we have with web standards.

* add error

* refactor: update per PR feedback

* chore: update patches

* oops

* chore: update patches

* chore: update patches

* feat: add blinkUtils module with getPathForFile method

This is designed to replace the File.path augmentation
we currently have in place to allow apps to get the filesystem
path for a file that blink has a representation of.

File.path is non-standard and messes with certain websites, using
a method like this is effectively 0-cost and removes one of the final
deviations we have with web standards.

* add error

* refactor: update per PR feedback

* chore: update patches

* oops

* chore: update patches

* chore: update patches

* chore: update patches

* fix: provide isolate to WebBlob::FromV8Value

* chore: add tests

* build: fix depshash mismatch on arm64 macOS

---------

Co-authored-by: PatchUp <73610968+patchup[bot]@users.noreply.github.com>
2023-11-20 15:59:36 -08:00
..
exports build: enable JS semicolons (#22783) 2020-03-20 13:28:31 -07:00
clipboard.ts refactor: split clipboard module implementation for browser / renderer (#38429) 2023-05-25 20:36:12 +09:00
context-bridge.ts feat: add exposeInIsolatedWorld(worldId, key, api) to contextBridge (#34974) 2022-09-21 13:17:10 -05:00
crash-reporter.ts chore: remove deprecated crashReporter APIs (#26695) 2020-11-26 22:07:40 +03:00
ipc-renderer.ts refactor: ensure IpcRenderer is not bridgable (#40330) 2023-10-31 17:29:40 -04:00
module-list.ts feat: add webUtils module with getPathForFile method (#38776) 2023-11-20 15:59:36 -08:00
web-frame.ts refactor: clean up webFrame implementation to use gin wrappers (#28497) 2021-04-12 16:35:18 -07:00
web-utils.ts feat: add webUtils module with getPathForFile method (#38776) 2023-11-20 15:59:36 -08:00