lighthouse 8.6.0-dev.20211101 → 8.6.0-dev.20211102
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/report/flow.js +13 -13
- package/dist/report/standalone.js +11 -11
- package/flow-report/.eslintrc.cjs +2 -0
- package/flow-report/assets/styles.css +1 -1
- package/flow-report/src/common.tsx +11 -4
- package/flow-report/src/i18n/i18n.tsx +10 -6
- package/flow-report/src/icons.tsx +21 -9
- package/flow-report/src/sidebar/sidebar.tsx +9 -3
- package/flow-report/src/summary/category.tsx +7 -2
- package/flow-report/src/summary/summary.tsx +9 -3
- package/flow-report/src/util.ts +21 -9
- package/flow-report/src/wrappers/report-renderer.tsx +9 -3
- package/flow-report/src/wrappers/report.tsx +7 -2
- package/flow-report/test/setup/env-setup.ts +1 -1
- package/lighthouse-cli/.eslintrc.cjs +2 -0
- package/lighthouse-cli/cli-flags.js +1 -1
- package/lighthouse-core/audits/audit.js +1 -1
- package/lighthouse-core/computed/resource-summary.js +1 -1
- package/lighthouse-core/config/default-config.js +0 -2
- package/lighthouse-core/gather/connections/cri.js +1 -1
- package/lighthouse-core/lib/proto-preprocessor.js +14 -2
- package/lighthouse-core/lib/url-shim.js +1 -1
- package/lighthouse-core/util-commonjs.js +24 -9
- package/package.json +3 -3
- package/report/.eslintrc.cjs +2 -0
- package/report/assets/styles.css +226 -250
- package/report/assets/templates.html +19 -29
- package/report/renderer/category-renderer.js +21 -17
- package/report/renderer/components.js +21 -54
- package/report/renderer/crc-details-renderer.js +15 -12
- package/report/renderer/open-tab.js +9 -3
- package/report/renderer/performance-category-renderer.js +31 -19
- package/report/renderer/report-renderer.js +2 -1
- package/report/renderer/report-ui-features.js +2 -3
- package/report/renderer/util.js +25 -9
- package/report/test/renderer/category-renderer-test.js +2 -2
- package/report/test/renderer/performance-category-renderer-test.js +1 -1
- package/report/test/renderer/report-ui-features-test.js +7 -9
- package/report/test-assets/faux-psi.js +5 -5
- package/shared/localization/locales/ar-XB.json +0 -15
- package/shared/localization/locales/ar.json +0 -15
- package/shared/localization/locales/bg.json +0 -15
- package/shared/localization/locales/ca.json +0 -15
- package/shared/localization/locales/cs.json +0 -15
- package/shared/localization/locales/da.json +0 -15
- package/shared/localization/locales/de.json +0 -15
- package/shared/localization/locales/el.json +0 -15
- package/shared/localization/locales/en-GB.json +0 -15
- package/shared/localization/locales/en-US.json +18 -15
- package/shared/localization/locales/en-XA.json +0 -15
- package/shared/localization/locales/en-XL.json +18 -15
- package/shared/localization/locales/es-419.json +0 -15
- package/shared/localization/locales/es.json +0 -15
- package/shared/localization/locales/fi.json +0 -15
- package/shared/localization/locales/fil.json +0 -15
- package/shared/localization/locales/fr.json +0 -15
- package/shared/localization/locales/he.json +0 -15
- package/shared/localization/locales/hi.json +0 -15
- package/shared/localization/locales/hr.json +0 -15
- package/shared/localization/locales/hu.json +0 -15
- package/shared/localization/locales/id.json +0 -15
- package/shared/localization/locales/it.json +0 -15
- package/shared/localization/locales/ja.json +0 -15
- package/shared/localization/locales/ko.json +0 -15
- package/shared/localization/locales/lt.json +0 -15
- package/shared/localization/locales/lv.json +0 -15
- package/shared/localization/locales/nl.json +0 -15
- package/shared/localization/locales/no.json +0 -15
- package/shared/localization/locales/pl.json +0 -15
- package/shared/localization/locales/pt-PT.json +0 -15
- package/shared/localization/locales/pt.json +0 -15
- package/shared/localization/locales/ro.json +0 -15
- package/shared/localization/locales/ru.json +0 -15
- package/shared/localization/locales/sk.json +0 -15
- package/shared/localization/locales/sl.json +0 -15
- package/shared/localization/locales/sr-Latn.json +0 -15
- package/shared/localization/locales/sr.json +0 -15
- package/shared/localization/locales/sv.json +0 -15
- package/shared/localization/locales/ta.json +0 -15
- package/shared/localization/locales/te.json +0 -15
- package/shared/localization/locales/th.json +0 -15
- package/shared/localization/locales/tr.json +0 -15
- package/shared/localization/locales/uk.json +0 -15
- package/shared/localization/locales/vi.json +0 -15
- package/shared/localization/locales/zh-HK.json +0 -15
- package/shared/localization/locales/zh-TW.json +0 -15
- package/shared/localization/locales/zh.json +0 -15
- package/lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js +0 -96
|
@@ -800,21 +800,6 @@
|
|
|
800
800
|
"lighthouse-core/audits/dobetterweb/dom-size.js | title": {
|
|
801
801
|
"message": "Izogiba se prekomerni velikosti DOM-a"
|
|
802
802
|
},
|
|
803
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | columnFailingAnchors": {
|
|
804
|
-
"message": "Neuspešna sidra"
|
|
805
|
-
},
|
|
806
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | description": {
|
|
807
|
-
"message": "Zunanjim povezavam dodajte `rel=\"noopener\"` ali `rel=\"noreferrer\"` zaradi izboljšanja delovanja in preprečevanja varnostnih ranljivosti. [Več o tem](https://web.dev/external-anchors-use-rel-noopener/)"
|
|
808
|
-
},
|
|
809
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | failureTitle": {
|
|
810
|
-
"message": "Povezave do ciljev iz več izvorov niso varne"
|
|
811
|
-
},
|
|
812
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | title": {
|
|
813
|
-
"message": "Povezave do ciljev iz več izvorov so varne"
|
|
814
|
-
},
|
|
815
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | warning": {
|
|
816
|
-
"message": "Ni mogoče določiti cilja za sidro ({anchorHTML}). Če se ne uporablja kot hiperpovezava, lahko odstranite target=_blank."
|
|
817
|
-
},
|
|
818
803
|
"lighthouse-core/audits/dobetterweb/geolocation-on-start.js | description": {
|
|
819
804
|
"message": "Uporabniki so nezaupljivi do spletnih mest oziroma jih begajo spletna mesta, ki zahtevajo njihovo lokacijo brez konteksta. Razmislite o tem, da bi zahtevo povezali z uporabniškim dejanjem. [Več o tem](https://web.dev/geolocation-on-start/)."
|
|
820
805
|
},
|
|
@@ -800,21 +800,6 @@
|
|
|
800
800
|
"lighthouse-core/audits/dobetterweb/dom-size.js | title": {
|
|
801
801
|
"message": "Izbegava preveliku veličinu DOM-a"
|
|
802
802
|
},
|
|
803
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | columnFailingAnchors": {
|
|
804
|
-
"message": "Sidra koja nisu prošla proveru"
|
|
805
|
-
},
|
|
806
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | description": {
|
|
807
|
-
"message": "Dodajte `rel=\"noopener\"` ili`rel=\"noreferrer\"` svim spoljnim linkovima da biste poboljšali učinak i sprečili bezbednosne propuste. [Saznajte više](https://web.dev/external-anchors-use-rel-noopener/)."
|
|
808
|
-
},
|
|
809
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | failureTitle": {
|
|
810
|
-
"message": "Linkovi do odredišta iz drugih izvora nisu bezbedni"
|
|
811
|
-
},
|
|
812
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | title": {
|
|
813
|
-
"message": "Linkovi do odredišta iz drugih izvora su bezbedni"
|
|
814
|
-
},
|
|
815
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | warning": {
|
|
816
|
-
"message": "Nije moguće odrediti odredište za tekst linka ({anchorHTML}). Ako se ne koristi kao hiperlink, preporučujemo vam da uklonite target=_blank."
|
|
817
|
-
},
|
|
818
803
|
"lighthouse-core/audits/dobetterweb/geolocation-on-start.js | description": {
|
|
819
804
|
"message": "Korisnici nemaju poverenja u sajtove koji traže njihovu lokaciju bez konteksta ili ih takvi sajtovi zbunjuju. Preporučujemo vam da umesto toga povežete zahtev sa radnjom koju obavlja korisnik. [Saznajte više](https://web.dev/geolocation-on-start/)."
|
|
820
805
|
},
|
|
@@ -800,21 +800,6 @@
|
|
|
800
800
|
"lighthouse-core/audits/dobetterweb/dom-size.js | title": {
|
|
801
801
|
"message": "Избегава превелику величину DOM-а"
|
|
802
802
|
},
|
|
803
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | columnFailingAnchors": {
|
|
804
|
-
"message": "Сидра која нису прошла проверу"
|
|
805
|
-
},
|
|
806
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | description": {
|
|
807
|
-
"message": "Додајте `rel=\"noopener\"` или`rel=\"noreferrer\"` свим спољним линковима да бисте побољшали учинак и спречили безбедносне пропусте. [Сазнајте више](https://web.dev/external-anchors-use-rel-noopener/)."
|
|
808
|
-
},
|
|
809
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | failureTitle": {
|
|
810
|
-
"message": "Линкови до одредишта из других извора нису безбедни"
|
|
811
|
-
},
|
|
812
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | title": {
|
|
813
|
-
"message": "Линкови до одредишта из других извора су безбедни"
|
|
814
|
-
},
|
|
815
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | warning": {
|
|
816
|
-
"message": "Није могуће одредити одредиште за текст линка ({anchorHTML}). Ако се не користи као хиперлинк, препоручујемо вам да уклоните target=_blank."
|
|
817
|
-
},
|
|
818
803
|
"lighthouse-core/audits/dobetterweb/geolocation-on-start.js | description": {
|
|
819
804
|
"message": "Корисници немају поверења у сајтове који траже њихову локацију без контекста или их такви сајтови збуњују. Препоручујемо вам да уместо тога повежете захтев са радњом коју обавља корисник. [Сазнајте више](https://web.dev/geolocation-on-start/)."
|
|
820
805
|
},
|
|
@@ -800,21 +800,6 @@
|
|
|
800
800
|
"lighthouse-core/audits/dobetterweb/dom-size.js | title": {
|
|
801
801
|
"message": "Undviker ett onödigt stort DOM-träd"
|
|
802
802
|
},
|
|
803
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | columnFailingAnchors": {
|
|
804
|
-
"message": "Ankare med fel"
|
|
805
|
-
},
|
|
806
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | description": {
|
|
807
|
-
"message": "Lägg till `rel=\"noopener\"` eller `rel=\"noreferrer\"` i alla externa länkar för att förbättra prestanda och säkerhet. [Läs mer](https://web.dev/external-anchors-use-rel-noopener/)."
|
|
808
|
-
},
|
|
809
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | failureTitle": {
|
|
810
|
-
"message": "Länkar till mål med korsursprung är osäkra"
|
|
811
|
-
},
|
|
812
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | title": {
|
|
813
|
-
"message": "Länkar till mål med korsursprung är säkra"
|
|
814
|
-
},
|
|
815
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | warning": {
|
|
816
|
-
"message": "Det går inte att fastställa målet för ankaret ({anchorHTML}). Det kan vara bra att ta bort target=_blank om det inte används som hyperlänk."
|
|
817
|
-
},
|
|
818
803
|
"lighthouse-core/audits/dobetterweb/geolocation-on-start.js | description": {
|
|
819
804
|
"message": "Användare blir misstänksamma eller förvirrade av webbplatser som ber om åtkomst till deras plats utan sammanhang. Det kan vara bättre att koppla förfrågan till något användaren gör. [Läs mer](https://web.dev/geolocation-on-start/)."
|
|
820
805
|
},
|
|
@@ -800,21 +800,6 @@
|
|
|
800
800
|
"lighthouse-core/audits/dobetterweb/dom-size.js | title": {
|
|
801
801
|
"message": "அபரிமிதமான DOM அளவைத் தவிர்க்கிறது"
|
|
802
802
|
},
|
|
803
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | columnFailingAnchors": {
|
|
804
|
-
"message": "தோல்வியுற்ற ஆங்க்கர்கள்"
|
|
805
|
-
},
|
|
806
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | description": {
|
|
807
|
-
"message": "ஏதேனும் புற இணைப்புகளின் செயல்திறனை அதிகரிக்கவும் அவற்றிலுள்ள பாதுகாப்புக் குறைபாடுகளைத் தடுக்கவும் `rel=\"noopener\"` அல்லது `rel=\"noreferrer\"`ஐ சேர்க்கவும். [மேலும் அறிக](https://web.dev/external-anchors-use-rel-noopener/)."
|
|
808
|
-
},
|
|
809
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | failureTitle": {
|
|
810
|
-
"message": "வேறு மூலங்களுக்கு செல்லும் இணைப்புகள் பாதுகாப்பற்றவை"
|
|
811
|
-
},
|
|
812
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | title": {
|
|
813
|
-
"message": "வேறு மூலங்களுக்கு செல்லும் இணைப்புகள் பாதுகாப்பானவை"
|
|
814
|
-
},
|
|
815
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | warning": {
|
|
816
|
-
"message": "ஆங்கருக்கான இடத்தை நிர்ணயிக்க முடியவில்லை ({anchorHTML}). லிங்க்காகப் பயன்படாதபட்சத்தில் target=_blank என்பதை அகற்றவும்."
|
|
817
|
-
},
|
|
818
803
|
"lighthouse-core/audits/dobetterweb/geolocation-on-start.js | description": {
|
|
819
804
|
"message": "சரியான காரணங்கள் இன்றி இருப்பிடத்தை அறிய கோரிக்கையிடும் தளங்களால் பயனர்கள் குழப்பமடையலாம் அல்லது சந்தேகப்படலாம். அதற்கு பதிலாக பயனர் செயல்பாட்டை முயலவும். [மேலும் அறிக](https://web.dev/geolocation-on-start/)."
|
|
820
805
|
},
|
|
@@ -800,21 +800,6 @@
|
|
|
800
800
|
"lighthouse-core/audits/dobetterweb/dom-size.js | title": {
|
|
801
801
|
"message": "అధిక DOM పరిమాణాన్ని నివారిస్తుంది"
|
|
802
802
|
},
|
|
803
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | columnFailingAnchors": {
|
|
804
|
-
"message": "విఫలం అవుతున్న యాంకర్లు"
|
|
805
|
-
},
|
|
806
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | description": {
|
|
807
|
-
"message": "పనితీరును మెరుగుపరచడానికి, అలాగే భద్రతా ప్రమాదాలను నిరోధించడానికి ఏవైనా బయటి లింక్లకు '`rel=\"noopener\"`' లేదా '`rel=\"noreferrer\"`'లను జోడించండి. [మరింత తెలుసుకోండి](https://web.dev/external-anchors-use-rel-noopener/)."
|
|
808
|
-
},
|
|
809
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | failureTitle": {
|
|
810
|
-
"message": "క్రాస్-ఆరిజిన్ గమ్యస్థానాలకు తీసుకెళ్లే లింక్లు అసురక్షితమైనవి"
|
|
811
|
-
},
|
|
812
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | title": {
|
|
813
|
-
"message": "క్రాస్-ఆరిజిన్ గమ్యస్థానాలకు తీసుకెళ్లే లింక్లు సురక్షితమైనవి"
|
|
814
|
-
},
|
|
815
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | warning": {
|
|
816
|
-
"message": "యాంకర్ ({anchorHTML}) కోసం గమ్యస్థానాన్ని కనుగొనడం సాధ్యపడలేదు. ఒకవేళ హైపర్లింక్ లాగా ఉపయోగించకుంటే, 'target=_blank'ను తీసివేయడం గురించి పరిశీలించండి."
|
|
817
|
-
},
|
|
818
803
|
"lighthouse-core/audits/dobetterweb/geolocation-on-start.js | description": {
|
|
819
804
|
"message": "సందర్భం ఏమీ లేకుండా స్థానాన్ని అభ్యర్థించే సైట్లను వినియోగదారులు నమ్మరు లేదా గందరగోళానికి గురి అవుతారు. దానికి బదులుగా, వినియోగదారు చర్యతో రిక్వెస్ట్ను ప్రయత్నించడం పరిశీలించండి. [మరింత తెలుసుకోండి](https://web.dev/geolocation-on-start/)."
|
|
820
805
|
},
|
|
@@ -800,21 +800,6 @@
|
|
|
800
800
|
"lighthouse-core/audits/dobetterweb/dom-size.js | title": {
|
|
801
801
|
"message": "หลีกเลี่ยง DOM ที่มีขนาดใหญ่เกินไป"
|
|
802
802
|
},
|
|
803
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | columnFailingAnchors": {
|
|
804
|
-
"message": "แท็ก Anchor ที่ไม่ผ่านการตรวจสอบ"
|
|
805
|
-
},
|
|
806
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | description": {
|
|
807
|
-
"message": "เพิ่ม `rel=\"noopener\"` หรือ `rel=\"noreferrer\"` ไปยังลิงก์ภายนอกใดๆ เพื่อปรับปรุงประสิทธิภาพและป้องกันช่องโหว่ด้านความปลอดภัย [ดูข้อมูลเพิ่มเติม](https://web.dev/external-anchors-use-rel-noopener/)"
|
|
808
|
-
},
|
|
809
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | failureTitle": {
|
|
810
|
-
"message": "ลิงก์ไปปลายทางแบบ Cross-Origin ไม่ปลอดภัย"
|
|
811
|
-
},
|
|
812
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | title": {
|
|
813
|
-
"message": "ลิงก์ไปปลายทางแบบ Cross-Origin ปลอดภัย"
|
|
814
|
-
},
|
|
815
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | warning": {
|
|
816
|
-
"message": "ระบุปลายทางสำหรับโฆษณาด้านล่างสุด ({anchorHTML}) ไม่ได้ หากไม่ได้ใช้เป็นไฮเปอร์ลิงก์ ลองเอา target=_blank ออก"
|
|
817
|
-
},
|
|
818
803
|
"lighthouse-core/audits/dobetterweb/geolocation-on-start.js | description": {
|
|
819
804
|
"message": "ผู้ใช้ไม่เชื่อถือหรือเกิดความสับสนในเว็บไซต์ที่ขอข้อมูลตำแหน่งโดยไม่มีบริบทให้ พิจารณาผูกคำขอกับการกระทำของผู้ใช้แทน [ดูข้อมูลเพิ่มเติม](https://web.dev/geolocation-on-start/)"
|
|
820
805
|
},
|
|
@@ -800,21 +800,6 @@
|
|
|
800
800
|
"lighthouse-core/audits/dobetterweb/dom-size.js | title": {
|
|
801
801
|
"message": "Aşırı büyük bir DOM boyutunu önler"
|
|
802
802
|
},
|
|
803
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | columnFailingAnchors": {
|
|
804
|
-
"message": "Başarısız Bağlantılar"
|
|
805
|
-
},
|
|
806
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | description": {
|
|
807
|
-
"message": "Performansı artırmak ve güvenlik açıklarını önlemek için harici bağlantılara `rel=\"noopener\"` veya `rel=\"noreferrer\"` ekleyin. [Daha fazla bilgi](https://web.dev/external-anchors-use-rel-noopener/)."
|
|
808
|
-
},
|
|
809
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | failureTitle": {
|
|
810
|
-
"message": "Çapraz kökenli hedeflere bağlantılar güvenli değildir"
|
|
811
|
-
},
|
|
812
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | title": {
|
|
813
|
-
"message": "Çapraz kökenli hedeflere bağlantılar güvenli"
|
|
814
|
-
},
|
|
815
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | warning": {
|
|
816
|
-
"message": "Bağlantı için hedef belirlenemedi ({anchorHTML}). Köprü olarak kullanılmadıysa target=_blank öğesini kaldırmayı değerlendirin."
|
|
817
|
-
},
|
|
818
803
|
"lighthouse-core/audits/dobetterweb/geolocation-on-start.js | description": {
|
|
819
804
|
"message": "Kullanıcılar herhangi bir bağlam olmadan konum bilgilerini isteyen sitelere şüpheyle bakarlar veya bu istek karşısında şaşırırlar. Onun yerine isteği bir kullanıcı işlemine bağlamayı değerlendirin. [Daha fazla bilgi](https://web.dev/geolocation-on-start/)."
|
|
820
805
|
},
|
|
@@ -800,21 +800,6 @@
|
|
|
800
800
|
"lighthouse-core/audits/dobetterweb/dom-size.js | title": {
|
|
801
801
|
"message": "Уникається надмірний розмір DOM"
|
|
802
802
|
},
|
|
803
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | columnFailingAnchors": {
|
|
804
|
-
"message": "Відхилені прив'язки"
|
|
805
|
-
},
|
|
806
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | description": {
|
|
807
|
-
"message": "Додайте `rel=\"noopener\"` або `rel=\"noreferrer\"` до зовнішніх посилань, щоб покращити ефективність і підвищити їх захищеність. [Докладніше](https://web.dev/external-anchors-use-rel-noopener/)."
|
|
808
|
-
},
|
|
809
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | failureTitle": {
|
|
810
|
-
"message": "Міждоменні посилання на веб-сторінці ненадійні"
|
|
811
|
-
},
|
|
812
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | title": {
|
|
813
|
-
"message": "Міждоменні посилання на веб-сторінці надійні"
|
|
814
|
-
},
|
|
815
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | warning": {
|
|
816
|
-
"message": "Не вдалося визначити сервіс для прив'язки ({anchorHTML}). Якщо гіперпосилання не використовується, видаліть цю частину: \"target=_blank\"."
|
|
817
|
-
},
|
|
818
803
|
"lighthouse-core/audits/dobetterweb/geolocation-on-start.js | description": {
|
|
819
804
|
"message": "Сайти, які надсилають запит на доступ до місцезнаходження без пояснення, викликають у користувачів недовіру або спантеличеність. Радимо пов'язувати запит із діями користувача. [Докладніше](https://web.dev/geolocation-on-start/)."
|
|
820
805
|
},
|
|
@@ -800,21 +800,6 @@
|
|
|
800
800
|
"lighthouse-core/audits/dobetterweb/dom-size.js | title": {
|
|
801
801
|
"message": "Tránh kích thước DOM quá lớn"
|
|
802
802
|
},
|
|
803
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | columnFailingAnchors": {
|
|
804
|
-
"message": "Đường liên kết không kiểm tra được"
|
|
805
|
-
},
|
|
806
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | description": {
|
|
807
|
-
"message": "Thêm `rel=\"noopener\"` hoặc `rel=\"noreferrer\"` vào mọi đường liên kết ngoài để cải thiện hiệu suất và ngăn chặn các lỗ hổng bảo mật. [Tìm hiểu thêm](https://web.dev/external-anchors-use-rel-noopener/)."
|
|
808
|
-
},
|
|
809
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | failureTitle": {
|
|
810
|
-
"message": "Các đường liên kết đến các trang đích trên nhiều nguồn gốc là không an toàn"
|
|
811
|
-
},
|
|
812
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | title": {
|
|
813
|
-
"message": "Các đường liên kết đến các trang đích trên nhiều nguồn gốc là an toàn"
|
|
814
|
-
},
|
|
815
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | warning": {
|
|
816
|
-
"message": "Không thể xác định trang đích cho phần tử neo ({anchorHTML}). Nếu không dùng làm siêu liên kết, hãy cân nhắc xóa target=_blank."
|
|
817
|
-
},
|
|
818
803
|
"lighthouse-core/audits/dobetterweb/geolocation-on-start.js | description": {
|
|
819
804
|
"message": "Các trang web yêu cầu vị trí của người dùng mà không cung cấp ngữ cảnh sẽ khiến người dùng không tin tưởng hoặc bối rối. Hãy cân nhắc liên kết yêu cầu với hành động của người dùng. [Tìm hiểu thêm](https://web.dev/geolocation-on-start/)."
|
|
820
805
|
},
|
|
@@ -800,21 +800,6 @@
|
|
|
800
800
|
"lighthouse-core/audits/dobetterweb/dom-size.js | title": {
|
|
801
801
|
"message": "避免 DOM 過大"
|
|
802
802
|
},
|
|
803
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | columnFailingAnchors": {
|
|
804
|
-
"message": "審核失敗的錨點"
|
|
805
|
-
},
|
|
806
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | description": {
|
|
807
|
-
"message": "將 `rel=\"noopener\"` 或 `rel=\"noreferrer\"` 新增至所有外部連結,可提升效能並防範安全漏洞。[瞭解詳情](https://web.dev/external-anchors-use-rel-noopener/)。"
|
|
808
|
-
},
|
|
809
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | failureTitle": {
|
|
810
|
-
"message": "跨原始來源目的地的連結不安全"
|
|
811
|
-
},
|
|
812
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | title": {
|
|
813
|
-
"message": "跨來源目的地的連結安全"
|
|
814
|
-
},
|
|
815
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | warning": {
|
|
816
|
-
"message": "無法判斷錨點的目的地 ({anchorHTML})。如果 target=_blank 不是用作連結,請考慮移除。"
|
|
817
|
-
},
|
|
818
803
|
"lighthouse-core/audits/dobetterweb/geolocation-on-start.js | description": {
|
|
819
804
|
"message": "如果未提供其他資訊就要求存取使用者的位置資訊,會讓使用者感到困惑而不信任網站。建議您在使用者執行特定動作時,再提出這項要求。[瞭解詳情](https://web.dev/geolocation-on-start/)。"
|
|
820
805
|
},
|
|
@@ -800,21 +800,6 @@
|
|
|
800
800
|
"lighthouse-core/audits/dobetterweb/dom-size.js | title": {
|
|
801
801
|
"message": "避免 DOM 過大"
|
|
802
802
|
},
|
|
803
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | columnFailingAnchors": {
|
|
804
|
-
"message": "未通過稽核的錨點"
|
|
805
|
-
},
|
|
806
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | description": {
|
|
807
|
-
"message": "將 `rel=\"noopener\"` 或 `rel=\"noreferrer\"` 新增至所有外部連結,可提升效能並防範安全漏洞。[瞭解詳情](https://web.dev/external-anchors-use-rel-noopener/)。"
|
|
808
|
-
},
|
|
809
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | failureTitle": {
|
|
810
|
-
"message": "跨原始來源目的地的連結不安全"
|
|
811
|
-
},
|
|
812
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | title": {
|
|
813
|
-
"message": "跨來源目的地的連結很安全"
|
|
814
|
-
},
|
|
815
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | warning": {
|
|
816
|
-
"message": "無法判定錨點的目的地 ({anchorHTML})。如果 target=_blank 不是做為超連結使用,請考慮移除它。"
|
|
817
|
-
},
|
|
818
803
|
"lighthouse-core/audits/dobetterweb/geolocation-on-start.js | description": {
|
|
819
804
|
"message": "如果未提供其他資訊就要求存取使用者的位置資訊,會讓使用者感到困惑而不信任網站。建議你在使用者執行特定動作時,再提出這項要求。[瞭解詳情](https://web.dev/geolocation-on-start/)。"
|
|
820
805
|
},
|
|
@@ -800,21 +800,6 @@
|
|
|
800
800
|
"lighthouse-core/audits/dobetterweb/dom-size.js | title": {
|
|
801
801
|
"message": "避免 DOM 规模过大"
|
|
802
802
|
},
|
|
803
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | columnFailingAnchors": {
|
|
804
|
-
"message": "未通过审核的锚点"
|
|
805
|
-
},
|
|
806
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | description": {
|
|
807
|
-
"message": "向任何外部链接添加 `rel=\"noopener\"` 或 `rel=\"noreferrer\"`,可提高性能并减少安全漏洞。[了解详情](https://web.dev/external-anchors-use-rel-noopener/)。"
|
|
808
|
-
},
|
|
809
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | failureTitle": {
|
|
810
|
-
"message": "指向跨域目的地的链接不安全"
|
|
811
|
-
},
|
|
812
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | title": {
|
|
813
|
-
"message": "指向跨域目的地的链接安全"
|
|
814
|
-
},
|
|
815
|
-
"lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js | warning": {
|
|
816
|
-
"message": "无法确定锚点 ({anchorHTML}) 的目的地。如果不用作超链接,建议移除 target=_blank。"
|
|
817
|
-
},
|
|
818
803
|
"lighthouse-core/audits/dobetterweb/geolocation-on-start.js | description": {
|
|
819
804
|
"message": "如果网站在缺少上下文的情况下请求位置,会导致用户不信任网站或感到困惑。建议将请求与用户操作进行绑定。[了解详情](https://web.dev/geolocation-on-start/)。"
|
|
820
805
|
},
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright 2016 The Lighthouse Authors. All Rights Reserved.
|
|
3
|
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
4
|
-
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
|
|
5
|
-
*/
|
|
6
|
-
'use strict';
|
|
7
|
-
|
|
8
|
-
const URL = require('../../lib/url-shim.js');
|
|
9
|
-
const Audit = require('../audit.js');
|
|
10
|
-
const i18n = require('../../lib/i18n/i18n.js');
|
|
11
|
-
|
|
12
|
-
const UIStrings = {
|
|
13
|
-
/** Title of a Lighthouse audit that provides detail on the cross-origin links that the web page contains, and whether the links can be considered safe. This descriptive title is shown to users when all links are safe. */
|
|
14
|
-
title: 'Links to cross-origin destinations are safe',
|
|
15
|
-
/** Title of a Lighthouse audit that provides detail on the cross-origin links that the web page contains, and whether the links can be considered safe. This descriptive title is shown to users when not all links can be considered safe. */
|
|
16
|
-
failureTitle: 'Links to cross-origin destinations are unsafe',
|
|
17
|
-
/** Description of a Lighthouse audit that tells the user why and how they should secure cross-origin links. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
|
|
18
|
-
description: 'Add `rel="noopener"` or `rel="noreferrer"` to any external links to improve ' +
|
|
19
|
-
'performance and prevent security vulnerabilities. ' +
|
|
20
|
-
'[Learn more](https://web.dev/external-anchors-use-rel-noopener/).',
|
|
21
|
-
/**
|
|
22
|
-
* @description Warning that some links' destinations cannot be determined and therefore the audit cannot evaluate the link's safety.
|
|
23
|
-
* @example {<a target="_blank">} anchorHTML
|
|
24
|
-
*/
|
|
25
|
-
warning: 'Unable to determine the destination for anchor ({anchorHTML}). ' +
|
|
26
|
-
'If not used as a hyperlink, consider removing target=_blank.',
|
|
27
|
-
/** Label for a column in a data table; entries will be the HTML elements that failed the audit. Anchors are DOM elements that are links. */
|
|
28
|
-
columnFailingAnchors: 'Failing Anchors',
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
const str_ = i18n.createMessageInstanceIdFn(__filename, UIStrings);
|
|
32
|
-
|
|
33
|
-
class ExternalAnchorsUseRelNoopenerAudit extends Audit {
|
|
34
|
-
/**
|
|
35
|
-
* @return {LH.Audit.Meta}
|
|
36
|
-
*/
|
|
37
|
-
static get meta() {
|
|
38
|
-
return {
|
|
39
|
-
id: 'external-anchors-use-rel-noopener',
|
|
40
|
-
title: str_(UIStrings.title),
|
|
41
|
-
failureTitle: str_(UIStrings.failureTitle),
|
|
42
|
-
description: str_(UIStrings.description),
|
|
43
|
-
requiredArtifacts: ['URL', 'AnchorElements'],
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* @param {LH.Artifacts} artifacts
|
|
49
|
-
* @return {LH.Audit.Product}
|
|
50
|
-
*/
|
|
51
|
-
static audit(artifacts) {
|
|
52
|
-
/** @type {LH.IcuMessage[]} */
|
|
53
|
-
const warnings = [];
|
|
54
|
-
const pageHost = new URL(artifacts.URL.finalUrl).host;
|
|
55
|
-
const failingAnchors = artifacts.AnchorElements
|
|
56
|
-
.filter(anchor => anchor.target === '_blank' && !anchor.rel.includes('noopener') &&
|
|
57
|
-
!anchor.rel.includes('noreferrer'))
|
|
58
|
-
// Filter usages to exclude anchors that are same origin
|
|
59
|
-
.filter(anchor => {
|
|
60
|
-
try {
|
|
61
|
-
return new URL(anchor.href).host !== pageHost;
|
|
62
|
-
} catch (err) {
|
|
63
|
-
warnings.push(str_(UIStrings.warning, {anchorHTML: anchor.node.snippet}));
|
|
64
|
-
return true;
|
|
65
|
-
}
|
|
66
|
-
})
|
|
67
|
-
.filter(anchor => {
|
|
68
|
-
return !anchor.href || anchor.href.toLowerCase().startsWith('http');
|
|
69
|
-
})
|
|
70
|
-
.map(anchor => {
|
|
71
|
-
return {
|
|
72
|
-
node: Audit.makeNodeItem(anchor.node),
|
|
73
|
-
href: anchor.href || 'Unknown',
|
|
74
|
-
target: anchor.target || '',
|
|
75
|
-
rel: anchor.rel || '',
|
|
76
|
-
outerHTML: anchor.node.snippet || '',
|
|
77
|
-
};
|
|
78
|
-
});
|
|
79
|
-
|
|
80
|
-
/** @type {LH.Audit.Details.Table['headings']} */
|
|
81
|
-
const headings = [
|
|
82
|
-
{key: 'node', itemType: 'node', text: str_(UIStrings.columnFailingAnchors)},
|
|
83
|
-
];
|
|
84
|
-
|
|
85
|
-
const details = Audit.makeTableDetails(headings, failingAnchors);
|
|
86
|
-
|
|
87
|
-
return {
|
|
88
|
-
score: Number(failingAnchors.length === 0),
|
|
89
|
-
details,
|
|
90
|
-
warnings,
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
module.exports = ExternalAnchorsUseRelNoopenerAudit;
|
|
96
|
-
module.exports.UIStrings = UIStrings;
|