搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

When will App Tabs glow?

  • 1 回覆
  • 18 有這個問題
  • 4 次檢視
  • 最近回覆由 mrmr1993

more options

I checked the "What are App Tabs?" and read the following descriptions:

App Tabs notify you with a blue highlight when they change.

  • If you have Gmail set as an App Tab, for example, and you are using a different tab when a new email is received, your Gmail tab will glow.

I'm wondering the exact meaning of "change" because after I pinned Weibo.com(biggest twitter-like website in China) as an App Tab, new messages won't make the tab look different. So I want to know if there is an API to do the job or it's just the customized feature for only limited websites by Firefox itself. Thanks!

I checked the "What are App Tabs?" and read the following descriptions: App Tabs notify you with a blue highlight when they '''change'''. * If you have Gmail set as an App Tab, for example, and you are using a different tab when a new email is received, your Gmail tab will glow. I'm wondering the exact meaning of "change" because after I pinned Weibo.com(biggest twitter-like website in China) as an App Tab, new messages won't make the tab look different. So I want to know if there is an API to do the job or it's just the customized feature for only limited websites by Firefox itself. Thanks!

由 justineo 於 修改

被選擇的解決方法

Quite simply, the blue highlight is caused by a change in title. It was a fix implemented in response to the bug "App Tabs should indicate change of state in <title>".

For proof of the above, enter the JavaScript code from here in the address bar and press enter. The App Tab will then turn blue every time it loses focus, until it is next refreshed.

Brief explaination: The code adds an event listener to change the title to a random number every time the tab is changed (ie. a blur event is fired). The containing void sets the return value to undefined, so the document content is not changed (which it would be otherwise). JavaScript is a client-side (user-end) scripting language that can modify HTML (website) content throughout the duration of a single page (ie. until a new page is loaded/the same page is reloaded), and is built into all popular browsers, along with the ability to access it through the "javascript:" address protocol.

For the case of weibo.com, you would be well advised to have a look at the greasemonkey add-on for firefox, and either create your own script or persuade a friendly JavaScript coder to make one for you, that changes the title whenever a new message is received.

從原來的回覆中察看解決方案 👍 5

所有回覆 (1)

more options

選擇的解決方法

Quite simply, the blue highlight is caused by a change in title. It was a fix implemented in response to the bug "App Tabs should indicate change of state in <title>".

For proof of the above, enter the JavaScript code from here in the address bar and press enter. The App Tab will then turn blue every time it loses focus, until it is next refreshed.

Brief explaination: The code adds an event listener to change the title to a random number every time the tab is changed (ie. a blur event is fired). The containing void sets the return value to undefined, so the document content is not changed (which it would be otherwise). JavaScript is a client-side (user-end) scripting language that can modify HTML (website) content throughout the duration of a single page (ie. until a new page is loaded/the same page is reloaded), and is built into all popular browsers, along with the ability to access it through the "javascript:" address protocol.

For the case of weibo.com, you would be well advised to have a look at the greasemonkey add-on for firefox, and either create your own script or persuade a friendly JavaScript coder to make one for you, that changes the title whenever a new message is received.