Bug 113798 - Web Inspector: [REGRESSION(r147117)][Elements] Copy/paste keyboard shortcuts broken in "Edit as HTML"
Summary: Web Inspector: [REGRESSION(r147117)][Elements] Copy/paste keyboard shortcuts ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Alexander Pavlov (apavlov)
URL:
Keywords:
Depends on:
Blocks: 113306
  Show dependency treegraph
 
Reported: 2013-04-02 09:32 PDT by WebKit Review Bot
Modified: 2013-04-03 03:23 PDT (History)
2 users (show)

See Also:


Attachments
ROLLOUT of r147117 (16.80 KB, patch)
2013-04-02 09:32 PDT, WebKit Review Bot
no flags Details | Formatted Diff | Diff
Patch (3.60 KB, patch)
2013-04-02 11:44 PDT, Alexander Pavlov (apavlov)
no flags Details | Formatted Diff | Diff
Patch (3.07 KB, patch)
2013-04-02 12:34 PDT, Alexander Pavlov (apavlov)
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description WebKit Review Bot 2013-04-02 09:32:16 PDT
http://trac.webkit.org/changeset/147117 broke the build:
This patch breaks copy/paste keyboard shortcuts in Edit as HTML in Elements panel (Requested by alph on #webkit).

This is an automatic bug report generated by the sheriff-bot. If this bug
report was created because of a flaky test, please file a bug for the flaky
test (if we don't already have one on file) and dup this bug against that bug
so that we can track how often these flaky tests case pain.

"Only you can prevent forest fires." -- Smokey the Bear
Comment 1 WebKit Review Bot 2013-04-02 09:32:48 PDT
Created attachment 196164 [details]
ROLLOUT of r147117

Any committer can land this patch automatically by marking it commit-queue+.  The commit-queue will build and test the patch before landing to ensure that the rollout will be successful.  This process takes approximately 15 minutes.

If you would like to land the rollout faster, you can use the following command:

  webkit-patch land-attachment ATTACHMENT_ID

where ATTACHMENT_ID is the ID of this attachment.
Comment 2 Alexander Pavlov (apavlov) 2013-04-02 10:10:22 PDT
Comment on attachment 196164 [details]
ROLLOUT of r147117

I'm preparing a fix.
Comment 3 Alexander Pavlov (apavlov) 2013-04-02 11:44:52 PDT
Created attachment 196198 [details]
Patch
Comment 4 Pavel Feldman 2013-04-02 11:57:31 PDT
Comment on attachment 196198 [details]
Patch

I think editor should stop propagation of these events instead.
Comment 5 Alexander Pavlov (apavlov) 2013-04-02 12:34:36 PDT
Created attachment 196211 [details]
Patch
Comment 6 Yury Semikhatsky 2013-04-03 02:36:03 PDT
Comment on attachment 196211 [details]
Patch

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

> Source/WebCore/inspector/front-end/UIUtils.js:460
> +        element.addEventListener("copy", consumeCopy, true);

Should "copy" event listener be added/removed in WebInspector.CodeMirrorCSSLoadView show/detach? Or do we want to handle copy event in other places?
Comment 7 Alexander Pavlov (apavlov) 2013-04-03 02:40:56 PDT
Comment on attachment 196211 [details]
Patch

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

>> Source/WebCore/inspector/front-end/UIUtils.js:460
>> +        element.addEventListener("copy", consumeCopy, true);
> 
> Should "copy" event listener be added/removed in WebInspector.CodeMirrorCSSLoadView show/detach? Or do we want to handle copy event in other places?

CodeMirrorCSSLoadView is a fake view to handle CSS [un]loading required for the editor. This code is the most low-level one that manages the CodeMirror lifecycle, until we make CodeMirrorTextEditor universal enough to support various kinds of content editing.
Comment 8 WebKit Review Bot 2013-04-03 03:23:23 PDT
Comment on attachment 196211 [details]
Patch

Clearing flags on attachment: 196211

Committed r147535: <http://trac.webkit.org/changeset/147535>
Comment 9 WebKit Review Bot 2013-04-03 03:23:26 PDT
All reviewed patches have been landed.  Closing bug.