devtools-protocol 0.0.1141857 → 0.0.1143632
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/json/browser_protocol.json +42 -1
- package/package.json +1 -1
- package/pdl/browser_protocol.pdl +42 -0
- package/types/protocol.d.ts +8 -1
| @@ -23236,7 +23236,10 @@ | |
| 23236 23236 | 
             
                                    "SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation",
         | 
| 23237 23237 | 
             
                                    "SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation",
         | 
| 23238 23238 | 
             
                                    "MemoryPressureOnTrigger",
         | 
| 23239 | 
            -
                                    "MemoryPressureAfterTriggered"
         | 
| 23239 | 
            +
                                    "MemoryPressureAfterTriggered",
         | 
| 23240 | 
            +
                                    "SpeculationRuleRemoved",
         | 
| 23241 | 
            +
                                    "TriggerPageNavigated",
         | 
| 23242 | 
            +
                                    "OtherPrerenderedPageActivated"
         | 
| 23240 23243 | 
             
                                ]
         | 
| 23241 23244 | 
             
                            },
         | 
| 23242 23245 | 
             
                            {
         | 
| @@ -23262,6 +23265,40 @@ | |
| 23262 23265 | 
             
                                    "Failure",
         | 
| 23263 23266 | 
             
                                    "NotSupported"
         | 
| 23264 23267 | 
             
                                ]
         | 
| 23268 | 
            +
                            },
         | 
| 23269 | 
            +
                            {
         | 
| 23270 | 
            +
                                "id": "PrefetchStatus",
         | 
| 23271 | 
            +
                                "description": "TODO(https://crbug.com/1384419): revisit the list of PrefetchStatus and\nfilter out the ones that aren't necessary to the developers.",
         | 
| 23272 | 
            +
                                "type": "string",
         | 
| 23273 | 
            +
                                "enum": [
         | 
| 23274 | 
            +
                                    "PrefetchAllowed",
         | 
| 23275 | 
            +
                                    "PrefetchFailedIneligibleRedirect",
         | 
| 23276 | 
            +
                                    "PrefetchFailedInvalidRedirect",
         | 
| 23277 | 
            +
                                    "PrefetchFailedMIMENotSupported",
         | 
| 23278 | 
            +
                                    "PrefetchFailedNetError",
         | 
| 23279 | 
            +
                                    "PrefetchFailedNon2XX",
         | 
| 23280 | 
            +
                                    "PrefetchFailedPerPageLimitExceeded",
         | 
| 23281 | 
            +
                                    "PrefetchHeldback",
         | 
| 23282 | 
            +
                                    "PrefetchIneligibleRetryAfter",
         | 
| 23283 | 
            +
                                    "PrefetchIsPrivacyDecoy",
         | 
| 23284 | 
            +
                                    "PrefetchIsStale",
         | 
| 23285 | 
            +
                                    "PrefetchNotEligibleBrowserContextOffTheRecord",
         | 
| 23286 | 
            +
                                    "PrefetchNotEligibleDataSaverEnabled",
         | 
| 23287 | 
            +
                                    "PrefetchNotEligibleExistingProxy",
         | 
| 23288 | 
            +
                                    "PrefetchNotEligibleHostIsNonUnique",
         | 
| 23289 | 
            +
                                    "PrefetchNotEligibleNonDefaultStoragePartition",
         | 
| 23290 | 
            +
                                    "PrefetchNotEligibleSameSiteCrossOriginPrefetchRequiredProxy",
         | 
| 23291 | 
            +
                                    "PrefetchNotEligibleSchemeIsNotHttps",
         | 
| 23292 | 
            +
                                    "PrefetchNotEligibleUserHasCookies",
         | 
| 23293 | 
            +
                                    "PrefetchNotEligibleUserHasServiceWorker",
         | 
| 23294 | 
            +
                                    "PrefetchNotFinishedInTime",
         | 
| 23295 | 
            +
                                    "PrefetchNotStarted",
         | 
| 23296 | 
            +
                                    "PrefetchNotUsedCookiesChanged",
         | 
| 23297 | 
            +
                                    "PrefetchProxyNotAvailable",
         | 
| 23298 | 
            +
                                    "PrefetchResponseUsed",
         | 
| 23299 | 
            +
                                    "PrefetchSuccessfulButNotUsed",
         | 
| 23300 | 
            +
                                    "PrefetchNotUsedProbeFailed"
         | 
| 23301 | 
            +
                                ]
         | 
| 23265 23302 | 
             
                            }
         | 
| 23266 23303 | 
             
                        ],
         | 
