auto merge of #5059 : saneyuki/servo/event, r=jdm
auto merge of #5059 : saneyuki/servo/event, r=jdm

Fix #4260

Pick up: This original commit is https://github.com/servo/servo/pull/4718.

nerith/servo,vks/servo,jdramani/servo,j3parker/servo,thiagopnts/servo,larsbergstrom/servo,jdramani/servo,notriddle/servo,szeged/servo,karlito40/servo,mdibaiee/servo,mbrubeck/servo,zhangjunlei26/servo,boghison/servo,dvberkel/servo,jgraham/servo,eddyb/servo,j3parker/servo,jdramani/servo,pgonda/servo,srbhklkrn/SERVOENGINE,mbrubeck/servo,mbrubeck/servo,bjwbell/servo,RenaudParis/servo,dmarcos/servo,jimberlage/servo,emilio/servo,mt2d2/servo,kindersung/servo,nnethercote/servo,aweinstock314/servo,saneyuki/servo,rixrix/servo,meh/servo,nrc/servo,dhananjay92/servo,wartman4404/servo,g-k/servo,samfoo/servo,mattnenterprise/servo,pyecs/servo,dagnir/servo,GreenRecycleBin/servo,saneyuki/servo,luniv/servo,vks/servo,nrc/servo,upsuper/servo,zhangjunlei26/servo,AnthonyBroadCrawford/servo,saratang/servo,dmarcos/servo,jlegendary/servo,jgraham/servo,mt2d2/servo,akosel/servo,A-deLuna/servo,kindersung/servo,boghison/servo,cbrewster/servo,SimonSapin/servo,deokjinkim/servo,jimberlage/servo,DominoTree/servo,WriterOfAlicrow/servo,Adenilson/prototype-viewing-distance,evilpie/servo,tempbottle/servo,youprofit/servo,luniv/servo,KiChjang/servo,nerith/servo,jimberlage/servo,g-k/servo,ConnorGBrewster/servo,mt2d2/servo,canaltinova/servo,bjwbell/servo,saratang/servo,deokjinkim/servo,aweinstock314/servo,akosel/servo,WriterOfAlicrow/servo,rentongzhang/servo,paulrouget/servo,zentner-kyle/servo,notriddle/servo,avadacatavra/servo,zentner-kyle/servo,KiChjang/servo,akosel/servo,aweinstock314/servo,rixrix/servo,canaltinova/servo,boghison/servo,rentongzhang/servo,nnethercote/servo,notriddle/servo,peterjoel/servo,GyrosOfWar/servo,nick-thompson/servo,snf/servo,boghison/servo,sadmansk/servo,evilpie/servo,paulrouget/servo,dvberkel/servo,dagnir/servo,paulrouget/servo,saneyuki/servo,mbrubeck/servo,jlegendary/servo,pyfisch/servo,wartman4404/servo,steveklabnik/servo,mt2d2/servo,saneyuki/servo,dmarcos/servo,tschneidereit/servo,samfoo/servo,anthgur/servo,rixrix/servo,echochamber/servo,tschneidereit/servo,steveklabnik/servo,wpgallih/servo,mbrubeck/servo,dmarcos/servo,indykish/servo,emilio/servo,jgraham/servo,ryancanhelpyou/servo,zentner-kyle/servo,DominoTree/servo,nrc/servo,youprofit/servo,tafia/servo,meh/servo,j3parker/servo,bjwbell/servo,mdibaiee/servo,CJ8664/servo,fiji-flo/servo,dagnir/servo,indykish/servo,brendandahl/servo,evilpie/servo,jimberlage/servo,pyfisch/servo,karlito40/servo,wartman4404/servo,KiChjang/servo,s142857/servo,KiChjang/servo,RenaudParis/servo,splav/servo,samfoo/servo,pyfisch/servo,echochamber/servo,pyecs/servo,evilpie/servo,cbrewster/servo,mt2d2/servo,indykish/servo,echochamber/servo,dhananjay92/servo,runarberg/servo,KiChjang/servo,anthgur/servo,dati91/servo,saneyuki/servo,snf/servo,splav/servo,AnthonyBroadCrawford/servo,A-deLuna/servo,A-deLuna/servo,ryancanhelpyou/servo,larsbergstrom/servo,indykish/servo,mdibaiee/servo,Adenilson/prototype-viewing-distance,huonw/servo,CJ8664/servo,srbhklkrn/SERVOENGINE,canaltinova/servo,paulrouget/servo,larsbergstrom/servo,brendandahl/servo,srbhklkrn/SERVOENGINE,DominoTree/servo,evilpie/servo,WriterOfAlicrow/servo,s142857/servo,dmarcos/servo,walac/servo,cbrewster/servo,jgraham/servo,rnestler/servo,huonw/servo,szeged/servo,wpgallih/servo,rnestler/servo,nnethercote/servo,A-deLuna/servo,larsbergstrom/servo,dagnir/servo,notriddle/servo,rnestler/servo,DominoTree/servo,emilio/servo,aweinstock314/servo,tempbottle/servo,karlito40/servo,larsbergstrom/servo,WriterOfAlicrow/servo,GyrosOfWar/servo,GreenRecycleBin/servo,walac/servo,saneyuki/servo,dvberkel/servo,jlegendary/servo,CJ8664/servo,CJ8664/servo,youprofit/servo,runarberg/servo,j3parker/servo,upsuper/servo,tafia/servo,dati91/servo,larsbergstrom/servo,SimonSapin/servo,paulrouget/servo,nick-thompson/servo,dhananjay92/servo,dsandeephegde/servo,szeged/servo,saneyuki/servo,fiji-flo/servo,rixrix/servo,caldwell/servo,nnethercote/servo,brendandahl/servo,pyecs/servo,nrc/servo,kindersung/servo,AnthonyBroadCrawford/servo,anthgur/servo,mattnenterprise/servo,dati91/servo,emilio/servo,SimonSapin/servo,nick-thompson/servo,nnethercote/servo,samfoo/servo,RenaudParis/servo,meh/servo,pgonda/servo,ryancanhelpyou/servo,GreenRecycleBin/servo,zhangjunlei26/servo,aidanhs/servo,indykish/servo,KiChjang/servo,mattnenterprise/servo,dsandeephegde/servo,dhananjay92/servo,avadacatavra/servo,jlegendary/servo,SimonSapin/servo,akosel/servo,notriddle/servo,fiji-flo/servo,samfoo/servo,hyowon/servo,jimberlage/servo,KiChjang/servo,DominoTree/servo,dhananjay92/servo,jlegendary/servo,steveklabnik/servo,WriterOfAlicrow/servo,emilio/servo,mattnenterprise/servo,pgonda/servo,jimberlage/servo,aidanhs/servo,deokjinkim/servo,mbrubeck/servo,huonw/servo,ConnorGBrewster/servo,s142857/servo,nerith/servo,canaltinova/servo,aidanhs/servo,tafia/servo,huonw/servo,avadacatavra/servo,wartman4404/servo,hyowon/servo,eddyb/servo,saneyuki/servo,peterjoel/servo,nnethercote/servo,snf/servo,szeged/servo,CJ8664/servo,splav/servo,kindersung/servo,canaltinova/servo,boghison/servo,nick-thompson/servo,splav/servo,g-k/servo,youprofit/servo,GreenRecycleBin/servo,notriddle/servo,codemac/servo,peterjoel/servo,luniv/servo,zhangjunlei26/servo,wpgallih/servo,rnestler/servo,vks/servo,nick-thompson/servo,dati91/servo,huonw/servo,wpgallih/servo,anthgur/servo,aidanhs/servo,s142857/servo,zhangjunlei26/servo,Adenilson/prototype-viewing-distance,jimberlage/servo,steveklabnik/servo,rixrix/servo,eddyb/servo,avadacatavra/servo,youprofit/servo,RenaudParis/servo,peterjoel/servo,fiji-flo/servo,dvberkel/servo,dagnir/servo,peterjoel/servo,ryancanhelpyou/servo,canaltinova/servo,wartman4404/servo,nnethercote/servo,tafia/servo,larsbergstrom/servo,hyowon/servo,mattnenterprise/servo,paulrouget/servo,dvberkel/servo,CJ8664/servo,aidanhs/servo,srbhklkrn/SERVOENGINE,rixrix/servo,runarberg/servo,dati91/servo,tafia/servo,snf/servo,echochamber/servo,kindersung/servo,echochamber/servo,splav/servo,fiji-flo/servo,splav/servo,mbrubeck/servo,nnethercote/servo,emilio/servo,paulrouget/servo,rentongzhang/servo,walac/servo,wpgallih/servo,rentongzhang/servo,dsandeephegde/servo,szeged/servo,j3parker/servo,nrc/servo,splav/servo,akosel/servo,deokjinkim/servo,larsbergstrom/servo,fiji-flo/servo,rixrix/servo,emilio/servo,AnthonyBroadCrawford/servo,mdibaiee/servo,codemac/servo,bjwbell/servo,sadmansk/servo,notriddle/servo,pyfisch/servo,nerith/servo,brendandahl/servo,szeged/servo,eddyb/servo,walac/servo,jimberlage/servo,SimonSapin/servo,pyecs/servo,RenaudParis/servo,Adenilson/prototype-viewing-distance,nerith/servo,zentner-kyle/servo,sadmansk/servo,boghison/servo,tschneidereit/servo,deokjinkim/servo,GyrosOfWar/servo,aidanhs/servo,luniv/servo,upsuper/servo,tschneidereit/servo,larsbergstrom/servo,GreenRecycleBin/servo,avadacatavra/servo,peterjoel/servo,thiagopnts/servo,pyecs/servo,s142857/servo,GyrosOfWar/servo,KiChjang/servo,peterjoel/servo,nrc/servo,snf/servo,thiagopnts/servo,luniv/servo,akosel/servo,samfoo/servo,jimberlage/servo,anthgur/servo,caldwell/servo,eddyb/servo,rixrix/servo,meh/servo,aweinstock314/servo,mt2d2/servo,dhananjay92/servo,hyowon/servo,pgonda/servo,eddyb/servo,tafia/servo,Adenilson/prototype-viewing-distance,meh/servo,avadacatavra/servo,kindersung/servo,indykish/servo,meh/servo,SimonSapin/servo,saratang/servo,zhangjunlei26/servo,AnthonyBroadCrawford/servo,nerith/servo,DominoTree/servo,hyowon/servo,sadmansk/servo,saratang/servo,rnestler/servo,dsandeephegde/servo,pyecs/servo,codemac/servo,brendandahl/servo,dsandeephegde/servo,ConnorGBrewster/servo,luniv/servo,CJ8664/servo,evilpie/servo,GreenRecycleBin/servo,tempbottle/servo,steveklabnik/servo,peterjoel/servo,mbrubeck/servo,codemac/servo,splav/servo,dvberkel/servo,evilpie/servo,fiji-flo/servo,karlito40/servo,cbrewster/servo,saratang/servo,caldwell/servo,GreenRecycleBin/servo,anthgur/servo,notriddle/servo,saneyuki/servo,Adenilson/prototype-viewing-distance,evilpie/servo,g-k/servo,tempbottle/servo,nick-thompson/servo,nick-thompson/servo,tschneidereit/servo,runarberg/servo,aidanhs/servo,pyfisch/servo,caldwell/servo,dhananjay92/servo,youprofit/servo,notriddle/servo,pyfisch/servo,steveklabnik/servo,j3parker/servo,nnethercote/servo,mdibaiee/servo,paulrouget/servo,emilio/servo,walac/servo,bjwbell/servo,srbhklkrn/SERVOENGINE,notriddle/servo,srbhklkrn/SERVOENGINE,szeged/servo,larsbergstrom/servo,zhangjunlei26/servo,zentner-kyle/servo,tschneidereit/servo,vks/servo,ConnorGBrewster/servo,jdramani/servo,rnestler/servo,dsandeephegde/servo,nrc/servo,A-deLuna/servo,hyowon/servo,dagnir/servo,pyecs/servo,AnthonyBroadCrawford/servo,mdibaiee/servo,ryancanhelpyou/servo,WriterOfAlicrow/servo,sadmansk/servo,codemac/servo,dmarcos/servo,thiagopnts/servo,avadacatavra/servo,SimonSapin/servo,dvberkel/servo,peterjoel/servo,szeged/servo,rentongzhang/servo,bjwbell/servo,anthgur/servo,A-deLuna/servo,mdibaiee/servo,runarberg/servo,deokjinkim/servo,GyrosOfWar/servo,echochamber/servo,ConnorGBrewster/servo,karlito40/servo,youprofit/servo,runarberg/servo,vks/servo,upsuper/servo,tempbottle/servo,nerith/servo,tempbottle/servo,pyfisch/servo,ryancanhelpyou/servo,thiagopnts/servo,snf/servo,rentongzhang/servo,tempbottle/servo,mattnenterprise/servo,boghison/servo,echochamber/servo,dati91/servo,KiChjang/servo,s142857/servo,g-k/servo,runarberg/servo,caldwell/servo,luniv/servo,g-k/servo,upsuper/servo,dati91/servo,sadmansk/servo,akosel/servo,j3parker/servo,tschneidereit/servo,AnthonyBroadCrawford/servo,GyrosOfWar/servo,huonw/servo,mattnenterprise/servo,wpgallih/servo,meh/servo,aweinstock314/servo,saratang/servo,ConnorGBrewster/servo,jdramani/servo,cbrewster/servo,jgraham/servo,thiagopnts/servo,upsuper/servo,jdramani/servo,pyfisch/servo,ConnorGBrewster/servo,indykish/servo,wpgallih/servo,vks/servo,pyfisch/servo,eddyb/servo,jgraham/servo,nnethercote/servo,walac/servo,pgonda/servo,thiagopnts/servo,dsandeephegde/servo,wpgallih/servo,dagnir/servo,saneyuki/servo,indykish/servo,karlito40/servo,emilio/servo,vks/servo,jlegendary/servo,huonw/servo,samfoo/servo,wartman4404/servo,DominoTree/servo,brendandahl/servo,rixrix/servo,thiagopnts/servo,karlito40/servo,hyowon/servo,Adenilson/prototype-viewing-distance,dati91/servo,wpgallih/servo,GreenRecycleBin/servo,emilio/servo,deokjinkim/servo,dmarcos/servo,upsuper/servo,caldwell/servo,snf/servo,wartman4404/servo,mt2d2/servo,anthgur/servo,cbrewster/servo,CJ8664/servo,kindersung/servo,pgonda/servo,sadmansk/servo,zhangjunlei26/servo,bjwbell/servo,sadmansk/servo,KiChjang/servo,cbrewster/servo,jdramani/servo,steveklabnik/servo,tafia/servo,splav/servo,saratang/servo,indykish/servo,peterjoel/servo,cbrewster/servo,szeged/servo,canaltinova/servo,mattnenterprise/servo,upsuper/servo,rentongzhang/servo,RenaudParis/servo,walac/servo,s142857/servo,paulrouget/servo,pgonda/servo,evilpie/servo,splav/servo,zhangjunlei26/servo,ryancanhelpyou/servo,eddyb/servo,pyfisch/servo,caldwell/servo,avadacatavra/servo,srbhklkrn/SERVOENGINE,canaltinova/servo,GreenRecycleBin/servo,jgraham/servo,rnestler/servo,g-k/servo,zentner-kyle/servo,DominoTree/servo,DominoTree/servo,dsandeephegde/servo,A-deLuna/servo,SimonSapin/servo,rnestler/servo,ConnorGBrewster/servo,WriterOfAlicrow/servo,DominoTree/servo,zentner-kyle/servo,jlegendary/servo,paulrouget/servo,aweinstock314/servo,brendandahl/servo,fiji-flo/servo,RenaudParis/servo,GyrosOfWar/servo,szeged/servo,codemac/servo,codemac/servo