Bug 89307

Summary: Web Inspector: Make text in WebSocket Frames tab selectable
Product: WebKit Reporter: Nikita Vasilyev <me>
Component: Web Inspector (Deprecated)Assignee: Nikita Vasilyev <me>
Status: RESOLVED FIXED    
Severity: Normal CC: apavlov, bweinstein, joepeck, keishi, kpiascik, loislo, pfeldman, pmuellr, rik, timothy, webkit.review.bot, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
A fix none

Description Nikita Vasilyev 2012-06-17 09:16:41 PDT
Cannot copy text form WebSocket Frames tab introduced in https://bugs.webkit.org/show_bug.cgi?id=83282.
Comment 1 Nikita Vasilyev 2012-06-17 09:23:47 PDT
Created attachment 148012 [details]
A fix
Comment 2 Nikita Vasilyev 2012-06-17 09:32:04 PDT
Comment on attachment 148012 [details]
A fix

View in context: https://bugs.webkit.org/attachment.cgi?id=148012&action=review

> Source/WebCore/inspector/front-end/ResourceWebSocketFrameView.js:-26
> -    this.element.addStyleClass("html");

"html" class doesn’t seem to be used.

Should I use classList.add instead of addStyleClass? The latter is just a shortcut for the former but it has the same amount of characters. There is a bug related to it https://bugs.webkit.org/show_bug.cgi?id=72803
Comment 3 Yury Semikhatsky 2012-06-18 00:00:12 PDT
Comment on attachment 148012 [details]
A fix

View in context: https://bugs.webkit.org/attachment.cgi?id=148012&action=review

>> Source/WebCore/inspector/front-end/ResourceWebSocketFrameView.js:-26
>> -    this.element.addStyleClass("html");
> 
> "html" class doesn’t seem to be used.
> 
> Should I use classList.add instead of addStyleClass? The latter is just a shortcut for the former but it has the same amount of characters. There is a bug related to it https://bugs.webkit.org/show_bug.cgi?id=72803

It is OK to use addStyleClass here at the moment for consistency, we will switch the whole file to classList.add at once.
Comment 4 Nikita Vasilyev 2012-06-19 04:59:46 PDT
Is there any reason why the patch still not in commit-queue?
Comment 5 Pavel Feldman 2012-06-19 06:43:49 PDT
(In reply to comment #4)
> Is there any reason why the patch still not in commit-queue?

The reason is that auto-commit was not requested via commit-queue=?
Comment 6 WebKit Review Bot 2012-06-19 07:06:38 PDT
Comment on attachment 148012 [details]
A fix

Clearing flags on attachment: 148012

Committed r120710: <http://trac.webkit.org/changeset/120710>
Comment 7 WebKit Review Bot 2012-06-19 07:06:43 PDT
All reviewed patches have been landed.  Closing bug.
Comment 8 Nikita Vasilyev 2012-06-19 07:08:48 PDT
Pavel, totally forgot it. Thanks!