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:
54559f9
)
emit did-fail-load event when the url char length exceeds limit
author
deepak1556
<hop2deep@gmail.com>
Sat, 21 Jan 2017 09:29:20 +0000
(14:59 +0530)
committer
deepak1556
<hop2deep@gmail.com>
Sat, 21 Jan 2017 09:29:20 +0000
(14:59 +0530)
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
dca69a8
..
afb6f4c
100644
(file)
--- a/
atom/browser/api/atom_api_web_contents.cc
+++ b/
atom/browser/api/atom_api_web_contents.cc
@@
-861,7
+861,7
@@
bool WebContents::Equal(const WebContents* web_contents) const {
}
void WebContents::LoadURL(const GURL& url, const mate::Dictionary& options) {
- if (!url.is_valid()) {
+ if (!url.is_valid()
|| url.spec().size() > url::kMaxURLChars
) {
Emit("did-fail-load",
static_cast<int>(net::ERR_INVALID_URL),
net::ErrorToShortString(net::ERR_INVALID_URL),