Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 61c0da8

Browse files
committed
[[ BrowserWidget ]] Don't signal failure in get/set unsupported property
1 parent 6817d5b commit 61c0da8

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

libbrowser/src/libbrowser_android.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class MCAndroidWebViewBrowser : public MCBrowserBase
141141
break;
142142
}
143143

144-
return false;
144+
return true;
145145
}
146146

147147
virtual bool SetBoolProperty(MCBrowserProperty p_property, bool p_value)
@@ -155,7 +155,7 @@ class MCAndroidWebViewBrowser : public MCBrowserBase
155155
break;
156156
}
157157

158-
return false;
158+
return true;
159159
}
160160

161161
virtual bool GetStringProperty(MCBrowserProperty p_property, char *&r_utf8_string)
@@ -172,7 +172,7 @@ class MCAndroidWebViewBrowser : public MCBrowserBase
172172
break;
173173
}
174174

175-
return false;
175+
return true;
176176
}
177177

178178
virtual bool SetStringProperty(MCBrowserProperty p_property, const char *p_utf8_string)
@@ -186,7 +186,7 @@ class MCAndroidWebViewBrowser : public MCBrowserBase
186186
break;
187187
}
188188

189-
return false;
189+
return true;
190190
}
191191

192192
virtual bool GoBack()

libbrowser/src/libbrowser_cef.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1437,7 +1437,7 @@ bool MCCefBrowserBase::GetBoolProperty(MCBrowserProperty p_property, bool &r_val
14371437
break;
14381438
}
14391439

1440-
return false;
1440+
return true;
14411441
}
14421442

14431443
bool MCCefBrowserBase::SetBoolProperty(MCBrowserProperty p_property, bool p_value)
@@ -1460,7 +1460,7 @@ bool MCCefBrowserBase::SetBoolProperty(MCBrowserProperty p_property, bool p_valu
14601460
break;
14611461
}
14621462

1463-
return false;
1463+
return true;
14641464
}
14651465

14661466
bool MCCefBrowserBase::SetStringProperty(MCBrowserProperty p_property, const char *p_value)
@@ -1482,7 +1482,7 @@ bool MCCefBrowserBase::SetStringProperty(MCBrowserProperty p_property, const cha
14821482
break;
14831483
}
14841484

1485-
return false;
1485+
return true;
14861486
}
14871487

14881488
bool MCCefBrowserBase::GetStringProperty(MCBrowserProperty p_property, char *&r_value)
@@ -1508,7 +1508,7 @@ bool MCCefBrowserBase::GetStringProperty(MCBrowserProperty p_property, char *&r_
15081508
break;
15091509
}
15101510

1511-
return false;
1511+
return true;
15121512
}
15131513

15141514
////////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)