New issue
Advanced search Search tips

Issue 685385 link

Starred by 3 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Bug

Blocking:
issue 806159



Sign in to add a comment

DevTools: Convert to Shadow DOM v1

Project Member Reported by einbinder@chromium.org, Jan 25 2017

Issue description

Some of our tests use /deep/ and :shadow selectors.
Some of our components use ::content to style the light dom.
 
Components: Platform>DevTools
Project Member

Comment 4 by bugdroid1@chromium.org, Jan 28 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/50ae54449909cd460dfa06eb4bcef261363e8cb4

commit 50ae54449909cd460dfa06eb4bcef261363e8cb4
Author: einbinder <einbinder@chromium.org>
Date: Sat Jan 28 00:18:16 2017

Revert of DevTools: Move radio button input element into Shadow DOM (patchset #1 id:1 of https://codereview.chromium.org/2650213005/ )

Reason for revert:
Breaks all the radio buttons

Original issue's description:
> DevTools: Move radio button input element into Shadow DOM
>
> BUG=685385
>
> Review-Url: https://codereview.chromium.org/2650213005
> Cr-Commit-Position: refs/heads/master@{#446606}
> Committed: https://chromium.googlesource.com/chromium/src/+/b115a08ad32ae5beda325c98ba50446b7e034eab

TBR=dgozman@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=685385

Review-Url: https://codereview.chromium.org/2661623003
Cr-Commit-Position: refs/heads/master@{#446843}

[modify] https://crrev.com/50ae54449909cd460dfa06eb4bcef261363e8cb4/third_party/WebKit/Source/devtools/front_end/network/networkConfigView.css
[modify] https://crrev.com/50ae54449909cd460dfa06eb4bcef261363e8cb4/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js
[modify] https://crrev.com/50ae54449909cd460dfa06eb4bcef261363e8cb4/third_party/WebKit/Source/devtools/front_end/ui/radioButton.css

Comment 6 by kochi@chromium.org, May 11 2018

Cc: kochi@chromium.org

Comment 7 by kochi@chromium.org, May 11 2018

Blocking: 806159

Comment 8 by kochi@chromium.org, May 11 2018

Here's my analysis of SDv0 / CEv0 API usage in devtools:
https://docs.google.com/document/d/1sOkgQvbmSIM_jRd9joFXPqtywZALHFp6FFrLkwHwIXo/edit

Here's my attempt to convert not all of them:
https://chromium-review.googlesource.com/c/chromium/src/+/1027450

For the reference, here's another attempt converting just the custom element registration for now: https://chromium-review.googlesource.com/c/chromium/src/+/1344139
Project Member

Comment 10 by bugdroid1@chromium.org, Dec 8

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/d828088b0546192c7cb08fd8404ead6422e39cdf

commit d828088b0546192c7cb08fd8404ead6422e39cdf
Author: Joel Einbinder <einbinder@chromium.org>
Date: Sat Dec 08 01:01:37 2018

DevTools: Shadow DOM v0 polyfill

This polyfills Shadow DOM v0 on top of Shadow DOM v1 for old devtools
front ends.

Bug: 685385
Change-Id: Ia2a79a86012cbec2fc7cff3cb36fe4c9b631a381
Reviewed-on: https://chromium-review.googlesource.com/c/1366325
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Commit-Queue: Joel Einbinder <einbinder@chromium.org>
Cr-Commit-Position: refs/heads/master@{#614893}
[modify] https://crrev.com/d828088b0546192c7cb08fd8404ead6422e39cdf/third_party/blink/renderer/devtools/front_end/devtools_compatibility.js

Project Member

Comment 11 by bugdroid1@chromium.org, Dec 12

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/64e9bfb30b51952e956210ce1c60a6b69e2b405f

commit 64e9bfb30b51952e956210ce1c60a6b69e2b405f
Author: Joel Einbinder <einbinder@chromium.org>
Date: Wed Dec 12 02:01:12 2018

DevTools: Polyfill Custom Elements V0 for old frontends

Bug: 685385
Change-Id: I1adae3ac86a2af361b1253f7e723aa86a7ce397e
Reviewed-on: https://chromium-review.googlesource.com/c/1371086
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Commit-Queue: Joel Einbinder <einbinder@chromium.org>
Cr-Commit-Position: refs/heads/master@{#615780}
[modify] https://crrev.com/64e9bfb30b51952e956210ce1c60a6b69e2b405f/third_party/blink/renderer/devtools/front_end/devtools_compatibility.js

Project Member

Comment 12 by bugdroid1@chromium.org, Jan 18 (6 days ago)

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/2b7dcc04c0e3e466073905f9c8e9f088798438f8

commit 2b7dcc04c0e3e466073905f9c8e9f088798438f8
Author: Joel Einbinder <einbinder@chromium.org>
Date: Fri Jan 18 02:01:18 2019

DevTools: Remove ShadowDOM from TextPrompt

The previous text prompt implementation relied heavily on ::content.

Bug: 685385
Change-Id: I20a2b4aa098e17e8b940ad4048e36ce7b5017551
Reviewed-on: https://chromium-review.googlesource.com/c/1410873
Commit-Queue: Joel Einbinder <einbinder@chromium.org>
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#623954}
[modify] https://crrev.com/2b7dcc04c0e3e466073905f9c8e9f088798438f8/third_party/blink/renderer/devtools/front_end/elements_test_runner/ElementsTestRunner.js
[modify] https://crrev.com/2b7dcc04c0e3e466073905f9c8e9f088798438f8/third_party/blink/renderer/devtools/front_end/ui/TextPrompt.js
[modify] https://crrev.com/2b7dcc04c0e3e466073905f9c8e9f088798438f8/third_party/blink/renderer/devtools/front_end/ui/textPrompt.css
[modify] https://crrev.com/2b7dcc04c0e3e466073905f9c8e9f088798438f8/third_party/blink/web_tests/http/tests/devtools/elements/styles/styles-mouse-test.js
[modify] https://crrev.com/2b7dcc04c0e3e466073905f9c8e9f088798438f8/third_party/blink/web_tests/http/tests/devtools/elements/styles/up-down-numerics-and-colors.js
[modify] https://crrev.com/2b7dcc04c0e3e466073905f9c8e9f088798438f8/third_party/blink/web_tests/http/tests/devtools/unit/text-prompt-hint.js

Project Member

Comment 13 by bugdroid1@chromium.org, Jan 18 (6 days ago)

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/d58585ed08d92f075d39ea9e684fe78777700940

commit d58585ed08d92f075d39ea9e684fe78777700940
Author: Joel Einbinder <einbinder@chromium.org>
Date: Fri Jan 18 02:28:46 2019

DevTools: Remove ShadowDOM from text-button

With ShadowDOM v1, shadow roots can no longer be attached to buttons.

Bug: 685385
Change-Id: I57500c976fb3b31c43344dcaeef2140b93a38b80
Reviewed-on: https://chromium-review.googlesource.com/c/1413356
Commit-Queue: Joel Einbinder <einbinder@chromium.org>
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#623963}
[modify] https://crrev.com/d58585ed08d92f075d39ea9e684fe78777700940/third_party/blink/renderer/devtools/front_end/emulation/sensors.css
[modify] https://crrev.com/d58585ed08d92f075d39ea9e684fe78777700940/third_party/blink/renderer/devtools/front_end/ui/UIUtils.js
[modify] https://crrev.com/d58585ed08d92f075d39ea9e684fe78777700940/third_party/blink/renderer/devtools/front_end/ui/textButton.css
[modify] https://crrev.com/d58585ed08d92f075d39ea9e684fe78777700940/third_party/blink/web_tests/http/tests/devtools/security/interstitial-sidebar-expected.txt
[modify] https://crrev.com/d58585ed08d92f075d39ea9e684fe78777700940/third_party/blink/web_tests/http/tests/devtools/security/origin-view-ct-compliance-expected.txt
[modify] https://crrev.com/d58585ed08d92f075d39ea9e684fe78777700940/third_party/blink/web_tests/http/tests/devtools/security/origin-view-then-interstitial-expected.txt
[modify] https://crrev.com/d58585ed08d92f075d39ea9e684fe78777700940/third_party/blink/web_tests/http/tests/devtools/security/security-details-updated-with-security-state-expected.txt
[modify] https://crrev.com/d58585ed08d92f075d39ea9e684fe78777700940/third_party/blink/web_tests/http/tests/devtools/security/security-explanation-ordering-expected.txt

Comment 14 by yoichio@chromium.org, Yesterday (44 hours ago)

Cc: -kochi@chromium.org yoichio@chromium.org
Labels: -Pri-3 M-74 Pri-1
I prioritized this as P1 for next milestone.

Comment 15 by yoichio@chromium.org, Yesterday (44 hours ago)

As comment 11, DevTool doesn't use Custom Element v0 and only Shadow DOM v0 is left?

Comment 16 by yoichio@chromium.org, Yesterday (26 hours ago)

FYI, this is the patch that removes Shadow DOM V0, Custom Element V0 and HTML Imports APIs that would be shipped since M74
https://chromium-review.googlesource.com/c/chromium/src/+/1420637

As you might know, the patch that reenables the APIs for DevTools on the patch was shipped:
https://chromium-review.googlesource.com/c/chromium/src/+/1362713
This is a last-resort for the removal and should be reverted.

So we need both to patch 1420637 and revert 1362713 to confirm if migration works.

Sign in to add a comment