YSlow 3.1.8 errors / incompatibilities with Firebug 2.0.3 - yslow-firebug,js

15 views
Skip to first unread message

Leslie Murphy

unread,
Aug 24, 2014, 11:22:33 PM8/24/14
to fir...@googlegroups.com
YSlow seems to throw errors (I see them in jsconsole) when trying to reference TabWatcher in yslow-firebug,js .  Is there an easy fix / workaround?  I can post the fix to the open source group for YSlow ...

TabWatcher is evidently no longer a global.

 yslowUnload: function (event) {
                var fbcontext,
                    fbCtx = typeof FirebugContext !== 'undefined' ?
                        FirebugContext : Firebug.currentContext,
                    win = event.currentTarget,
                    now = Number(new Date());

                // fire onUnload event.
                // unload event from another browser tab.
                // don't peel or update status bar, just save the page load time and return.
                if (win !== fbCtx.window) {
                    fbcontext = TabWatcher.getContextByWindow(win);
                } else {
                    fbcontext = fbCtx;
                }

There is another issue as well, Firebug.InfoTip.populateImageInfoTip is not defined:

 showInfoTip: function (infoTip, target, x, y) {
                if (false && target.nodeName === "A" && target.rel && (target.rel === 'image' || target.rel === 'cssimage')) {
                    return Firebug.InfoTip.populateImageInfoTip(infoTip, target.href);
                }
                return false;
            },
Reply all
Reply to author
Forward
0 new messages