I've independently just discovered this, and can confirm it also occurs in Drupal 10 (10.2.1)
I also came across this on Pantheon - is_dir('public://x/x/files') is always TRUE.
For me, this caused problems with generating image style derivative images - FileSystem::prepareDirectory() would not create the directory (because it appears to exist), and image generation would fail with the following message:
TypeError: imagejpeg(): Argument #2 ($file) must be a file name or a stream resource, bool given in imagejpeg() (line 258 of core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php).
The patch works for me for Drupal 9.5.
I don't know what happened in #4, I was just trying to reply:
We noticed this too, and for us Gutenberg is more important than Devel, so I've reverted the #3335841 patch:
--- a/css/admin.toolbar.css 2023-05-02 10:40:57.902420206 +1200
+++ b/css/admin.toolbar.css 2023-05-02 10:40:44.362088511 +1200
@@ -9,10 +9,6 @@
background: #fff;
}
-#toolbar-bar {
- z-index: 100000;
-}
-
.toolbar-tray-horizontal a {
display: inline-block;
}