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:
998ce73
)
WebContents without owner window should always open detached devtools
author
Cheng Zhao
<zcbenz@gmail.com>
Tue, 17 May 2016 13:39:18 +0000
(22:39 +0900)
committer
Cheng Zhao
<zcbenz@gmail.com>
Wed, 18 May 2016 04:57:48 +0000
(13:57 +0900)
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 8e4653bee4b8f1ece3839669bf6c0c36628ef934..4cfbe6094f685624ca9e54bf574b6d25cf1b11f9 100644
(file)
--- a/
atom/browser/api/atom_api_web_contents.cc
+++ b/
atom/browser/api/atom_api_web_contents.cc
@@
-866,7
+866,7
@@
void WebContents::OpenDevTools(mate::Arguments* args) {
return;
std::string state;
- if (type_ == WEB_VIEW) {
+ if (type_ == WEB_VIEW
|| !owner_window()
) {
state = "detach";
} else if (args && args->Length() == 1) {
bool detach = false;