Issue metadata
Sign in to add a comment
|
onbeforenavigate event handler not always called when a tab is restored after browser startup
Reported by
cpextens...@gmail.com,
Jul 25
|
||||||||||||||||||||||||
Issue description
UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36
Steps to reproduce the problem:
1. create a browser extension having the following background page code and the 'webNavigation' permission:
chrome.webNavigation.onBeforeNavigate.addListener((details) => {
console.log('onbeforenavigate called for url', details.url);
});
alternatively installed the attached extension.
the extension sets an event listener to onbeforenavigate which prints a message to the console when it's called
2. go to chrome://settings:
- in the "on startup" section select "continue where i left off".
- turn off "Continue running background apps when Google Chrome is closed"
3. leave a single tab open, for example "https://www.bing.com"
4. restart the browser
5. open the test extension background page developer tool and examine the console output
What is the expected behavior?
onBeforeNavigate event handler should be called for the main frame of site in the restored tab. the "test extension" background page console should display:
"onbeforenavigate called for url https://www.bing.com/"
What went wrong?
onBeforeNavigate event handler is not always called for the main frame of the restored tab
Did this work before? N/A
Does this work in other browsers? N/A
Chrome version: 67.0.3396.99 Channel: stable
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version:
,
Jul 25
,
Jul 25
,
Aug 10
Unable to reproduce the issue on reported chrome version 67.0.3396.99 and latest chrome stable 68.0.3440.106 using Windows 10.Attaching screen-cast for reference. Steps: --------- 1. Launched reported chrome 2. Downloaded given extension and added to chrome 3. Followed the steps as per original comment#0 As we are able to see the "onbeforenavigate called for url https://www.bing.com/" @Reporter: Request you to retry this issue with fresh profile without any extensions/apps or reset all the flags and let us know if issue still persists.Could you please upgrade to latest chrome stable 68.0.3440.106, you can download latest chrome builds here:" https://www.chromium.org/getting-involved/dev-channel ". Thanks.!
,
Oct 9
Duplicate of issue 523634. |
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by woxxom@gmail.com
, Jul 25