Auto merge of #18229 - legnaleurc:bug_1388298, r=emilio
Auto merge of #18229 - legnaleurc:bug_1388298, r=emilio

Add an API to process all invalidations on the main thread

fixes [bug 1388298](https://bugzil.la/1388298)

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

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

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

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

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