Changeset 268630 in webkit


Ignore:
Timestamp:
Oct 16, 2020 9:08:43 PM (4 years ago)
Author:
Devin Rousso
Message:

Web Inspector: REGRESSION(r266885): LoggingChannel.js:31:23: CONSOLE ASSERT ERROR
https://bugs.webkit.org/show_bug.cgi?id=217864

Reviewed by Timothy Hatcher.

r266885 changed Console.getLoggingChannels to return any Console.ChannelSource that
existed, rather than a hardcoded list. Remove the similarly hardcoded list in the frontend.

  • UserInterface/Models/LoggingChannel.js:

(WI.LoggingChannel):

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r268626 r268630  
     12020-10-16  Devin Rousso  <drousso@apple.com>
     2
     3        Web Inspector: REGRESSION(r266885): LoggingChannel.js:31:23: CONSOLE ASSERT ERROR
     4        https://bugs.webkit.org/show_bug.cgi?id=217864
     5
     6        Reviewed by Timothy Hatcher.
     7
     8        r266885 changed `Console.getLoggingChannels` to return any `Console.ChannelSource` that
     9        existed, rather than a hardcoded list. Remove the similarly hardcoded list in the frontend.
     10
     11        * UserInterface/Models/LoggingChannel.js:
     12        (WI.LoggingChannel):
     13
    1142020-10-16  Devin Rousso  <drousso@apple.com>
    215
  • trunk/Source/WebInspectorUI/UserInterface/Models/LoggingChannel.js

    r241729 r268630  
    2929    {
    3030        console.assert(typeof source === "string");
    31         console.assert(source === WI.ConsoleMessage.MessageSource.Media || source === WI.ConsoleMessage.MessageSource.WebRTC || source === WI.ConsoleMessage.MessageSource.MediaSource);
     31        console.assert(Object.values(WI.ConsoleMessage.MessageSource).includes(source), source);
    3232
    3333        console.assert(typeof level === "string");
    34         console.assert(Object.values(WI.LoggingChannel.Level).includes(level));
     34        console.assert(Object.values(WI.LoggingChannel.Level).includes(level), level);
    3535
    3636        this._source = source;
Note: See TracChangeset for help on using the changeset viewer.