WebKit Bugzilla
Attachment 373664 Details for
Bug 199588
: Web Inspector: REGRESSION: Elements: pasting in the Styles sidebar adds a text node to the DOM tree
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
bug-199588-20190708141920.patch (text/plain), 1.46 KB, created by
Devin Rousso
on 2019-07-08 14:19:21 PDT
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Devin Rousso
Created:
2019-07-08 14:19:21 PDT
Size:
1.46 KB
patch
obsolete
>diff --git a/Source/WebInspectorUI/ChangeLog b/Source/WebInspectorUI/ChangeLog >index 1df39540308c474a657fd4d918c8968189b1f1c8..85a582917de5ead78aba978213de6d6783ee15e1 100644 >--- a/Source/WebInspectorUI/ChangeLog >+++ b/Source/WebInspectorUI/ChangeLog >@@ -1,3 +1,15 @@ >+2019-07-08 Devin Rousso <drousso@apple.com> >+ >+ Web Inspector: REGRESSION: Elements: pasting in the Styles sidebar adds a text node to the DOM tree >+ https://bugs.webkit.org/show_bug.cgi?id=199588 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ * UserInterface/Base/Main.js: >+ (WI._paste): >+ Bail if `event.defaultPrevented`, as that means that something else has handled (and likely >+ overrode) this event. >+ > 2019-07-06 Nikita Vasilyev <nvasilyev@apple.com> > > Web Inspector: Styles: unbalanced quotes and parenthesis aren't displayed as property closed after editing values >diff --git a/Source/WebInspectorUI/UserInterface/Base/Main.js b/Source/WebInspectorUI/UserInterface/Base/Main.js >index e9e6acdcaee26b486eda0a8bdb3bded2aece6053..d6d807303ac5ffb0728f2e54c34361c9e4fb5f09 100644 >--- a/Source/WebInspectorUI/UserInterface/Base/Main.js >+++ b/Source/WebInspectorUI/UserInterface/Base/Main.js >@@ -2623,6 +2623,9 @@ WI._copy = function(event) > > WI._paste = function(event) > { >+ if (event.defaultPrevented) >+ return; >+ > let selection = window.getSelection(); > > // If there is no selection, pass the paste event on to the focused element or focused ContentView.
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 199588
: 373664