Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9246421
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:29:01+00:00 2026-06-18T09:29:01+00:00

The documentation states that Safari 5.1 sends an activate event to a window or

  • 0

The documentation states that “Safari 5.1 sends an “activate” event to a window or tab whenever it is activated”. I use the following code in my global page to capture this event:

function onWindowOrTabSwitched(event) {
     alert("onWindowOrTabSwitched");
}

safari.application.addEventListener("activate", onWindowOrTabSwitched, true);

The alert shows when I switch from one tab to the other, but when switching between Safari windows, most of the time, nothing happens. Is there something I’m doing wrong or doesn’t Safari (6.0.2) not dispatching this event on switching between windows?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T09:29:02+00:00Added an answer on June 18, 2026 at 9:29 am

    Okay, the real problem seemed to be that the message I send during the “activate” event from my global page to the injected script does arrive when I create a new Safari windows, but doesn’t on any other situation. “safari.application.activeBrowserWindow.activeTab.page” seems to be filled during the activate event while creating a new window, but is cleared as soon as the topsites:// page is loaded. I implemented a check in the injected script to see if it’s injected in a http(s) page or to resolve this problem.

    So the activate event does fire everytime it should fire, only sending messages to a Topsite is only possible in the case that a new window is just opened and that was my problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The Erlang documentation states the following about gen_servers: ... Note that for any other
The C2DM documentation states that Google limits the number of messages a sender sends
Documentation states that You must use /EHa when using _set_se_translator.. My question is: should
A quick look at the documentation states that : Z_FIXED prevents the use of
Google App engine documentation states that it is possible to upload and use third
Official PHP documentation states that filter_var_array() supports array filtering in the following format: $data
I am debugging a program that makes use of libnetfilter_queue . The documentation states
I am trying to use PDO's lastInsertId method, but the documentation states that for
The rbenv documentation states that you can use the gemsets plugin to sandbox your
Matlab documentation states that it is possible to replace the Nth occurrence of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.