webcompat / web-bugs

A place to report bugs on websites.
https://webcompat.com
Mozilla Public License 2.0
741 stars 65 forks source link

viewer-ebook.books.com.tw - Firefox is an unsupported browser #80180

Closed random-integer closed 3 months ago

random-integer commented 3 years ago

URL: https://viewer-ebook.books.com.tw/viewer/epub/?book_uni_id=0010763244_reflowable_trial

Browser / Version: Firefox 90.0 (64-bit) Operating System: Linux x86_64 Tested Another Browser: Yes Other

Problem type: Site is not usable Description: Browser unsupported Steps to Reproduce: I tried to read a free sample of a book on "博客來", a platform selling books. First, I went to this page https://www.books.com.tw/products/0010763244 . I clicked the orange "試閱" (read free sample) button under the big thumbnail of the book. Another tab popped up and said that they only support Chrome and Safari. I changed my user agent from Firefox to Chrome, and the site magically worked.

View the screenshot Screenshot
Browser Configuration
  • None

From webcompat.com with ❤️

softvision-raul-bucata commented 3 years ago

@random-integer We appreciate your report. I was able to reproduce the issue using other devices as well. The page returns an error message after pressing the "Read sample" 試閱 - button:

Screenshot_60

Tested with:

Browser / Version: Firefox Nightly 92.0a1 (2021-07-13) (64-bit)/ Chrome Version Version 91.0.4472.124 Operating System: Windows 10 PRO x64

Notes:

  1. Reproducible regardless of the status of ETP
  2. Reproducible on the latest build of Firefox Nightly
  3. Works as expected using Chrome:

Moving this to NeedsDiagnosis for further investigations.

ksy36 commented 3 years ago

There is $['supportBrowserCheck']() function that is responsible for UA detection:

  var _0xaf690b = _0x5017ea,
  _0x2e1fbe = new UAParser() [_0xaf690b(182)](),
  _0x492f17 = - 1 < _0x2e1fbe['browser'][_0xaf690b(135)][_0xaf690b(172)](_0xaf690b(181)),
  _0x47c707 = - 1 < _0x2e1fbe['browser'][_0xaf690b(135)][_0xaf690b(172)]('Safari'),
  _0x5e88b0 = /(Edg|Edge|EdgiOS|EdgA)\//[_0xaf690b(130)](_0x2e1fbe['ua']);
  return !!(_0x492f17 || _0x47c707 || _0x5e88b0) && !(_0x492f17 && _0x2e1fbe[_0xaf690b(140)][_0xaf690b(152)] < 50 && 'web' != user_device);

where _0xaf690b(181) is Chrome. The function doesn't check for Firefox, therefore the unsupported message is displayed.

The site should be contacted to see if there is a reason for not supporting Firefox.

We could potentially add an UA override here since the viewer seems to be working correctly in Firefox

webcompat-bot commented 3 years ago

Generate outreach template

random-integer commented 2 years ago

Hi, sorry for the really really late reply, but, I used the issue reporter thingy to send them a message addressing this issue. I asked why they didn't support Firefox and that they should. Here's their reply:

關於您的問題,目前WEB版電子書櫃瀏覽器閱讀支援Safari (11以上版本)、Chrome (87以上版本) 、Edge瀏覽器 (88以上版本)。可參考電子書商品頁下方的【購物說明】。

此外,非常感謝您不吝來函提供給我們您的寶貴意見,我們將轉達給相關部門參考,您的建議與支持,是我們持續前進的最大動力,我們將會極力改善,提供客戶滿意的服務,謝謝。

Basically, they didn't tell me why it's not supported, instead they just told me that the supported browsers are Safari, Chrome, and Edge (as I already knew).

I tried reading a free sample on their website with Firefox again. Now, instead of the old message dialog that used to pop up, a prompt pops up telling me that only Safari and Chrome are supported.

prompt telling me that only safari and chrome are supported

When I click the "OK" button, the site redirects me to Google Chrome's download site. That's such a bad thing to do! I wonder why they don't want to support Firefox so badly...

denschub commented 1 year ago

A Web Compatibility intervention for this is now shipping in Firefox Nightly 114 as per bug 1805410. We will be uplifting this intervention into the 113 Beta as well, so that it'll be included in that release train.

random-integer commented 1 year ago

A Web Compatibility intervention for this is now shipping in Firefox Nightly 114 as per bug 1805410. We will be uplifting this intervention into the 113 Beta as well, so that it'll be included in that release train.

Thank you! Great work.

sv-calin commented 4 months ago

The issue has an intervention in place and does not reproduce with the intervention pref set to true.

[inv_23/2024]

random-integer commented 4 months ago

The issue has an intervention in place and does not reproduce with the intervention pref set to true.

[inv_23/2024]

Awesome.

ksy36 commented 3 months ago

Reproducible issues are moved to our Bugzilla component; please see: https://bugzilla.mozilla.org/show_bug.cgi?id=1904371

Closing as moved.