         }
         
         urlBarBorderView.snp.makeConstraints { make in
-            make.leading.equalTo(shieldIcon.snp.trailing).offset(UIConstants.layout.urlBarMargin)
-
-            make.trailing.equalTo(deleteButton.snp.leading).offset(-UIConstants.layout.urlBarMargin)
-
+            make.leading.equalTo(shieldIcon.snp.trailing).offset(UIConstants.layout.urlBarMargin).priority(.medium)
+            make.trailing.equalTo(deleteButton.snp.leading).offset(-UIConstants.layout.urlBarMargin).priority(.medium)
             make.height.equalTo(42).priority(.medium)
-
-            self.isEditingConstraints.append(make.height.equalTo(48).priority(.high).constraint)
-
             make.top.bottom.equalToSuperview().inset(UIConstants.layout.urlBarMargin)
+            
+            isEditingConstraints.append(make.height.equalTo(48).priority(.high).constraint)
+            isEditingConstraints.append(make.leading.equalTo(shieldIcon.snp.trailing).constraint)
+            isEditingConstraints.append(make.trailing.equalTo(deleteButton.snp.leading).constraint)
         }
 
         urlBarBackgroundView.snp.makeConstraints { make in


    private var fullWidthURLTextConstraints = [Constraint]()
    private var centeredURLConstraints = [Constraint]()
    private var hideShieldConstraints = [Constraint]()
    private var hideLockConstraints = [Constraint]()
    private var hideSmallLockConstraints = [Constraint]()
    private var hidePageActionsConstraints = [Constraint]()

        UIView.animate(withDuration: duration) {
            if visible {
                self.hidePageActionsConstraints.forEach { $0.deactivate() }
            } else {
                self.hidePageActionsConstraints.forEach { $0.activate() }
            }
            self.layoutIfNeeded()
        }
