You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varserviceWorkerAnalysisTask=serviceWorkerDetectionTask.ContinueWith(t =>serviceWorkerAnalyzer.TryAnalyzeServiceWorkerAsync(t.Result,job.Url,analysisLogger,cancelTokenSrc.Token),TaskContinuationOptions.OnlyOnRanToCompletion).Unwrap();// This will update analysis.Capabilities.
// Step 7, if we didn't find a manifest but Lighthouse found one,
169
-
// create a new ManifestDetection and rerun the manifest analyzer.
170
-
// This is needed for some edge cases where the manifest isn't picked up by our manifest detection service, but is picked up by Lighthouse. Example edge case: https://www.instagram.com/?utm_source=pwa_homescreen&__pwa=1
Copy file name to clipboardExpand all lines: apps/pwabuilder/Services/LighthouseService.cs
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@
7
7
8
8
namespacePWABuilder.Services;
9
9
10
+
[Obsolete("LighthouseService shouldn't be used because Lighthouse 12 removed PWA audits. See https://github.com/GoogleChrome/lighthouse/blob/main/changelog.md#pwa-category-removal")]
10
11
publicclassLighthouseService:ILighthouseService
11
12
{
12
13
privatereadonlyIHostEnvironmentenv;
@@ -242,7 +243,7 @@ private static Process StartLighthouse(Uri url, BrowserFormFactor formFactor, in
PwaCapabilityId.OfflineSupport=>PwaCapabilityCheckStatus.InProgress,// Offline support can't be detected from code analysis alone. Instead, we use Lighthouse for this. See LighthouseService.cs.
90
+
PwaCapabilityId.OfflineSupport=>PwaCapabilityCheckStatus.Failed,// TODO: implement offline check. We used to test this using Lighthouse, but they removed offline audit check as of Lighthouse v12.
0 commit comments