Bug 56114 - Web Inspector: when console.groupEnd calls twice
Summary: Web Inspector: when console.groupEnd calls twice
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P1 Normal
Assignee: Yury Semikhatsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-10 09:54 PST by Alex Yaroshevich
Modified: 2011-03-15 06:09 PDT (History)
10 users (show)

See Also:


Attachments
Patch (4.95 KB, patch)
2011-03-15 05:52 PDT, Yury Semikhatsky
pfeldman: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Yaroshevich 2011-03-10 09:54:31 PST
When I call this in opened console (or in plugin):
<code>
console.group('root group');

  // inner group
  console.group('subgroup');
    console.log('log in subgroup');
    console.warn('warn in subgroup');
  console.groupEnd('subgroup');

  // Probably not needed
  console.group('another subgroup');
    console.debug('debug in the second subgroup');
  console.groupEnd('another subgroup');

console.groupEnd('root group');

// bug here:
console.log('test log message after double groupEnd to root level'); // but root group doesn't closed
</code>

The last log-message not in a place it must be.

But it works if I call console.debug (or any other) with some text after each console.groupEnd.
Comment 1 Yury Semikhatsky 2011-03-15 05:52:42 PDT
Created attachment 85798 [details]
Patch
Comment 2 Yury Semikhatsky 2011-03-15 06:09:39 PDT
Committed r81129: <http://trac.webkit.org/changeset/81129>