fix: enable spell checking, which broke in upgrade to ch66
Chromium commit [03563dd163][1] changed the way that the
spellcheck-enabled status was checked, defaulting to false.
Added the first (!) test for spellchecking, too.
Fixes #13608.
[1]: 03563dd163
This commit is contained in:
parent
6fbec9d5a9
commit
bdceea6aca
4 changed files with 38 additions and 0 deletions
13
spec/fixtures/pages/webframe-spell-check.html
vendored
Normal file
13
spec/fixtures/pages/webframe-spell-check.html
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
<html>
|
||||
<body>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
const {ipcRenderer, webFrame} = require('electron')
|
||||
webFrame.setSpellCheckProvider('en-US', true, {
|
||||
spellCheck: text => {
|
||||
ipcRenderer.send('spec-spell-check', text)
|
||||
}
|
||||
})
|
||||
</script>
|
||||
<input autofocus />
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue