navigator.clipboard.readText() not working

Brave: 0.24.0
V8: 6.9.427.23
rev: f657f15bf7e0e0c50a2b854c6b05edb59bfc556c
Muon: 8.1.6
OS Release: 6.1.7601
Update Channel: Release
OS Architecture: x64
OS Platform: Microsoft Windows
Node.js: 7.9.0
Brave Sync: v1.4.2
libchromiumcontent: 69.0.3497.100

The following Javascript access to the clipboard does nothing thought the permission is ‘granted’ if asked, no display of the clipboard text and no error, please kindly advise as for now it is impossible to use Brave until copy paste is working as intended

.then(text => {
console.log('Pasted content: '+text);
.catch(err => {
console.error('Failed to read clipboard contents: ', err);

Hi @ftguy,

I attempted to run the above code using JSFiddle and basically got the same results with 0.24.0, 0.23.107, 0.23.105 and 0.23.104. Running the above code will result in the following via the browser console:

(index):35 Failed to read clipboard contents: undefined
navigator.clipboard.readText.then.catch.err @ (index):35
Promise.catch (async)
window.onload @ (index):34
load (async)
(anonymous) @ (index):28

I also got the same results with the latest Chrome:

Google Chrome 69.0.3497.100 (Official Build) (64-bit)
Revision 8920e690dd011895672947112477d10d5c8afb09-refs/branch-heads/3497@{#948}

Do you happen to know what version the above code worked for you? CCing @clifton.

Here is below a test code, if you CTRL-C any text and then press the “Paste It” button, it should display the text , at least it does on chrome, on BRAVE it does nothing…

Paste it

Thank you for reporting the issue.

I was able to reproduce the issue on v0.24.0 on Windows 7 x64.
The pasting from clipboard fails silently.

On Chrome it works, but first user is prompted for clipboard usage.

I have reported the issue:

@ftguy I have tested our new browser that is still in heavy development and it works!

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.