Project

General

Profile

Actions

Patch #40499

open

Replace deprecated `document.execCommand` with Clipboard API in copyTextToClipboard function

Added by Go MAEDA 8 months ago. Updated 5 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Code cleanup/refactoring
Start date:
Due date:
% Done:

0%

Estimated time:

Description

The document.execCommand method in JavaScript is deprecated but the copyTextToClipboard uses the deprecated function. The attached patch replaces the document.execCommand with Clipboard API.

The reason the code added in r20816 uses execCommand is probably to support Internet Explorer, but we no longer need to consider compatibility with Internet Explorer.


Files

Actions #1

Updated by Go MAEDA 5 months ago

  • Target version set to Candidate for next major release
Actions

Also available in: Atom PDF