diff --git a/package.json b/package.json index ae1049648c..47a442cadb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "Stylus", - "version": "2.3.8", + "version": "2.3.9", "description": "Redesign the web with Stylus, a user styles manager", "license": "GPL-3.0-only", "repository": "openstyles/stylus", diff --git a/src/background/popup-data.js b/src/background/popup-data.js index a1aa845fc7..7c0049d300 100644 --- a/src/background/popup-data.js +++ b/src/background/popup-data.js @@ -15,7 +15,9 @@ export default async function makePopupData() { if (FIREFOX && tab.status === 'loading' && tab.url === kAboutBlank) { tab = await waitForTabUrl(tab.id); } - let url = tab.pendingUrl || tab.url || ''; // new Chrome uses pendingUrl while connecting + // In modern Chrome `url` is for the current tab's contents, so it may be undefined + // when a newly created tab is still connecting to `pendingUrl`. + let url = tab.url || tab.pendingUrl || ''; let tmp; const td = tabCache.get(tab.id); const isOwn = url.startsWith(ownRoot); diff --git a/src/manifest.json b/src/manifest.json index 820d2ad3b3..75021c5964 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,6 +1,6 @@ { "name": "Stylus", - "version": "2.3.8", + "version": "2.3.9", "minimum_chrome_version": "", "description": "__MSG_description__", "homepage_url": "https://add0n.com/stylus.html",