Auto merge of #11665 - davideGiovannini:master, r=KiChjang
Auto merge of #11665 - davideGiovannini:master, r=KiChjang

Fixed issue #11651 (Do not fire a blur event when calling .focus() on…

<!-- Please describe your changes on the following line: -->
Added check in `HTMLElement.Focus` to avoid requesting focus when the element already has it.
Added check in `Document.commit_focus_transaction` to avoid sending `blur` and `focus` events when clicking on an already focused element.

---
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #11651

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11665)
<!-- Reviewable:end -->

eddyb/servo,pyfisch/servo,ConnorGBrewster/servo,szeged/servo,upsuper/servo,notriddle/servo,splav/servo,emilio/servo,splav/servo,mattnenterprise/servo,nnethercote/servo,paulrouget/servo,mattnenterprise/servo,larsbergstrom/servo,emilio/servo,emilio/servo,pyfisch/servo,saneyuki/servo,mattnenterprise/servo,szeged/servo,fiji-flo/servo,CJ8664/servo,DominoTree/servo,mbrubeck/servo,eddyb/servo,cbrewster/servo,paulrouget/servo,ConnorGBrewster/servo,peterjoel/servo,pyfisch/servo,avadacatavra/servo,thiagopnts/servo,dsandeephegde/servo,eddyb/servo,peterjoel/servo,DominoTree/servo,jimberlage/servo,rnestler/servo,paulrouget/servo,nrc/servo,thiagopnts/servo,mbrubeck/servo,dati91/servo,thiagopnts/servo,cbrewster/servo,anthgur/servo,canaltinova/servo,saneyuki/servo,nnethercote/servo,saneyuki/servo,ConnorGBrewster/servo,CJ8664/servo,SimonSapin/servo,dati91/servo,peterjoel/servo,pyfisch/servo,nnethercote/servo,anthgur/servo,rnestler/servo,avadacatavra/servo,pyfisch/servo,nrc/servo,jimberlage/servo,splav/servo,paulrouget/servo,notriddle/servo,notriddle/servo,KiChjang/servo,DominoTree/servo,pyfisch/servo,dati91/servo,KiChjang/servo,dsandeephegde/servo,larsbergstrom/servo,KiChjang/servo,dsandeephegde/servo,upsuper/servo,thiagopnts/servo,dsandeephegde/servo,paulrouget/servo,upsuper/servo,thiagopnts/servo,anthgur/servo,canaltinova/servo,dsandeephegde/servo,larsbergstrom/servo,mbrubeck/servo,szeged/servo,mattnenterprise/servo,sadmansk/servo,mbrubeck/servo,avadacatavra/servo,KiChjang/servo,larsbergstrom/servo,cbrewster/servo,cbrewster/servo,rnestler/servo,avadacatavra/servo,larsbergstrom/servo,saneyuki/servo,nrc/servo,notriddle/servo,paulrouget/servo,jimberlage/servo,rnestler/servo,peterjoel/servo,rnestler/servo,avadacatavra/servo,dati91/servo,nnethercote/servo,CJ8664/servo,notriddle/servo,SimonSapin/servo,peterjoel/servo,jimberlage/servo,cbrewster/servo,mbrubeck/servo,eddyb/servo,sadmansk/servo,mattnenterprise/servo,DominoTree/servo,notriddle/servo,nnethercote/servo,sadmansk/servo,fiji-flo/servo,szeged/servo,dati91/servo,mattnenterprise/servo,nrc/servo,upsuper/servo,jimberlage/servo,splav/servo,thiagopnts/servo,SimonSapin/servo,saneyuki/servo,canaltinova/servo,SimonSapin/servo,thiagopnts/servo,notriddle/servo,notriddle/servo,szeged/servo,nnethercote/servo,CJ8664/servo,peterjoel/servo,KiChjang/servo,mbrubeck/servo,larsbergstrom/servo,DominoTree/servo,sadmansk/servo,upsuper/servo,szeged/servo,emilio/servo,rnestler/servo,DominoTree/servo,nrc/servo,sadmansk/servo,thiagopnts/servo,rnestler/servo,paulrouget/servo,szeged/servo,mattnenterprise/servo,mbrubeck/servo,nnethercote/servo,cbrewster/servo,DominoTree/servo,dati91/servo,dati91/servo,emilio/servo,larsbergstrom/servo,saneyuki/servo,notriddle/servo,mbrubeck/servo,KiChjang/servo,avadacatavra/servo,canaltinova/servo,emilio/servo,DominoTree/servo,nrc/servo,saneyuki/servo,upsuper/servo,splav/servo,DominoTree/servo,KiChjang/servo,canaltinova/servo,sadmansk/servo,notriddle/servo,KiChjang/servo,emilio/servo,fiji-flo/servo,cbrewster/servo,splav/servo,fiji-flo/servo,emilio/servo,KiChjang/servo,paulrouget/servo,nnethercote/servo,szeged/servo,anthgur/servo,paulrouget/servo,dsandeephegde/servo,ConnorGBrewster/servo,jimberlage/servo,anthgur/servo,larsbergstrom/servo,peterjoel/servo,ConnorGBrewster/servo,anthgur/servo,eddyb/servo,sadmansk/servo,SimonSapin/servo,dsandeephegde/servo,CJ8664/servo,pyfisch/servo,anthgur/servo,dati91/servo,ConnorGBrewster/servo,canaltinova/servo,peterjoel/servo,larsbergstrom/servo,avadacatavra/servo,jimberlage/servo,szeged/servo,paulrouget/servo,cbrewster/servo,nnethercote/servo,emilio/servo,SimonSapin/servo,ConnorGBrewster/servo,saneyuki/servo,CJ8664/servo,upsuper/servo,saneyuki/servo,splav/servo,saneyuki/servo,ConnorGBrewster/servo,jimberlage/servo,fiji-flo/servo,splav/servo,larsbergstrom/servo,fiji-flo/servo,emilio/servo,nrc/servo,eddyb/servo,anthgur/servo,jimberlage/servo,DominoTree/servo,szeged/servo,peterjoel/servo,peterjoel/servo,pyfisch/servo,canaltinova/servo,pyfisch/servo,splav/servo,CJ8664/servo,CJ8664/servo,fiji-flo/servo,upsuper/servo,pyfisch/servo,fiji-flo/servo,SimonSapin/servo,dsandeephegde/servo,KiChjang/servo,avadacatavra/servo,eddyb/servo,canaltinova/servo,splav/servo,rnestler/servo,nnethercote/servo,SimonSapin/servo,eddyb/servo,sadmansk/servo,mattnenterprise/servo