Closed Bug 1529190 Opened 6 years ago Closed 6 years ago

InsertTagCommand::DoCommandParams() does not aware of non-ASCII URL

Categories

(Core :: DOM: Editor, enhancement, P2)

65 Branch
enhancement

Tracking

()

RESOLVED FIXED
mozilla67
Tracking Status
firefox67 --- fixed

People

(Reporter: masayuki, Assigned: masayuki)

References

Details

(Keywords: parity-chrome, parity-edge)

Attachments

(1 file)

InsertTagCommand::DoCommandParams() inserts given URL to href of <a> or src of <img>. However, it treats the given URL includes only ASCII characters. Therefore, we cannot insert URL including non-ASCII characters with execCommand("createLink") nor execCommand("insertImage").

InsertTagCommand::DoCommandParams() inserts given URL to href of <a> or
src of <img>. However, it treats the given URL includes only ASCII
characters. Therefore, we cannot insert URL including non-ASCII characters
with execCommand("createLink") nor execCommand("insertImage").

This patch makes the method assume that the 3rd parameter may include non-ASCII
characters.

Priority: -- → P2
Pushed by masayuki@d-toybox.com: https://hg.mozilla.org/integration/autoland/rev/fdc5726d5a27 Make `execCommand("createLink")` and `execCommand("insertImage")` aware of URL including non-ASCII characters r=m_kato
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla67
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/15573 for changes under testing/web-platform/tests
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: