After chasing the issue from:https://bugs.chromium.org/p/chromium/issues/detail?id=1191971, I got another question form example(mv3.zip): if I rewrite the url('https://www.example.org/') into chrome.runtime.getURL('popup.html'),chrome.scripting.executeScript didn't work,can someone help me with it?thank you.
chrome.action.onClicked.addListener(async () => {
await chrome.windows.create({ url:chrome.runtime.getURL('popup.html')/*'https://www.example.org/'*/ },window =>{
const tabId = window.tabs[0].id;
chrome.scripting.executeScript({
target: { tabId },
function: () =>document.body.textContent = 'GOOD',
}, () => chrome.runtime.lastError && complain(tabId));
});});