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:05:16 +0100
commit487afe9f45a846daaf8aab8b0cc0022dbc92ce09 (patch)
tree544f9005347441138f84ae4fe012a7662ed56ade
parent8beab28bfff78ccefc8677c5bdddd6f60c544600 (diff)
downloadUXP-487afe9f45a846daaf8aab8b0cc0022dbc92ce09.tar
UXP-487afe9f45a846daaf8aab8b0cc0022dbc92ce09.tar.gz
UXP-487afe9f45a846daaf8aab8b0cc0022dbc92ce09.tar.lz
UXP-487afe9f45a846daaf8aab8b0cc0022dbc92ce09.tar.xz
UXP-487afe9f45a846daaf8aab8b0cc0022dbc92ce09.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;