Google Chrome¤Ë¤ÏGoogle¤À¤±¤¬¥¢¥¯¥»¥¹¤Ç¤¤ë±£¤·API¤¬¥×¥ê¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ë¤³¤È¤¬È½ÌÀ¡¢Edge¤äBrave¤Ê¤É¤ÎChromium¥Ù¡¼¥¹¤Î¥Ö¥é¥¦¥¶¤âƱÍÍ
![](https://image.news.livedoor.com/newsimage/stf/4/8/484cc_88_0d24f3ffcb12c474524e12ba034bae03.jpg)
JavaScript Registry(JSR)¤äDeno¤Î³«È¯¼Ô¤Ç¤¢¤ëLuca Casonato»á¤¬¡¢Google½ãÀµ¤Î¥¦¥§¥Ö¥Ö¥é¥¦¥¶¤Ç¤¢¤ëGoogle Chrome¤Ë¤ÏGoogle´ØÏ¢¤Î¥¦¥§¥Ö¥µ¥¤¥È¤·¤«¥¢¥¯¥»¥¹¤Ç¤¤Ê¤¤API¤¬¥×¥ê¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ë¤È»ØŦ¤·¤Æ¤¤¤Þ¤¹¡£
Casonato»á¤Ë¤è¤ë¤È¡¢Google Chrome¤Ï¤¹¤Ù¤Æ¤ÎGoogle´ØÏ¢¥µ¥¤¥È¤Ë¥·¥¹¥Æ¥à¤ª¤è¤Ó¥¿¥Ö¾å¤Ç¤ÎCPU»ÈÍÑΨ¡¦GPU»ÈÍÑΨ¡¦¥á¥â¥ê»ÈÍÑΨ¤È¤¤¤Ã¤¿¾ðÊó¤Ø¤Î´°Á´¤Ê¥¢¥¯¥»¥¹¸¢¸Â¤òÉÕÍ¿¤·¤Æ¤¤¤Þ¤¹¡£Â¾¤Ë¤â¡¢¤è¤ê¾ÜºÙ¤Ê¥×¥í¥»¥Ã¥µ¾ðÊó¤Ø¤Î¥¢¥¯¥»¥¹¸¢¸Â¤ä¡¢¥í¥°¤òµÏ¿¤¹¤ë¥Ð¥Ã¥¯¥Á¥ã¥ó¥Í¥ë¤Ø¤Î¥¢¥¯¥»¥¹¸¢¸Â¤âÉÕÍ¿¤·¤Æ¤¤¤ë¤½¤¦¤Ç¤¹¡£¤³¤ì¤é¤ò¼Â¸½¤¹¤ëAPI¤Ï¡¢Â¾¤Î¥¦¥§¥Ö¥µ¥¤¥È¸þ¤±¤Ë¤Ï¸ø³«¤µ¤ì¤Æ¤ª¤é¤º¡¢Google¤¬¼«¼Ò¥µ¥¤¥È¤Ç¤Î¤ßÍøÍѤ·¤Æ¤¤¤ë¤â¤Î¤Ç¤¢¤ë¤È¡¢Casonato»á¤Ï»ØŦ¤·¤Æ¤¤¤Þ¤¹¡£
So, Google Chrome gives all *.google.com sites full access to system / tab CPU usage, GPU usage, and memory usage. It also gives access to detailed processor information, and provides a logging backchannel.
This API is not exposed to other sites - only to *.google.com.— Luca Casonato 🏳 (@lcasdev) 2024ǯ7·î9Æü
¡Ö¤³¤Î»ö¼Â¤Ï¡¢¥Ö¥é¥¦¥¶¥Ù¥ó¥À¡¼¤¬¼«¼Ò¤Î¥¦¥§¥Ö¥µ¥¤¥È¤ò¾¤Î¥¦¥§¥Ö¥µ¥¤¥È¤è¤ê¤âÍ¥¶ø¤¹¤Ù¤¤Ç¤Ï¤Ê¤¤¤È¤¤¤¦¹Í¤¨Êý¤ËÌÀ¤é¤«¤Ë°ãÈ¿¤·¤Æ¤¤¤ë¤¿¤á¡¢¶½Ì£¿¼¤¤¤â¤Î¤Ç¤¹¡£¥Ç¥¸¥¿¥ë»Ô¾ìË¡(DMA)¤Ï¤³¤Î¹Í¤¨¤òÌÀ³Î¤ËˡΧ¤Ç¶Ø»ß¤·¤Æ¤ª¤ê¡¢¥Ö¥é¥¦¥¶¥Ù¥ó¥À¡¼¤¬¥¤¥ó¥¿¡¼¥Í¥Ã¥È¾å¤Î¥²¡¼¥È¥¡¼¥Ñ¡¼¤È¤·¤Æ¡¢¤¹¤Ù¤Æ¤Î¿Í¤ËƱ¤¸µ¡Ç½¤òÄ󶡤·¤Ê¤±¤ì¤Ð¤¤¤±¤Ê¤¤¤È¤·¤Æ¤¤¤Þ¤¹¡×
This is interesting because it is a clear violation of the idea that browser vendors should not give preference to their websites over anyone elses.
The DMA codifies this idea into law: browser vendors, as gatekeepers of the internet, must give the same capabilities to everyone.— Luca Casonato 🏳 (@lcasdev) 2024ǯ7·î9Æü
¡ÖDMA¤Î²ò¼á¤Ë¤è¤Ã¤Æ¤Ï¡¢Google¤Î´ØÏ¢¥¦¥§¥Ö¥µ¥¤¥È¤Ë¤Î¤ß¾ðÊó¤ò¸ø³«¤¹¤ë¤³¤È¤Ç¡¢Ë¡Î§°ãÈ¿¤È¤ß¤Ê¤µ¤ì¤ë²ÄǽÀ¤¬¤¢¤ê¤Þ¤¹¡£Î㤨¤Ð¡¢¤³¤Îµ¡Ç½¤Ë¤è¤êZoom¤ÏGoogle Meet¤ÈƱ¤¸CPU¥Ç¥Ð¥Ã¥°µ¡Ç½¤òÄ󶡤¹¤ë¤³¤È¤¬¤Ç¤¤Ê¤¤¤¿¤á¡¢ÉÔÍø¤Ë¤Ê¤ê¤Þ¤¹¡×¤È½Ò¤Ù¡¢DMA¤Ë°ãÈ¿¤·¤Æ¤¤¤ë²ÄǽÀ¤ò¼¨º¶¤·¤Þ¤·¤¿¡£
Depending on how you interpret the DMA, this additional exposure of information only to Google properties may be considered a violation of the DMA.
Take for example Zoom - they are now at a disadvantage because they can not provide the same CPU debugging feature as Google Meet.— Luca Casonato 🏳 (@lcasdev) 2024ǯ7·î9Æü
Casonato»á¤Ë¤è¤ë¤È¡¢API¤Ï¥æ¡¼¥¶¡¼¤Î¼ê¤Ç¤Ï̵¸ú²½¤¹¤ë¤³¤È¤¬¤Ç¤¤Ê¤¤ÁȤ߹þ¤ß·¿¤ÎChrome³ÈÄ¥µ¡Ç½¤È¤·¤Æ¼ÂÁõ¤µ¤ì¤Æ¤ª¤ê¡¢³ÈÄ¥µ¡Ç½¥Ñ¥Í¥ë¤Ë¤âɽ¼¨¤µ¤ì¤Ê¤¤ÌÏÍÍ¡£¤¿¤À¤·¡¢API¤Î¥½¡¼¥¹¥³¡¼¥É¼«ÂΤϤ³¤³¤«¤é¥Á¥§¥Ã¥¯²Äǽ¤Ç¤¹¡£¤Ê¤ª¡¢Casonato»á¤Ï¡ÖƱ¤¸³ÈÄ¥µ¡Ç½¤¬Â¾¤ÎChromium¥Ö¥é¥¦¥¶(Chrome¤ÈƱ¤¸Chromium¤ò¥Ù¡¼¥¹¤È¤·¤¿¥¦¥§¥Ö¥Ö¥é¥¦¥¶)¤ËÅëºÜ¤µ¤ì¤Æ¤¤¤ë¤«¤ÏÉÔÌÀ¤Ç¤¹¡×¤È¸ÀµÚ¤·¤Æ¤¤¤Þ¤¹¡£
For those interested: this is done through a built-in Chrome extension that can not be disabled, and does not show up in the extensions panel. Source code is here: https://t.co/AlckJdpioC
It is unclear whether the same extension also ships in other Chromium derived browsers.— Luca Casonato 🏳 (@lcasdev) 2024ǯ7·î9Æü
¤½¤Î¸å¤ÎÄ´ºº¤Ç¡¢Microsoft Edge¤Ç¤ÏÌäÂê¤Î³ÈÄ¥µ¡Ç½¤¬¥×¥ê¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤ª¤ê¡¢Google´ØÏ¢¤Î¥¦¥§¥Ö¥µ¥¤¥È¤¬CPU¡¦GPU¡¦¥á¥â¥ê¤Î»ÈÍÑΨ¤Ê¤É¤Î¾ðÊó¤òÆɤ߼è¤ê²Äǽ¤È¤Ê¤Ã¤Æ¤¤¤ë¤³¤È¤¬È½ÌÀ¡£
Update: in Microsoft Edge this capability is also available exclusively to *.google.com domains— Luca Casonato 🏳 (@lcasdev) 2024ǯ7·î9Æü
¥»¥¥å¥ê¥Æ¥£¤ä¥×¥é¥¤¥Ð¥·¡¼¤ËÇÛθ¤·¤¿¥¦¥§¥Ö¥Ö¥é¥¦¥¶¤È¤·¤ÆÃΤé¤ì¤ëBrave¤â¡¢Chrome¤äEdge¤ÈƱ¤¸¤è¤¦¤Ë³ÈÄ¥µ¡Ç½¤¬¥×¥ê¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ë¤³¤È¤¬ÌÀ¤é¤«¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
And for everyone that keeps saying "Use Brave!!!":
Brave also has the same behaviour as Chrome and Edge here. The extension that allows Google to retrieve this information exclusively from *.google.com is also pre-installed in Brave.— Luca Casonato 🏳 (@lcasdev) 2024ǯ7·î9Æü
¤³¤Î³ÈÄ¥µ¡Ç½¤Î¸ºß¤Ï¥¤¥ó¥¿¡¼¥Í¥Ã¥È·Ç¼¨ÈĤÎHacker News¾å¤Ç¤âÏÃÂê¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
Google Chrome has an API accesible only from *.google.com | Hacker News
https://news.ycombinator.com/item?id=40918052
![](https://image.news.livedoor.com/newsimage/stf/1/5/1574d_88_11e47652706ffa6b1f8ff33e31669684.png)
ÌäÂê¤ÎAPI¤Ï¡Öhangout_services¡×¤È¤¤¤¦Ì¾¾Î¤Ç¤¢¤ë¤³¤È¤«¤é¡¢2022ǯ¤Ë½ªÎ»¤·¤ÆGoogle¥Á¥ã¥Ã¥È¤Ë°Ü¹Ô¤·¤¿¡ÖGoogle¥Ï¥ó¥°¥¢¥¦¥È¡×ÍѤ˳«È¯¤µ¤ì¤¿¤â¤Î¤Ç¤¢¤ë¤³¤È¤¬¿ä¬¤Ç¤¤Þ¤¹¡£¤¢¤ë¥æ¡¼¥¶¡¼¤Ï¡¢¡Ö˺¤ì¤Æ¤·¤Þ¤Ã¤¿¿Í¤Î¤¿¤á¤Ë¸À¤Ã¤Æ¤ª¤¯¤È¡¢Google¥Ï¥ó¥°¥¢¥¦¥È¤ÏWebRTC¤Î¥Ù¡¼¥¹¤È¤Ê¤Ã¤¿¥Ö¥é¥¦¥¶¾å¤Ç¥Ó¥Ç¥ªÄÌÏ䬹Ԥ¨¤ëºÇ½é¤Î¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ç¤·¤¿¡£¤³¤ÎAPI¤ÏÄ̾¥¢¥×¥ê¤¬¼èÆÀ¤·¤Ê¤¤CPU¡¦GPU¡¦¥á¥â¥ê¤Î»ÈÍѾõ¶·¤ä¥Ï¡¼¥É¥¦¥§¥¢¤Î¾ÜºÙ¾ðÊó¤ò¼èÆÀ¤·¡¢¥¢¥×¥ê¦¤ËÁ÷¿®¤·¤Þ¤¹¡£»ä¤Î¿ä¬¤Ç¤Ï¡¢Google¤Ïº£²ó¤ÎÁûÆ°¤ËÂФ·¤ÆAPI¤òºï½ü¤¹¤ë¤³¤È¤ÇÂбþ¤¹¤ë¤Ç¤·¤ç¤¦¡£¤Ê¤¼¤Ê¤éGoogle¥Ï¥ó¥°¥¢¥¦¥È¤Ï¤¹¤Ç¤ËÇѻߤµ¤ì¤¿À½ÉʤÀ¤«¤é¤Ç¤¹¡£¥µ¡¼¥Ð¡¼Â¦¤Î¥³¡¼¥É¤¬¤Þ¤À¤³¤ÎAPI¤òÍøÍѤ·¤Æ¤¤¤¿¤È¤·¤Æ¤â¡¢´Ö°ã¤¤¤Ê¤¯ºï½ü¤Ç¤¤Þ¤¹¡£¶²¤é¤¯¡¢Chrome¥Á¡¼¥à¤ÏÊ£¿ô¤Î¥¦¥§¥Ö¥µ¥¤¥È¤ÇWebRTC¤Î¥Ñ¥Õ¥©¡¼¥Þ¥ó¥¹¤òÆȼ«¤Ë´Æ»ë¤·¤Æ¤¤¤ë¤Ï¤º¤À¤«¤é¤Ç¤¹¡×¤È»ØŦ¤·¤Æ¤¤¤Þ¤¹¤¬¡¢Ê̤Υ桼¥¶¡¼¤Ï¡Ö¤³¤ì¤Ï¸½ºß¿Ê¹Ô·Á¤ÇGoogle Meet¤Ç»ÈÍѤµ¤ì¤Æ¤¤¤ëAPI¤Ç¤¹¡£Chrome¤Çmeet.google.com¤Î¡Ø¥È¥é¥Ö¥ë¥·¥å¡¼¥Æ¥£¥ó¥°¡Ù¥Ñ¥Í¥ë¤ò³«¤¯¤È¡¢¥·¥¹¥Æ¥àÁ´ÂΤÎCPU»ÈÍÑΨ¥ì¥Ý¡¼¥È¤¬¥ê¥¢¥ë¥¿¥¤¥à¤Çɽ¼¨¤µ¤ì¤Þ¤¹¡×¤È¸ì¤ê¡¢API¤¬¸½ºß¤â»ÈÍѤµ¤ì¤Æ¤¤¤ë¤â¤Î¤Ç¤¢¤ë¤È¸ÀµÚ¤·¤Þ¤·¤¿¡£
°ìÊý¤Ç¡¢ÌäÂê¤ÎAPI¤¬¼ÂÁõ¤µ¤ì¤Æ¤¤¤Ê¤¤Firefox¤Ç¤âGoogle Meet¤¬ÌäÂê¤Ê¤¯Æ°ºî¤¹¤ë¤¿¤á¡¢API¤¬ºï½ü¤µ¤ì¤Æ¤·¤Þ¤Ã¤¿¤È¤·¤Æ¤âÌäÂê¤Ê¤¤¤È¤¤¤¦À¼¤â¤¢¤ê¤Þ¤¹¡£Google¤ÇƯ¤¤¤Æ¤¤¤¿·Ð¸³¤¬¤¢¤ë¤È¤¤¤¦¥æ¡¼¥¶¡¼¤Ï¡¢¡Ö¸«¤»¤«¤±¤À¤±¤Î¤¿¤á¤Ë¹Ô¤ï¤ì¤¿¥Ö¥é¥ó¥ÉÊѹ¹¤Ë¹ç¤ï¤»¤Æ¡¢¸Å¤¤¥³¡¼¥É¤Î̾Á°¤òÊѹ¹¤¹¤ë¤è¤¦¤Ê¤³¤È¤Ï¤Ê¤¤¤ÈÃǸÀ¤Ç¤¤Þ¤¹¡£ÂÕÂƤ«¤é¤Ç¤Ï¤Ê¤¯¡¢Ã±¤Ë²ÁÃͤ¬¥¼¥í¤Ç¥ê¥¹¥¯¤¬¤¢¤ë¤À¤±¤À¤«¤é¤Ç¤¹¡×¤È¡¢API¤Î̾¾Î¤¬¥µ¡¼¥Ó¥¹°Ü¹ÔÀè¤ÎGoogle¥Á¥ã¥Ã¥È¤Ë¹ç¤ï¤»¤¿¤â¤Î¤Ë¤Ê¤Ã¤Æ¤¤¤Ê¤«¤Ã¤¿Íýͳ¤Ë¸ÀµÚ¤·¤Æ¤¤¤Þ¤¹¡£
¤Þ¤¿¡¢Ê̤μ«¾Î¸µGoogle½¾¶È°÷¤Ï¡¢API¤òÄ̤¸¤ÆWebRTC¤Î´ðÁäȤʤëÃ챤òGoogle¤¬½¬ÆÀ¤Ç¤¤¿¤Î¤Ç¤Ï¤Ê¤¤¤«¤È¿ä¬¤·¡¢¡Ö¤³¤ÎAPI¤Ë¤è¤Ã¤ÆWebRTC¤Î¼Â¸½¤¬Áá¤Þ¤Ã¤¿¤Î¤Ç¤Ï¤Ê¤¤¤«¤È»×¤¤¤Þ¤¹¡£»ä¤¬²¿¤«¤ò¸«Æ¨¤·¤Æ¤¤¤Ê¤¤¸Â¤ê¡¢¤³¤ÎAPI¤Ï2008ǯ¤«¤é¥Ç¡¼¥¿¤ò¼ý½¸¤·¤Æ¤¤¤Þ¤·¤¿¡£¤³¤ì¤ËÂФ·¤Æ¡¢WebRTC¤Î½éÈǤ¬¥ê¥ê¡¼¥¹¤µ¤ì¤¿¤Î¤Ï2011ǯ¤Î¤³¤È¤Ç¤¹¡×¤È¸ì¤Ã¤Æ¤¤¤Þ¤¹¡£