| 23267 23304 | 
             
                        "commands": [
         | 
| @@ -23351,6 +23388,10 @@ | |
| 23351 23388 | 
             
                                    {
         | 
| 23352 23389 | 
             
                                        "name": "status",
         | 
| 23353 23390 | 
             
                                        "$ref": "PreloadingStatus"
         | 
| 23391 | 
            +
                                    },
         | 
| 23392 | 
            +
                                    {
         | 
| 23393 | 
            +
                                        "name": "prefetchStatus",
         | 
| 23394 | 
            +
                                        "$ref": "PrefetchStatus"
         | 
| 23354 23395 | 
             
                                    }
         | 
| 23355 23396 | 
             
                                ]
         | 
| 23356 23397 | 
             
                            },
         | 
    
        package/package.json
    CHANGED
    
    
    
        package/pdl/browser_protocol.pdl
    CHANGED
    
    | @@ -10996,6 +10996,9 @@ experimental domain Preload | |
| 10996 10996 | 
             
                  SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation
         | 
| 10997 10997 | 
             
                  MemoryPressureOnTrigger
         | 
| 10998 10998 | 
             
                  MemoryPressureAfterTriggered
         | 
| 10999 | 
            +
                  SpeculationRuleRemoved
         | 
| 11000 | 
            +
                  TriggerPageNavigated
         | 
| 11001 | 
            +
                  OtherPrerenderedPageActivated
         | 
| 10999 11002 |  | 
| 11000 11003 | 
             
              # Fired when a prerender attempt is completed.
         | 
| 11001 11004 | 
             
              event prerenderAttemptCompleted
         | 
| @@ -11035,6 +11038,44 @@ experimental domain Preload | |
| 11035 11038 | 
             
                  # PreloadingTriggeringOutcome which not used by prefetch nor prerender.
         | 
| 11036 11039 | 
             
                  NotSupported
         | 
| 11037 11040 |  | 
| 11041 | 
            +
              # TODO(https://crbug.com/1384419): revisit the list of PrefetchStatus and
         | 
| 11042 | 
            +
              # filter out the ones that aren't necessary to the developers.
         | 
| 11043 | 
            +
              type PrefetchStatus extends string
         | 
| 11044 | 
            +
                enum
         | 
| 11045 | 
            +
                  # Prefetch is not disabled by PrefetchHeldback.
         | 
| 11046 | 
            +
                  PrefetchAllowed
         | 
| 11047 | 
            +
                  PrefetchFailedIneligibleRedirect
         | 
| 11048 | 
            +
                  PrefetchFailedInvalidRedirect
         | 
| 11049 | 
            +
                  PrefetchFailedMIMENotSupported
         | 
| 11050 | 
            +
                  PrefetchFailedNetError
         | 
| 11051 | 
            +
                  PrefetchFailedNon2XX
         | 
| 11052 | 
            +
                  PrefetchFailedPerPageLimitExceeded
         | 
| 11053 | 
            +
                  PrefetchHeldback
         | 
| 11054 | 
            +
                  # A previous prefetch to the origin got a HTTP 503 response with an
         | 
| 11055 | 
            +
                  # Retry-After header that has no elapsed yet.
         | 
| 11056 | 
            +
                  PrefetchIneligibleRetryAfter
         | 
| 11057 | 
            +
                  PrefetchIsPrivacyDecoy
         | 
| 11058 | 
            +
                  PrefetchIsStale
         | 
| 11059 | 
            +
                  PrefetchNotEligibleBrowserContextOffTheRecord
         | 
| 11060 | 
            +
                  PrefetchNotEligibleDataSaverEnabled
         | 
| 11061 | 
            +
                  PrefetchNotEligibleExistingProxy
         | 
| 11062 | 
            +
                  PrefetchNotEligibleHostIsNonUnique
         | 
| 11063 | 
            +
                  PrefetchNotEligibleNonDefaultStoragePartition
         | 
| 11064 | 
            +
                  PrefetchNotEligibleSameSiteCrossOriginPrefetchRequiredProxy
         | 
| 11065 | 
            +
                  PrefetchNotEligibleSchemeIsNotHttps
         | 
| 11066 | 
            +
                  PrefetchNotEligibleUserHasCookies
         | 
| 11067 | 
            +
                  PrefetchNotEligibleUserHasServiceWorker
         | 
| 11068 | 
            +
                  PrefetchNotFinishedInTime
         | 
| 11069 | 
            +
                  PrefetchNotStarted
         | 
| 11070 | 
            +
                  PrefetchNotUsedCookiesChanged
         | 
| 11071 | 
            +
                  PrefetchProxyNotAvailable
         | 
| 11072 | 
            +
                  # The response of the prefetch is used for the next navigation. This is
         | 
| 11073 | 
            +
                  # the final successful state.
         | 
| 11074 | 
            +
                  PrefetchResponseUsed
         | 
| 11075 | 
            +
                  # The prefetch finished successfully but was never used.
         | 
| 11076 | 
            +
                  PrefetchSuccessfulButNotUsed
         | 
