<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>211405</bug_id>
          
          <creation_ts>2020-05-04 15:07:20 -0700</creation_ts>
          <short_desc>REGRESSION (r261109): [ Mac ] inspector/css/getAllStyleSheets.html is failing</short_desc>
          <delta_ts>2020-05-04 16:23:08 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Web Inspector</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Truitt Savell">tsavell</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>hi</cc>
    
    <cc>inspector-bugzilla-changes</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1648762</commentid>
    <comment_count>0</comment_count>
    <who name="Truitt Savell">tsavell</who>
    <bug_when>2020-05-04 15:07:20 -0700</bug_when>
    <thetext>inspector/css/getAllStyleSheets.html

This test it failing sense the changes in r261109

History:
https://results.webkit.org/?suite=layout-tests&amp;test=inspector%2Fcss%2FgetAllStyleSheets.html

Diff:
--- /Volumes/Data/slave/catalina-release-tests-wk1/build/layout-test-results/inspector/css/getAllStyleSheets-expected.txt
+++ /Volumes/Data/slave/catalina-release-tests-wk1/build/layout-test-results/inspector/css/getAllStyleSheets-actual.txt
@@ -1,20 +1,35 @@
 Test CSS.getAllStyleSheets returns expected information for different style sheet sources.
 
-PASS: There should be four stylesheets.
+Uncaught exception in Inspector page: WI.cssManager.fetchStyleSheetsIfNeeded is not a function. (In &apos;WI.cssManager.fetchStyleSheetsIfNeeded()&apos;, &apos;WI.cssManager.fetchStyleSheetsIfNeeded&apos; is undefined)
 
-URL: inspector/css/resources/external.css
-OFFSET: (0, 0)
-PASS: Stylesheet should have a frame.
+Stack Trace:
+#0: (anonymous) (test)
+#1: (anonymous) (runTestMethodInFrontend)
+#2: (anonymous) (eval code)
+#3: eval [native code]
+#4: (anonymous) (TestCombined.js:9590:24)
+#5: _flushPendingScripts (TestCombined.js:7778:24)
+#6: _dispatchResponse (TestCombined.js:7628:38)
+#7: dispatch (TestCombined.js:7567:35)
+#8: dispatch (TestCombined.js:7160:52)
+#9: (anonymous) (TestCombined.js:8098:34)
 
-URL: &lt;style&gt; on inspector/css/getAllStyleSheets.html
-OFFSET: (5, 7)
-PASS: Stylesheet should have a frame.
+Evaluated Code:
+function test()
+{
+    WI.cssManager.fetchStyleSheetsIfNeeded();
+    InspectorBackend.runAfterPendingDispatches(function() {
+        let styleSheets = WI.cssManager.styleSheets;
+        InspectorTest.expectThat(styleSheets.length === 4, &quot;There should be four stylesheets.&quot;);
 
-URL: &lt;style&gt; on inspector/css/getAllStyleSheets.html
-OFFSET: (6, 7)
-PASS: Stylesheet should have a frame.
+        for (let styleSheet of styleSheets) {
+            InspectorTest.log(&quot;&quot;);
+            InspectorTest.log(`URL: ${styleSheet.isInlineStyleTag() ? &quot;&lt;style&gt; on &quot; : &quot;&quot;}${sanitizeURL(styleSheet.url)}`);
+            InspectorTest.log(`OFFSET: (${styleSheet.startLineNumber}, ${styleSheet.startColumnNumber})`);
+            InspectorTest.expectThat(styleSheet.parentFrame, &quot;Stylesheet should have a frame.&quot;);
+        }
 
-URL: inspector/css/getAllStyleSheets.html
-OFFSET: (0, 0)
-PASS: Stylesheet should have a frame.
+        InspectorTest.completeTest();
+    });
+}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1648763</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-05-04 15:07:40 -0700</bug_when>
    <thetext>&lt;rdar://problem/62863843&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1648807</commentid>
    <comment_count>2</comment_count>
    <who name="Devin Rousso">hi</who>
    <bug_when>2020-05-04 16:23:08 -0700</bug_when>
    <thetext>Committed r261122: &lt;https://trac.webkit.org/changeset/261122&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>