為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

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

了解更多

Firefox refreshes on OBJECT tag (once, then display properly)

  • 6 回覆
  • 9 有這個問題
  • 2 次檢視
  • 最近回覆由 Namjies

more options

Issue

I have a problem with an extension, plugin or with Thunderbird

Description

I didn't notice it before. I was doing some database script to count pageviews and noticed a strange behavior (increment of 2 instead of 1 on pages refresh) I first thought it was my code, but then realized only Firefox showed this behavior, and only when a flash object is on the page. If there's no embedded object, Firefox doesn't cause this double incrementation.

Which tells me Firefox must choke or something on the object and refresh the page to fix it. But only refreshes once, because the page is shown and the object too. I'm not sure of the issue, but I'd like to prevent that from happening. Double count of pageviews seems pretty bad to me.

Firefox version

3.6.3

Operating system

Windows XP

== Issue == I have a problem with an extension, plugin or with Thunderbird == Description == I didn't notice it before. I was doing some database script to count pageviews and noticed a strange behavior (increment of 2 instead of 1 on pages refresh) I first thought it was my code, but then realized only Firefox showed this behavior, and only when a flash object is on the page. If there's no embedded object, Firefox doesn't cause this double incrementation. Which tells me Firefox must choke or something on the object and refresh the page to fix it. But only refreshes once, because the page is shown and the object too. I'm not sure of the issue, but I'd like to prevent that from happening. Double count of pageviews seems pretty bad to me. == Firefox version == 3.6.3 == Operating system == Windows XP

所有回覆 (6)

more options

This sounds like a web-developer question rather than a user question. Maybe the resources at https://developer.mozilla.org/en/Web_Development will help.

more options

It might. But I don't know the source of the issue (plugin, code, settings).

Firefox refreshes whatever the flash file is, so I don't think that's the issue. I'd guess a plugin or the code might be the issue.

If it's plugin based and code is correct, then the issue might be impossible to solve on my part.

If it's code based, I don't see why a refresh would then display the object correctly (and not loop indefinitely). But anyone who knows how Firefox works might pinpoint if it's a normal behaviour for Firefox and know what can cause it.

Because as far as I know, my flash file displays correctly on Firefox and IE, but the server side incrementation is done twice when it's Firefox AND there's an flash file embedded on the page. Which tells me there must be a fast refresh triggered during load. And that's this behaviour that I want to fix, which can either be code or my browser's settings & plugins.

I'll try development forum too in case someone knows something about it.

more options

Are there two OBJECT tags or an OBJECT with a classid for IE and an EMBED for Firefox on those pages?

If that is the case then does it help if there is only one OBJECT without a classid but with a type="application/x-shockwave-flash" ?

more options

The code uses one OBJECT with

data="http://arcade.namworld.com/games/gamename.swf" type="application/x-shockwave-flash"

and a PARAM inside the OBJECT for IE with name="movie" value="http://arcade.namworld.com/games/gamename.swf"


FF - As soon as I remove the GAMENAME in the DATA to an invalid flash file or remove DATA completly, it stop double incrementing pageviews. But of course it stops displaying anything.

I got some plugins like Firebug, Web Developper, NoScript which can mess with on-page codes. In case these are known to cause refreshes or something.

more options

I just realized... Google Chrome does this too. And I know Chrome used some components from Mozilla.

Not IE.

So I guess it invalidate the plugins theory and makes it an event applicable to something shared by Chrome and Firefox. Either the OBJECT code is wrong for them or they decide to refresh the page for some reason.

more options

Hmm, although the code is always the same, it seems not all flash games files makes this happen. Some do, some don't. And IE does not do it but FF and chrome do.

So I suppose it's supposed to behave this way although I do not know what triggers this.

Wouldn't it be better to simply attempt to redownload the flash file instead of the whole page, whatever triggers this? I don't create the games and some are popular and displayed on major games portals, so I'll be keeping them.

I guess I'll just have to hope this behavior gets changed eventually.