| 11077 | 
            +
                  PrefetchNotUsedProbeFailed
         | 
| 11078 | 
            +
             | 
| 11038 11079 | 
             
              # Fired when a prefetch attempt is updated.
         | 
| 11039 11080 | 
             
              event prefetchStatusUpdated
         | 
| 11040 11081 | 
             
                parameters
         | 
| @@ -11043,6 +11084,7 @@ experimental domain Preload | |
| 11043 11084 | 
             
                  Page.FrameId initiatingFrameId
         | 
| 11044 11085 | 
             
                  string prefetchUrl
         | 
| 11045 11086 | 
             
                  PreloadingStatus status
         | 
| 11087 | 
            +
                  PrefetchStatus prefetchStatus
         | 
| 11046 11088 |  | 
| 11047 11089 | 
             
              # Fired when a prerender attempt is updated.
         | 
| 11048 11090 | 
             
              event prerenderStatusUpdated
         | 
    
        package/types/protocol.d.ts
    CHANGED
    
    | @@ -17153,7 +17153,7 @@ export namespace Protocol { | |
| 17153 17153 | 
             
                    /**
         | 
| 17154 17154 | 
             
                     * List of FinalStatus reasons for Prerender2.
         | 
| 17155 17155 | 
             
                     */
         | 
| 17156 | 
            -
                    export type PrerenderFinalStatus = ('Activated' | 'Destroyed' | 'LowEndDevice' | 'InvalidSchemeRedirect' | 'InvalidSchemeNavigation' | 'InProgressNavigation' | 'NavigationRequestBlockedByCsp' | 'MainFrameNavigation' | 'MojoBinderPolicy' | 'RendererProcessCrashed' | 'RendererProcessKilled' | 'Download' | 'TriggerDestroyed' | 'NavigationNotCommitted' | 'NavigationBadHttpStatus' | 'ClientCertRequested' | 'NavigationRequestNetworkError' | 'MaxNumOfRunningPrerendersExceeded' | 'CancelAllHostsForTesting' | 'DidFailLoad' | 'Stop' | 'SslCertificateError' | 'LoginAuthRequested' | 'UaChangeRequiresReload' | 'BlockedByClient' | 'AudioOutputDeviceRequested' | 'MixedContent' | 'TriggerBackgrounded' | 'EmbedderTriggeredAndCrossOriginRedirected' | 'MemoryLimitExceeded' | 'FailToGetMemoryUsage' | 'DataSaverEnabled' | 'HasEffectiveUrl' | 'ActivatedBeforeStarted' | 'InactivePageRestriction' | 'StartFailed' | 'TimeoutBackgrounded' | 'CrossSiteRedirectInInitialNavigation' | 'CrossSiteNavigationInInitialNavigation' | 'SameSiteCrossOriginRedirectNotOptInInInitialNavigation' | 'SameSiteCrossOriginNavigationNotOptInInInitialNavigation' | 'ActivationNavigationParameterMismatch' | 'ActivatedInBackground' | 'EmbedderHostDisallowed' | 'ActivationNavigationDestroyedBeforeSuccess' | 'TabClosedByUserGesture' | 'TabClosedWithoutUserGesture' | 'PrimaryMainFrameRendererProcessCrashed' | 'PrimaryMainFrameRendererProcessKilled' | 'ActivationFramePolicyNotCompatible' | 'PreloadingDisabled' | 'BatterySaverEnabled' | 'ActivatedDuringMainFrameNavigation' | 'PreloadingUnsupportedByWebContents' | 'CrossSiteRedirectInMainFrameNavigation' | 'CrossSiteNavigationInMainFrameNavigation' | 'SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation' | 'SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation' | 'MemoryPressureOnTrigger' | 'MemoryPressureAfterTriggered');
         | 
| 17156 | 
            +
                    export type PrerenderFinalStatus = ('Activated' | 'Destroyed' | 'LowEndDevice' | 'InvalidSchemeRedirect' | 'InvalidSchemeNavigation' | 'InProgressNavigation' | 'NavigationRequestBlockedByCsp' | 'MainFrameNavigation' | 'MojoBinderPolicy' | 'RendererProcessCrashed' | 'RendererProcessKilled' | 'Download' | 'TriggerDestroyed' | 'NavigationNotCommitted' | 'NavigationBadHttpStatus' | 'ClientCertRequested' | 'NavigationRequestNetworkError' | 'MaxNumOfRunningPrerendersExceeded' | 'CancelAllHostsForTesting' | 'DidFailLoad' | 'Stop' | 'SslCertificateError' | 'LoginAuthRequested' | 'UaChangeRequiresReload' | 'BlockedByClient' | 'AudioOutputDeviceRequested' | 'MixedContent' | 'TriggerBackgrounded' | 'EmbedderTriggeredAndCrossOriginRedirected' | 'MemoryLimitExceeded' | 'FailToGetMemoryUsage' | 'DataSaverEnabled' | 'HasEffectiveUrl' | 'ActivatedBeforeStarted' | 'InactivePageRestriction' | 'StartFailed' | 'TimeoutBackgrounded' | 'CrossSiteRedirectInInitialNavigation' | 'CrossSiteNavigationInInitialNavigation' | 'SameSiteCrossOriginRedirectNotOptInInInitialNavigation' | 'SameSiteCrossOriginNavigationNotOptInInInitialNavigation' | 'ActivationNavigationParameterMismatch' | 'ActivatedInBackground' | 'EmbedderHostDisallowed' | 'ActivationNavigationDestroyedBeforeSuccess' | 'TabClosedByUserGesture' | 'TabClosedWithoutUserGesture' | 'PrimaryMainFrameRendererProcessCrashed' | 'PrimaryMainFrameRendererProcessKilled' | 'ActivationFramePolicyNotCompatible' | 'PreloadingDisabled' | 'BatterySaverEnabled' | 'ActivatedDuringMainFrameNavigation' | 'PreloadingUnsupportedByWebContents' | 'CrossSiteRedirectInMainFrameNavigation' | 'CrossSiteNavigationInMainFrameNavigation' | 'SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation' | 'SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation' | 'MemoryPressureOnTrigger' | 'MemoryPressureAfterTriggered' | 'SpeculationRuleRemoved' | 'TriggerPageNavigated' | 'OtherPrerenderedPageActivated');
         | 
| 17157 17157 |  | 
| 17158 17158 | 
             
                    export type PreloadEnabledState = ('Enabled' | 'DisabledByDataSaver' | 'DisabledByBatterySaver' | 'DisabledByPreference' | 'NotSupported');
         | 
| 17159 17159 |  | 
| @@ -17163,6 +17163,12 @@ export namespace Protocol { | |
| 17163 17163 | 
             
                     */
         | 
| 17164 17164 | 
             
                    export type PreloadingStatus = ('Pending' | 'Running' | 'Ready' | 'Success' | 'Failure' | 'NotSupported');
         | 
| 17165 17165 |  | 
| 17166 | 
            +
                    /**
         | 
| 17167 | 
            +
                     * TODO(https://crbug.com/1384419): revisit the list of PrefetchStatus and
         | 
| 17168 | 
            +
                     * filter out the ones that aren't necessary to the developers.
         | 
| 17169 | 
            +
                     */
         | 
| 17170 | 
            +
                    export type PrefetchStatus = ('PrefetchAllowed' | 'PrefetchFailedIneligibleRedirect' | 'PrefetchFailedInvalidRedirect' | 'PrefetchFailedMIMENotSupported' | 'PrefetchFailedNetError' | 'PrefetchFailedNon2XX' | 'PrefetchFailedPerPageLimitExceeded' | 'PrefetchHeldback' | 'PrefetchIneligibleRetryAfter' | 'PrefetchIsPrivacyDecoy' | 'PrefetchIsStale' | 'PrefetchNotEligibleBrowserContextOffTheRecord' | 'PrefetchNotEligibleDataSaverEnabled' | 'PrefetchNotEligibleExistingProxy' | 'PrefetchNotEligibleHostIsNonUnique' | 'PrefetchNotEligibleNonDefaultStoragePartition' | 'PrefetchNotEligibleSameSiteCrossOriginPrefetchRequiredProxy' | 'PrefetchNotEligibleSchemeIsNotHttps' | 'PrefetchNotEligibleUserHasCookies' | 'PrefetchNotEligibleUserHasServiceWorker' | 'PrefetchNotFinishedInTime' | 'PrefetchNotStarted' | 'PrefetchNotUsedCookiesChanged' | 'PrefetchProxyNotAvailable' | 'PrefetchResponseUsed' | 'PrefetchSuccessfulButNotUsed' | 'PrefetchNotUsedProbeFailed');
         | 
| 17171 | 
            +
             | 
| 17166 17172 | 
             
                    /**
         | 
| 17167 17173 | 
             
                     * Upsert. Currently, it is only emitted when a rule set added.
         | 
| 17168 17174 | 
             
                     */
         | 
| @@ -17210,6 +17216,7 @@ export namespace Protocol { | |
| 17210 17216 | 
             
                        initiatingFrameId: Page.FrameId;
         | 
| 17211 17217 | 
             
                        prefetchUrl: string;
         | 
| 17212 17218 | 
             
                        status: PreloadingStatus;
         | 
| 17219 | 
            +
                        prefetchStatus: PrefetchStatus;
         | 
| 17213 17220 | 
             
                    }
         | 
| 17214 17221 |  | 
| 17215 17222 | 
             
                    /**
         |