Bug 189808 - Web Inspector: remove Legacy Style Editor
Summary: Web Inspector: remove Legacy Style Editor
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Devin Rousso
URL:
Keywords: InRadar
Depends on: 183627 189807
Blocks: 189864
  Show dependency treegraph
 
Reported: 2018-09-20 16:28 PDT by Devin Rousso
Modified: 2018-09-21 15:44 PDT (History)
7 users (show)

See Also:


Attachments
Patch (224.07 KB, patch)
2018-09-20 19:45 PDT, Devin Rousso
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews102 for mac-sierra (2.01 MB, application/zip)
2018-09-20 20:18 PDT, EWS Watchlist
no flags Details
Patch (242.66 KB, patch)
2018-09-20 21:20 PDT, Devin Rousso
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews103 for mac-sierra (2.43 MB, application/zip)
2018-09-20 22:26 PDT, EWS Watchlist
no flags Details
Archive of layout-test-results from ews106 for mac-sierra-wk2 (3.47 MB, application/zip)
2018-09-20 22:59 PDT, EWS Watchlist
no flags Details
Patch (255.00 KB, patch)
2018-09-20 23:06 PDT, Devin Rousso
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Devin Rousso 2018-09-20 16:28:24 PDT
The Legacy Style Editor has been hidden behind an "experimental" setting for almost a year.  It's time that we remove it, especially since the new Style Editor is at a similar, if not more advanced, state.
Comment 1 Devin Rousso 2018-09-20 19:45:45 PDT
Created attachment 350308 [details]
Patch
Comment 2 EWS Watchlist 2018-09-20 20:18:53 PDT Comment hidden (obsolete)
Comment 3 EWS Watchlist 2018-09-20 20:18:54 PDT Comment hidden (obsolete)
Comment 4 Devin Rousso 2018-09-20 21:20:43 PDT
Created attachment 350323 [details]
Patch

Forgot to upload my changes to what files are included
Comment 5 EWS Watchlist 2018-09-20 22:26:48 PDT Comment hidden (obsolete)
Comment 6 EWS Watchlist 2018-09-20 22:26:49 PDT Comment hidden (obsolete)
Comment 7 EWS Watchlist 2018-09-20 22:59:51 PDT Comment hidden (obsolete)
Comment 8 EWS Watchlist 2018-09-20 22:59:53 PDT Comment hidden (obsolete)
Comment 9 Devin Rousso 2018-09-20 23:06:13 PDT
Created attachment 350333 [details]
Patch
Comment 10 Joseph Pecoraro 2018-09-21 10:55:04 PDT
Comment on attachment 350333 [details]
Patch

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

r=me. Awesome, this looks like a pretty thorough removal!

> Source/WebInspectorUI/ChangeLog:16
> +        * Tools/PrettyPrinting/index.html:

Nice!

> Source/WebInspectorUI/ChangeLog:104
> +        * UserInterface/Views/CodeMirrorFormatters.js:
> +        Remove "css-rule" CodeMirror mode.

The CodeMirror "javascript" formatter in here can actually be removed as well. I always thought we might use it for smaller chunks of things but it looks like it is unreachable now. We can remove that in a separate patch.

> LayoutTests/inspector/css/css-property.html:190
> -                        InspectorTest.expectEqual(property.text, "background-repeat-y: repeat;", `"${property.name}" has the text "background-repeat-y: repeat;".`);
> +                        InspectorTest.expectEqual(property.text, "", `"${property.name}" has the text "".`);

This seems different.
Comment 11 Devin Rousso 2018-09-21 11:00:16 PDT
Comment on attachment 350333 [details]
Patch

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

>> LayoutTests/inspector/css/css-property.html:190
>> +                        InspectorTest.expectEqual(property.text, "", `"${property.name}" has the text "".`);
> 
> This seems different.

This is explained in a comment on line 175-178 of this file.  `CSSProperty.prototype.synthesizedText` was removed, so we no longer synthesize a value.

The reason that `background-repeat-x` still has a value is because it is explicitly defined in the `<style>` on line 254 of this file.
Comment 12 WebKit Commit Bot 2018-09-21 11:30:18 PDT
Comment on attachment 350333 [details]
Patch

Clearing flags on attachment: 350333

Committed r236336: <https://trac.webkit.org/changeset/236336>
Comment 13 WebKit Commit Bot 2018-09-21 11:30:20 PDT
All reviewed patches have been landed.  Closing bug.
Comment 14 Radar WebKit Bug Importer 2018-09-21 11:32:00 PDT
<rdar://problem/44686735>
Comment 15 Truitt Savell 2018-09-21 13:28:12 PDT
Looks like https://trac.webkit.org/changeset/236336/webkit

Has caused inspector/css/pseudo-element-matches-for-pseudo-element-node.html to fail continuously on Mac Release 

history:
https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&tests=inspector%2Fcss%2Fpseudo-element-matches-for-pseudo-element-node.html

Diff:
--- /Volumes/Data/slave/highsierra-release-tests-wk1/build/layout-test-results/inspector/css/pseudo-element-matches-for-pseudo-element-node-expected.txt
+++ /Volumes/Data/slave/highsierra-release-tests-wk1/build/layout-test-results/inspector/css/pseudo-element-matches-for-pseudo-element-node-actual.txt
@@ -9,8 +9,8 @@
 PASS: No Inherited Styles
 PASS: No Pseudo Element Styles
 PASS: Has Computed Styles
-PROPERTY: content: before;
-PROPERTY: color: rgb(0, 0, 255);
+PROPERTY: 
+PROPERTY: 
 MATCHED RULE:
   SELECTOR: input:before
   SELECTOR: #x:before [matched]