Skip to content

Commit 2bff687

Browse files
author
copybara-service
committed
deploy: 320a91b
1 parent 798b8b0 commit 2bff687

18 files changed

Lines changed: 103 additions & 32 deletions

front_end/core/i18n/locales/en-US.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

front_end/core/i18n/locales/generated/en-US.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5603,6 +5603,9 @@
56035603
"panels/application/preloading/components/PreloadingString.ts | prerenderFinalStatusNavigationBadHttpStatus": {
56045604
"message": "The prerendering navigation failed because of a non-2xx HTTP response status code."
56055605
},
5606+
"panels/application/preloading/components/PreloadingString.ts | prerenderFinalStatusNavigationBadHttpStatusWithStatusCode": {
5607+
"message": "The prerendering navigation failed because of a non-2xx HTTP response status code ({PH1})."
5608+
},
56065609
"panels/application/preloading/components/PreloadingString.ts | prerenderFinalStatusNavigationRequestBlockedByCsp": {
56075610
"message": "The prerendering navigation was blocked by a Content Security Policy."
56085611
},

front_end/panels/application/application.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6259,6 +6259,11 @@ var UIStrings12 = {
62596259
* Description text for PrerenderFinalStatus::kNavigationBadHttpStatus.
62606260
*/
62616261
prerenderFinalStatusNavigationBadHttpStatus: "The prerendering navigation failed because of a non-2xx HTTP response status code.",
6262+
/**
6263+
* @description Description text for PrerenderFinalStatus::kNavigationBadHttpStatus when the HTTP status code is known.
6264+
* @example {404} PH1
6265+
*/
6266+
prerenderFinalStatusNavigationBadHttpStatusWithStatusCode: "The prerendering navigation failed because of a non-2xx HTTP response status code ({PH1}).",
62626267
/**
62636268
* Description text for PrerenderFinalStatus::kClientCertRequested.
62646269
*/
@@ -7025,7 +7030,7 @@ var PreloadingAttemptView = class extends UI10.Widget.VBox {
70257030
const ruleSet = this.model.getRuleSetById(id2);
70267031
return ruleSet === null ? [] : [ruleSet];
70277032
});
7028-
const statusCode = attempt.action === "Prefetch" ? PreloadingHelper.PreloadingForward.prefetchStatusCode(attempt.requestId) : void 0;
7033+
const statusCode = PreloadingHelper.PreloadingForward.preloadStatusCode(attempt);
70297034
return {
70307035
id,
70317036
pipeline,

front_end/panels/application/application.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

front_end/panels/application/preloading/PreloadingView.js

Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

front_end/panels/application/preloading/PreloadingView.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

front_end/panels/application/preloading/components/PreloadingDetailsReportView.js

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

front_end/panels/application/preloading/components/PreloadingDetailsReportView.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

front_end/panels/application/preloading/components/PreloadingString.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export declare const PrefetchReasonDescription: Record<string, {
88
/** Decoding PrefetchFinalStatus prefetchAttempt to failure description. **/
99
export declare function prefetchFailureReason({ prefetchStatus }: SDK.PreloadingModel.PrefetchAttempt, statusCode?: number): string | null;
1010
/** Detailed failure reason for PrerenderFinalStatus. **/
11-
export declare function prerenderFailureReason(attempt: SDK.PreloadingModel.PrerenderAttempt | SDK.PreloadingModel.PrerenderUntilScriptAttempt): string | null;
11+
export declare function prerenderFailureReason(attempt: SDK.PreloadingModel.PrerenderAttempt | SDK.PreloadingModel.PrerenderUntilScriptAttempt, statusCode?: number): string | null;
1212
export declare function ruleSetLocationShort(ruleSet: Protocol.Preload.RuleSet, pageURL: Platform.DevToolsPath.UrlString): string;
1313
export declare function ruleSetTagOrLocationShort(ruleSet: Protocol.Preload.RuleSet, pageURL: Platform.DevToolsPath.UrlString): string;
1414
export declare function capitalizedAction(action: Protocol.Preload.SpeculationAction): Common.UIString.LocalizedString;

front_end/panels/application/preloading/components/PreloadingString.js

Lines changed: 10 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)