Deprecate the page-title-set event
We have two names for the same event, page-title-updated wins.
This commit is contained in:
parent
c95117fb22
commit
e5974e44ed
6 changed files with 24 additions and 18 deletions
|
@ -520,9 +520,9 @@ void WebContents::DidNavigateMainFrame(
|
|||
void WebContents::TitleWasSet(content::NavigationEntry* entry,
|
||||
bool explicit_set) {
|
||||
if (entry)
|
||||
Emit("-page-title-set", entry->GetTitle(), explicit_set);
|
||||
Emit("-page-title-updated", entry->GetTitle(), explicit_set);
|
||||
else
|
||||
Emit("-page-title-set", "", explicit_set);
|
||||
Emit("-page-title-updated", "", explicit_set);
|
||||
}
|
||||
|
||||
void WebContents::DidUpdateFaviconURL(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue