Bug 1864389 - [remote] Fix truncation of URLs in NavigationListenerChild. r=webdriver-reviewers,Sasha

Differential Revision: https://phabricator.services.mozilla.com/D193424
This commit is contained in:
Henrik Skupin 2023-11-13 16:15:08 +00:00
Родитель e767d83d2f
Коммит 7b821c3a9c
1 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@ -104,8 +104,8 @@ export class NavigationListenerChild extends JSWindowActorChild {
const context = progress.browsingContext;
lazy.logger.trace(
lazy.truncate`[${context.id}] NavigationListener onLocationChange,` +
` location: ${location.spec}`
`[${context.id}] NavigationListener onLocationChange,` +
lazy.truncate` location: ${location.spec}`
);
this.sendAsyncMessage("NavigationListenerChild:locationChanged", {
@ -128,10 +128,11 @@ export class NavigationListenerChild extends JSWindowActorChild {
stateFlags & Ci.nsIWebProgressListener.STATE_IS_NETWORK
);
lazy.logger.trace(
lazy.truncate`[${context.id}] NavigationListener onStateChange,` +
`[${context.id}] NavigationListener onStateChange,` +
` stateFlags: ${stateFlags}, status: ${status}, isStart: ${isStart},` +
` isStop: ${isStop}, isNetwork: ${isNetwork},` +
` isBindingAborted: ${isBindingAborted}, targetURI: ${targetURI?.spec}`
` isBindingAborted: ${isBindingAborted},` +
lazy.truncate` targetURI: ${targetURI?.spec}`
);
}