Closed Bug 874907 Opened 11 years ago Closed 10 years ago

Zoom in/out not working on Flash content

Categories

(Web Compatibility :: Site Reports, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: adalucinet, Unassigned)

References

()

Details

(Whiteboard: [country-ca] [js] [clientsniff])

Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20100101 Firefox/21.0
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20100101 Firefox/22.0
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20130522 Firefox/23.0
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:24.0) Gecko/20130522 Firefox/24.0

1. Navigate to http://waterlife.nfb.ca/#/.
2. Zoom in/out with your scroll wheel.

Actual results:
The page is not zoomed in/out.

Expected results:
The page is zoomed in/out.

Notes:
1. Reproducible with FF 22 beta 2 (Build ID: 20130521223249), latest Aurora (Build ID: 20130522004016), latest Nightly (Build ID: 20130522031027) and FF 21.0 (Build ID: 20130511120803).
2. In Chrome and Opera, zoom in/out works correctly.
3. Plugin: Shockwave Flash version 11.7.700.202.
FWIW, the entire page seems to be one big Flash widget. I can also reproduce this on Linux with Flash 11.2 so it's not a Flash issue. I can also zoom in/out on other Flash pages so I think this might be a case particular to this website.

I don't see any errors in Error Console to indicate a failure here so I'm not sure how to proceed. Perhaps outreach to the website developer?

Moving this to Tech Evangelism for the time being. Please move back to Layout if this issue is broader than I've characterized it above.
Assignee: nobody → english-us
Component: Layout: View Rendering → English US
OS: Windows 7 → All
Product: Core → Tech Evangelism
Hardware: x86_64 → All
I confirm that this issue is not a regression, it reproduces back to Firefox 4.0.
Hallvord?

http -v GET http://waterlife.nfb.ca/ 'User-Agent:  Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:32.0) Gecko/20100101 Firefox/32.0'

In the body of the page we get both for WebKit and Firefox

<script type="text/javascript">
    var flashvars = { server: "http://waterlife2.nfb.ca/" };
    var params = {
        menu: "false",
        allowfullscreen: "true",
        allowScriptAccess: "always",
        scale: "noscale"
    };
    var attributes = {
      id: "flash",
      name: "flash"
    };

    swfobject.embedSWF("http://waterlife2.nfb.ca/Preloader.swf", "flashcontent", "100%", "100%", "9.0.0","expressInstall.swf", flashvars, params, attributes);

    swffit.fit("flash", 1036, 624);

<!-- Code to set the right tracking code base for the project -->
var NTPT_PGEXTRA = '&ntpg_app=interactive&ntpgi_project=waterlife&ev=interactive&ntpgi_interactive_page=waterlife&ntpg_lg=en';
</script>



They use a JS for fitting the flash in the window size. The script starts with

/**
*	swffit v2.1 (01/18/2009) <http://swffit.millermedeiros.com/>
*	Copyright (c) 2008 Miller Medeiros <http://www.millermedeiros.com/>
*	This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
*/

var swffit = function () {
  var NS = (navigator.appName == 'Netscape') ? true : false,
  WK = (navigator.userAgent.indexOf('WebKit') > 0) ? true : false,
so we are identified with NS = true, WK = false.
The variable "_re" starts undefined and is related to the resize flag.
  function startFit() {
    setSize();
    if (!_re) {
      addResizeEvent(setSize);
      _re = 1
    }
  }


The script has a addResizeEvent and removeResizeEvent

  function addResizeEvent(fn) {
    if (win.addEventListener) {
      win.addEventListener('resize', fn, false)
    } else {
      if (win.attachEvent) {
        win.attachEvent('onresize', fn)
      }
    }
  }

The code executes "win.addEventListener('resize', fn, false)"
Assignee: english-us → nobody
Component: English US → Desktop
Flags: needinfo?(hsteen)
Whiteboard: [country-ca] [js] [clientsniff]
What I see (don't have a wheel mouse) is that I can zoom in on http://waterlife.nfb.ca/#/ by pressing [ctrl]+[+]

I have to press it several times and see nothing happen though, from 4th or 6th press or so onwards the Flash is enlarged.

I can not zoom out with [ctrl]+[-] - well, it goes back to original size but never smaller.

On resizing the Flash shrinks with the window until a certain minimum width.

Everything works exactly like it does in Opera (Blink-based). So I don't think I see anything broken - except maybe the slight oddity that you have to press several times before it starts zooming in and can't zoom out beyond normal size.
Flags: needinfo?(hsteen)
OK let's resolve as WORKSFORME.
Please reopen with more details on the issue if there is still any.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
Product: Tech Evangelism → Web Compatibility
You need to log in before you can comment on or make changes to this bug.