diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-02-12 11:05:16 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-02-12 11:05:16 +0100 |
commit | 487afe9f45a846daaf8aab8b0cc0022dbc92ce09 (patch) | |
tree | 544f9005347441138f84ae4fe012a7662ed56ade /dom/base/Location.cpp | |
parent | 8beab28bfff78ccefc8677c5bdddd6f60c544600 (diff) | |
download | UXP-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.
Diffstat (limited to 'dom/base/Location.cpp')
-rw-r--r-- | dom/base/Location.cpp | 4 |
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; |