fix: closes #7453 - Fixed pinning a tab with invalid HOST or about:blank creating an infinite loop of reseting its state, r=tabs

This commit is contained in:
Mr. M
2025-04-15 22:25:06 +02:00
parent 2958f6ea7f
commit b0e4681b5f

View File

@@ -988,7 +988,7 @@
if (!pin) {
return;
}
if (pin.url === 'about:blank') {
if (pin.url === 'about:blank' && tab.linkedBrowser.currentURI.spec !== 'about:blank') {
await this.replacePinnedUrlWithCurrent(tab);
}
}