Closed
Bug 1489098
Opened 7 years ago
Closed 7 years ago
Remove useless use of PromiseFlatString
Categories
(Core :: DOM: Core & HTML, enhancement, P3)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla64
| Tracking | Status | |
|---|---|---|
| firefox64 | --- | fixed |
People
(Reporter: hsivonen, Assigned: hsivonen)
Details
Attachments
(1 file)
PromiseFlatString(value).get()
should be
value.BeginReading()
(Or GetDirectionFromText() could be refactored to take a Span.)
| Assignee | ||
Comment 1•7 years ago
|
||
Morphing to a more general bug.
Assignee: nobody → hsivonen
Status: NEW → ASSIGNED
Component: Internationalization → String
Summary: Useless use of PromiseFlatString in SetDirectionalityFromValue → Remove useless use of PromiseFlatString
| Assignee | ||
Comment 2•7 years ago
|
||
(I found these while I was checking if we have more bugs like bug 1488452.)
| Assignee | ||
Comment 3•7 years ago
|
||
Useless use of PromiseFlatCString tends to be more complex. (Forgetting the string length in one function and recomputing it in another.) That problem is so vast is doesn't make sense to try to deal with it here.
| Assignee | ||
Comment 4•7 years ago
|
||
| Assignee | ||
Comment 5•7 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=d2f5feff9263eb559f23c791c6eff27d190d3528
All of these are under dom/.
Component: String → DOM
| Assignee | ||
Updated•7 years ago
|
Priority: -- → P3
| Assignee | ||
Comment 6•7 years ago
|
||
I checked PromiseFlatCString usage for the problem seen in bug 1488452 and, fortunately, didn't find any. Bug 1488452 looks like a unique misuse of PromiseFlatString.
| Assignee | ||
Comment 7•7 years ago
|
||
MozReview-Commit-ID: 10JE4PRp8i0
Comment 8•7 years ago
|
||
Comment on attachment 9007146 [details]
Bug 1489098 - Remove useless use of PromiseFlatString.
Peter Van der Beken [:peterv] has approved the revision.
Attachment #9007146 -
Flags: review+
Pushed by hsivonen@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ea41800d0ae0
Remove useless use of PromiseFlatString. r=peterv
Comment 10•7 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox64:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•