cloudtrends / chromiumembedded

Automatically exported from code.google.com/p/chromiumembedded
1 stars 1 forks source link

AddressChange & TitleChange not called if window.location changed #200

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run cefclient.exe (r195)
2. Browse to http://www.enesce.com/test_location.html

What is the expected output? What do you see instead?
Redirects to Google, Address bar does not change and title is not updated due 
to those events not being triggered at all. It works fine if the 
window.location call is delayed until after the page has loaded, but if it is 
called before or right when the DOM is ready, CEF skips those important event 
calls.
Makes it very difficult to detect when to execute custom JavaScript code on 
pages.

The HTML @ the above URL is only:
<head>
  <script type="text/javascript">
    window.location = 'http://www.google.com/';
  </script>
</head>

What version of the product are you using? On what operating system?
ChromiumEmbedded r195 

Please provide any additional information below.
Does not occur in the Chromium test_shell r74933.

Original issue reported on code.google.com by ad...@enesce.com on 7 Mar 2011 at 2:37

GoogleCodeExporter commented 9 years ago

Original comment by magreenb...@gmail.com on 8 Mar 2011 at 6:02

GoogleCodeExporter commented 9 years ago
Revision 202 simplifies load-related notifications.

- HandleAddressChange and HandleTitleChange will always be called for the main 
frame and only the main frame.
- The |frame| parameter to HandleLoadStart and HandleLoadEnd will always be 
non-empty. The CefFrame::IsMain() method can be used to check if the 
notification is for the main frame. The |isMainContent| parameter has been 
removed.

Original comment by magreenb...@gmail.com on 8 Mar 2011 at 7:34