             // If we're editing, stretch the text field to the full width of its container.
             // Otherwise it will size to fit, allowing it to be centered in the container.
             if isEditing {
-                centeredURLConstraint.deactivate()
-                fullWidthURLTextConstraint.activate()
+                centeredURLConstraints.forEach { $0.deactivate() }
+                fullWidthURLTextConstraints.forEach { $0.activate() }
             } else {
-                fullWidthURLTextConstraint.deactivate()
-                centeredURLConstraint.activate()
+                fullWidthURLTextConstraints.forEach { $0.deactivate() }
+                centeredURLConstraints.forEach { $0.activate() }
             }
         }
     }

            make.edges.equalTo(urlTextContainer)
        }

        centeredURLConstraint.deactivate()
        showToolsetConstraints.forEach { $0.deactivate() }
        notEditingConstraints.forEach { $0.deactivate() }
        postActivationConstraints.forEach { $0.deactivate() }
    }


            make.size.equalTo(toolset.backButton)
        }

        buttonContainer.snp.makeConstraints { make in
            make.centerY.equalTo(self)

            preActivationConstraints.append(contentsOf: [
                make.size.equalTo(0).constraint,
                make.leading.equalTo(urlTextContainer.snp.trailing).inset(-UIConstants.layout.urlBarMargin).constraint,
                make.trailing.equalTo(toolset.sendButton.snp.leading).constraint,
            ])

            postActivationConstraints.append(contentsOf: [
                make.width.greaterThanOrEqualTo(hiddenDeleteButton).constraint,
                make.width.greaterThanOrEqualTo(cancelButton).constraint,
                make.width.greaterThanOrEqualTo(self).multipliedBy(toolsetButtonWidthMultiplier).constraint,
                make.leading.equalTo(urlTextContainer.snp.trailing).inset(-12).constraint,
                make.trailing.equalTo(toolset.sendButton.snp.leading).inset(-12).constraint,
            ])
        }

        deleteButton.snp.makeConstraints { make in
            make.center.equalTo(buttonContainer)
            isEditingConstraints.append(make.size.equalTo(0).constraint)
        }

        hiddenDeleteButton.snp.makeConstraints { make in
            make.center.equalTo(buttonContainer)
        }

        cancelButton.snp.makeConstraints { make in
            make.center.equalTo(buttonContainer)
        }

        progressBar.snp.makeConstraints { make in
