Closed Bug 1248022 Opened 8 years ago Closed 8 years ago

ConsoleEvent.styles can be a sequence of nullable strings.

Categories

(Core :: DOM: Core & HTML, defect)

39 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla47
Tracking Status
firefox47 --- fixed

People

(Reporter: baku, Assigned: baku)

Details

Attachments

(1 file)

Attached patch console1.patchSplinter Review
      No description provided.
Attachment #8718947 - Flags: review?(bzbarsky)
Comment on attachment 8718947 [details] [diff] [review]
console1.patch

>+              if (!aStyles.AppendElement(EmptyString(), fallible)) {

You mean NullString(), right?  Please add a test, since apparently we have no test coverage for this....

>+          if (!aStyles.AppendElement(string, fallible)) {

So this is going to make a copy out of the autostring.  I guess in practice this is not a big deal, and all our APIs around this suck a bit, sadly...

r=me with the NullString() fixed.
Attachment #8718947 - Flags: review?(bzbarsky) → review+
> You mean NullString(), right?  Please add a test, since apparently we have
> no test coverage for this....

We have some tests here: shared/webconsole/test/test_console_styling.html
https://hg.mozilla.org/mozilla-central/rev/db0f2e9327af
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: