projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d20dda
)
Emit event when title becomes empty
author
Cheng Zhao
<zcbenz@gmail.com>
Tue, 1 Dec 2015 09:52:13 +0000
(17:52 +0800)
committer
Cheng Zhao
<zcbenz@gmail.com>
Tue, 1 Dec 2015 09:53:13 +0000
(17:53 +0800)
atom/browser/api/atom_api_web_contents.cc
patch
|
blob
|
history
diff --git
a/atom/browser/api/atom_api_web_contents.cc
b/atom/browser/api/atom_api_web_contents.cc
index
339be85
..
0c8a5ff
100644
(file)
--- a/
atom/browser/api/atom_api_web_contents.cc
+++ b/
atom/browser/api/atom_api_web_contents.cc
@@
-519,9
+519,10
@@
void WebContents::DidNavigateMainFrame(
void WebContents::TitleWasSet(content::NavigationEntry* entry,
bool explicit_set) {
- // Back/Forward navigation may have pruned entries.
if (entry)
Emit("page-title-set", entry->GetTitle(), explicit_set);
+ else
+ Emit("page-title-set", "", explicit_set);
}
void WebContents::DidUpdateFaviconURL(