summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-02-12 11:05:16 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-02-12 11:07:12 +0100
commitcdfe2e11c8003f1a173aa1fc8291121529efd7da (patch)
tree10bc3816b1fba94257b2f23bb5465e77a90e7633
parented9341c4a47da40598e1e3207b5910addb5e425e (diff)
downloadUXP-cdfe2e11c8003f1a173aa1fc8291121529efd7da.tar
UXP-cdfe2e11c8003f1a173aa1fc8291121529efd7da.tar.gz
UXP-cdfe2e11c8003f1a173aa1fc8291121529efd7da.tar.lz
UXP-cdfe2e11c8003f1a173aa1fc8291121529efd7da.tar.xz
UXP-cdfe2e11c8003f1a173aa1fc8291121529efd7da.zip
Allow empty string on `location.search` setter.
Fixes #970.
-rw-r--r--dom/base/Location.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/dom/base/Location.cpp b/dom/base/Location.cpp
index 3a39a9e66..1483c32f9 100644
--- a/dom/base/Location.cpp
+++ b/dom/base/Location.cpp
@@ -789,10 +789,6 @@ Location::GetSearch(nsAString& aSearch)
NS_IMETHODIMP
Location::SetSearch(const nsAString& aSearch)
{
- if (aSearch.IsEmpty()) {
- return NS_OK; // Ignore empty string
- }
-
nsresult rv = SetSearchInternal(aSearch);
if (NS_FAILED(rv)) {
return rv;