HEX
Server: Apache
System: Linux webm010.cluster103.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: iestorre (46869)
PHP: 8.0.30
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/iestorre/moodleAW/moodle10/lib/yuilib/3.13.0/history-hash-ie/history-hash-ie-coverage.js
/*
YUI 3.13.0 (build 508226d)
Copyright 2013 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/

if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/history-hash-ie/history-hash-ie.js']) {
   __coverage__['build/history-hash-ie/history-hash-ie.js'] = {"path":"build/history-hash-ie/history-hash-ie.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":27},"end":{"line":1,"column":46}}},"2":{"name":"(anonymous_2)","line":32,"loc":{"start":{"line":32,"column":32},"end":{"line":32,"column":44}}},"3":{"name":"(anonymous_3)","line":55,"loc":{"start":{"line":55,"column":32},"end":{"line":55,"column":57}}},"4":{"name":"(anonymous_4)","line":75,"loc":{"start":{"line":75,"column":25},"end":{"line":75,"column":37}}},"5":{"name":"(anonymous_5)","line":113,"loc":{"start":{"line":113,"column":31},"end":{"line":113,"column":44}}},"6":{"name":"(anonymous_6)","line":122,"loc":{"start":{"line":122,"column":30},"end":{"line":122,"column":42}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":134,"column":58}},"2":{"start":{"line":16,"column":0},"end":{"line":131,"column":1}},"3":{"start":{"line":17,"column":4},"end":{"line":22,"column":30}},"4":{"start":{"line":32,"column":4},"end":{"line":42,"column":6}},"5":{"start":{"line":33,"column":8},"end":{"line":35,"column":9}},"6":{"start":{"line":34,"column":12},"end":{"line":34,"column":22}},"7":{"start":{"line":37,"column":8},"end":{"line":38,"column":66}},"8":{"start":{"line":40,"column":8},"end":{"line":41,"column":52}},"9":{"start":{"line":55,"column":4},"end":{"line":70,"column":6}},"10":{"start":{"line":56,"column":8},"end":{"line":57,"column":61}},"11":{"start":{"line":59,"column":8},"end":{"line":61,"column":9}},"12":{"start":{"line":60,"column":12},"end":{"line":60,"column":19}},"13":{"start":{"line":64,"column":8},"end":{"line":69,"column":9}},"14":{"start":{"line":65,"column":12},"end":{"line":65,"column":79}},"15":{"start":{"line":67,"column":12},"end":{"line":67,"column":37}},"16":{"start":{"line":68,"column":12},"end":{"line":68,"column":39}},"17":{"start":{"line":72,"column":4},"end":{"line":72,"column":88}},"18":{"start":{"line":74,"column":4},"end":{"line":130,"column":5}},"19":{"start":{"line":75,"column":8},"end":{"line":129,"column":11}},"20":{"start":{"line":76,"column":12},"end":{"line":76,"column":52}},"21":{"start":{"line":96,"column":12},"end":{"line":98,"column":15}},"22":{"start":{"line":104,"column":12},"end":{"line":104,"column":61}},"23":{"start":{"line":109,"column":12},"end":{"line":109,"column":58}},"24":{"start":{"line":113,"column":12},"end":{"line":119,"column":20}},"25":{"start":{"line":114,"column":16},"end":{"line":114,"column":40}},"26":{"start":{"line":116,"column":16},"end":{"line":118,"column":17}},"27":{"start":{"line":117,"column":20},"end":{"line":117,"column":59}},"28":{"start":{"line":122,"column":12},"end":{"line":128,"column":27}},"29":{"start":{"line":123,"column":16},"end":{"line":123,"column":61}},"30":{"start":{"line":125,"column":16},"end":{"line":127,"column":17}},"31":{"start":{"line":126,"column":20},"end":{"line":126,"column":52}}},"branchMap":{"1":{"line":16,"type":"if","locations":[{"start":{"line":16,"column":0},"end":{"line":16,"column":0}},{"start":{"line":16,"column":0},"end":{"line":16,"column":0}}]},"2":{"line":16,"type":"binary-expr","locations":[{"start":{"line":16,"column":4},"end":{"line":16,"column":11}},{"start":{"line":16,"column":15},"end":{"line":16,"column":46}}]},"3":{"line":33,"type":"if","locations":[{"start":{"line":33,"column":8},"end":{"line":33,"column":8}},{"start":{"line":33,"column":8},"end":{"line":33,"column":8}}]},"4":{"line":33,"type":"binary-expr","locations":[{"start":{"line":33,"column":12},"end":{"line":33,"column":19}},{"start":{"line":33,"column":23},"end":{"line":33,"column":44}}]},"5":{"line":40,"type":"cond-expr","locations":[{"start":{"line":41,"column":20},"end":{"line":41,"column":44}},{"start":{"line":41,"column":47},"end":{"line":41,"column":51}}]},"6":{"line":40,"type":"binary-expr","locations":[{"start":{"line":40,"column":15},"end":{"line":40,"column":21}},{"start":{"line":40,"column":25},"end":{"line":40,"column":51}}]},"7":{"line":56,"type":"binary-expr","locations":[{"start":{"line":56,"column":29},"end":{"line":56,"column":35}},{"start":{"line":56,"column":39},"end":{"line":56,"column":59}},{"start":{"line":56,"column":63},"end":{"line":56,"column":92}}]},"8":{"line":57,"type":"binary-expr","locations":[{"start":{"line":57,"column":29},"end":{"line":57,"column":38}},{"start":{"line":57,"column":42},"end":{"line":57,"column":60}}]},"9":{"line":59,"type":"if","locations":[{"start":{"line":59,"column":8},"end":{"line":59,"column":8}},{"start":{"line":59,"column":8},"end":{"line":59,"column":8}}]},"10":{"line":59,"type":"binary-expr","locations":[{"start":{"line":59,"column":12},"end":{"line":59,"column":22}},{"start":{"line":59,"column":26},"end":{"line":59,"column":41}}]},"11":{"line":64,"type":"if","locations":[{"start":{"line":64,"column":8},"end":{"line":64,"column":8}},{"start":{"line":64,"column":8},"end":{"line":64,"column":8}}]},"12":{"line":65,"type":"cond-expr","locations":[{"start":{"line":65,"column":60},"end":{"line":65,"column":64}},{"start":{"line":65,"column":67},"end":{"line":65,"column":77}}]},"13":{"line":74,"type":"if","locations":[{"start":{"line":74,"column":4},"end":{"line":74,"column":4}},{"start":{"line":74,"column":4},"end":{"line":74,"column":4}}]},"14":{"line":109,"type":"binary-expr","locations":[{"start":{"line":109,"column":38},"end":{"line":109,"column":49}},{"start":{"line":109,"column":53},"end":{"line":109,"column":56}}]},"15":{"line":116,"type":"if","locations":[{"start":{"line":116,"column":16},"end":{"line":116,"column":16}},{"start":{"line":116,"column":16},"end":{"line":116,"column":16}}]},"16":{"line":125,"type":"if","locations":[{"start":{"line":125,"column":16},"end":{"line":125,"column":16}},{"start":{"line":125,"column":16},"end":{"line":125,"column":16}}]}},"code":["(function () { YUI.add('history-hash-ie', function (Y, NAME) {","","/**"," * Improves IE6/7 support in history-hash by using a hidden iframe to create"," * entries in IE's browser history. This module is only needed if IE6/7 support"," * is necessary; it's not needed for any other browser."," *"," * @module history"," * @submodule history-hash-ie"," * @since 3.2.0"," */","","// Combination of a UA sniff to ensure this is IE (or a browser that wants us to","// treat it like IE) and feature detection for native hashchange support (false","// for IE < 8 or IE8/9 in IE7 mode).","if (Y.UA.ie && !Y.HistoryBase.nativeHashChange) {","    var Do          = Y.Do,","        GlobalEnv   = YUI.namespace('Env.HistoryHash'),","        HistoryHash = Y.HistoryHash,","","        iframe = GlobalEnv._iframe,","        win    = Y.config.win;","","    /**","     * Gets the raw (not decoded) current location hash from the IE iframe,","     * minus the preceding '#' character and the hashPrefix (if one is set).","     *","     * @method getIframeHash","     * @return {String} current iframe hash","     * @static","     */","    HistoryHash.getIframeHash = function () {","        if (!iframe || !iframe.contentWindow) {","            return '';","        }","","        var prefix = HistoryHash.hashPrefix,","            hash   = iframe.contentWindow.location.hash.substr(1);","","        return prefix && hash.indexOf(prefix) === 0 ?","                    hash.replace(prefix, '') : hash;","    };","","    /**","     * Updates the history iframe with the specified hash.","     *","     * @method _updateIframe","     * @param {String} hash location hash","     * @param {Boolean} replace (optional) if <code>true</code>, the current","     *   history state will be replaced without adding a new history entry","     * @protected","     * @static","     * @for HistoryHash","     */","    HistoryHash._updateIframe = function (hash, replace) {","        var iframeDoc      = iframe && iframe.contentWindow && iframe.contentWindow.document,","            iframeLocation = iframeDoc && iframeDoc.location;","","        if (!iframeDoc || !iframeLocation) {","            return;","        }","","","        if (replace) {","            iframeLocation.replace(hash.charAt(0) === '#' ? hash : '#' + hash);","        } else {","            iframeDoc.open().close();","            iframeLocation.hash = hash;","        }","    };","","    Do.before(HistoryHash._updateIframe, HistoryHash, 'replaceHash', HistoryHash, true);","","    if (!iframe) {","        Y.on('domready', function () {","            var lastUrlHash = HistoryHash.getHash();","","            // Create a hidden iframe to store history state, following the","            // iframe-hiding recommendations from","            // http://www.paciellogroup.com/blog/?p=604.","            //","            // This iframe will allow history navigation within the current page","            // context. After navigating to another page, all but the most","            // recent history state will be lost.","            //","            // Earlier versions of the YUI History Utility attempted to work","            // around this limitation by having the iframe load a static","            // resource. This workaround was extremely fragile and tended to","            // break frequently (and silently) since it was entirely dependent","            // on IE's inconsistent handling of iframe history.","            //","            // Since this workaround didn't work much of the time anyway and","            // added significant complexity, it has been removed, and IE6 and 7","            // now get slightly degraded history support.","","            iframe = GlobalEnv._iframe = Y.Node.getDOMNode(Y.Node.create(","                '<iframe src=\"javascript:0\" style=\"display:none\" height=\"0\" width=\"0\" tabindex=\"-1\" title=\"empty\"/>'","            ));","","            // Append the iframe to the documentElement rather than the body.","            // Keeping it outside the body prevents scrolling on the initial","            // page load (hat tip to Ben Alman and jQuery BBQ for this","            // technique).","            Y.config.doc.documentElement.appendChild(iframe);","","            // Update the iframe with the initial location hash, if any. This","            // will create an initial history entry that the user can return to","            // after the state has changed.","            HistoryHash._updateIframe(lastUrlHash || '#');","","            // Listen for hashchange events and keep the iframe's hash in sync","            // with the parent frame's hash.","            Y.on('hashchange', function (e) {","                lastUrlHash = e.newHash;","","                if (HistoryHash.getIframeHash() !== lastUrlHash) {","                    HistoryHash._updateIframe(lastUrlHash);","                }","            }, win);","","            // Watch the iframe hash in order to detect back/forward navigation.","            Y.later(50, null, function () {","                var iframeHash = HistoryHash.getIframeHash();","","                if (iframeHash !== lastUrlHash) {","                    HistoryHash.setHash(iframeHash);","                }","            }, null, true);","        });","    }","}","","","}, '3.13.0', {\"requires\": [\"history-hash\", \"node-base\"]});","","}());"]};
}
var __cov_GmfQqXfg6xcOk0tDq6jbtg = __coverage__['build/history-hash-ie/history-hash-ie.js'];
__cov_GmfQqXfg6xcOk0tDq6jbtg.s['1']++;YUI.add('history-hash-ie',function(Y,NAME){__cov_GmfQqXfg6xcOk0tDq6jbtg.f['1']++;__cov_GmfQqXfg6xcOk0tDq6jbtg.s['2']++;if((__cov_GmfQqXfg6xcOk0tDq6jbtg.b['2'][0]++,Y.UA.ie)&&(__cov_GmfQqXfg6xcOk0tDq6jbtg.b['2'][1]++,!Y.HistoryBase.nativeHashChange)){__cov_GmfQqXfg6xcOk0tDq6jbtg.b['1'][0]++;__cov_GmfQqXfg6xcOk0tDq6jbtg.s['3']++;var Do=Y.Do,GlobalEnv=YUI.namespace('Env.HistoryHash'),HistoryHash=Y.HistoryHash,iframe=GlobalEnv._iframe,win=Y.config.win;__cov_GmfQqXfg6xcOk0tDq6jbtg.s['4']++;HistoryHash.getIframeHash=function(){__cov_GmfQqXfg6xcOk0tDq6jbtg.f['2']++;__cov_GmfQqXfg6xcOk0tDq6jbtg.s['5']++;if((__cov_GmfQqXfg6xcOk0tDq6jbtg.b['4'][0]++,!iframe)||(__cov_GmfQqXfg6xcOk0tDq6jbtg.b['4'][1]++,!iframe.contentWindow)){__cov_GmfQqXfg6xcOk0tDq6jbtg.b['3'][0]++;__cov_GmfQqXfg6xcOk0tDq6jbtg.s['6']++;return'';}else{__cov_GmfQqXfg6xcOk0tDq6jbtg.b['3'][1]++;}__cov_GmfQqXfg6xcOk0tDq6jbtg.s['7']++;var prefix=HistoryHash.hashPrefix,hash=iframe.contentWindow.location.hash.substr(1);__cov_GmfQqXfg6xcOk0tDq6jbtg.s['8']++;return(__cov_GmfQqXfg6xcOk0tDq6jbtg.b['6'][0]++,prefix)&&(__cov_GmfQqXfg6xcOk0tDq6jbtg.b['6'][1]++,hash.indexOf(prefix)===0)?(__cov_GmfQqXfg6xcOk0tDq6jbtg.b['5'][0]++,hash.replace(prefix,'')):(__cov_GmfQqXfg6xcOk0tDq6jbtg.b['5'][1]++,hash);};__cov_GmfQqXfg6xcOk0tDq6jbtg.s['9']++;HistoryHash._updateIframe=function(hash,replace){__cov_GmfQqXfg6xcOk0tDq6jbtg.f['3']++;__cov_GmfQqXfg6xcOk0tDq6jbtg.s['10']++;var iframeDoc=(__cov_GmfQqXfg6xcOk0tDq6jbtg.b['7'][0]++,iframe)&&(__cov_GmfQqXfg6xcOk0tDq6jbtg.b['7'][1]++,iframe.contentWindow)&&(__cov_GmfQqXfg6xcOk0tDq6jbtg.b['7'][2]++,iframe.contentWindow.document),iframeLocation=(__cov_GmfQqXfg6xcOk0tDq6jbtg.b['8'][0]++,iframeDoc)&&(__cov_GmfQqXfg6xcOk0tDq6jbtg.b['8'][1]++,iframeDoc.location);__cov_GmfQqXfg6xcOk0tDq6jbtg.s['11']++;if((__cov_GmfQqXfg6xcOk0tDq6jbtg.b['10'][0]++,!iframeDoc)||(__cov_GmfQqXfg6xcOk0tDq6jbtg.b['10'][1]++,!iframeLocation)){__cov_GmfQqXfg6xcOk0tDq6jbtg.b['9'][0]++;__cov_GmfQqXfg6xcOk0tDq6jbtg.s['12']++;return;}else{__cov_GmfQqXfg6xcOk0tDq6jbtg.b['9'][1]++;}__cov_GmfQqXfg6xcOk0tDq6jbtg.s['13']++;if(replace){__cov_GmfQqXfg6xcOk0tDq6jbtg.b['11'][0]++;__cov_GmfQqXfg6xcOk0tDq6jbtg.s['14']++;iframeLocation.replace(hash.charAt(0)==='#'?(__cov_GmfQqXfg6xcOk0tDq6jbtg.b['12'][0]++,hash):(__cov_GmfQqXfg6xcOk0tDq6jbtg.b['12'][1]++,'#'+hash));}else{__cov_GmfQqXfg6xcOk0tDq6jbtg.b['11'][1]++;__cov_GmfQqXfg6xcOk0tDq6jbtg.s['15']++;iframeDoc.open().close();__cov_GmfQqXfg6xcOk0tDq6jbtg.s['16']++;iframeLocation.hash=hash;}};__cov_GmfQqXfg6xcOk0tDq6jbtg.s['17']++;Do.before(HistoryHash._updateIframe,HistoryHash,'replaceHash',HistoryHash,true);__cov_GmfQqXfg6xcOk0tDq6jbtg.s['18']++;if(!iframe){__cov_GmfQqXfg6xcOk0tDq6jbtg.b['13'][0]++;__cov_GmfQqXfg6xcOk0tDq6jbtg.s['19']++;Y.on('domready',function(){__cov_GmfQqXfg6xcOk0tDq6jbtg.f['4']++;__cov_GmfQqXfg6xcOk0tDq6jbtg.s['20']++;var lastUrlHash=HistoryHash.getHash();__cov_GmfQqXfg6xcOk0tDq6jbtg.s['21']++;iframe=GlobalEnv._iframe=Y.Node.getDOMNode(Y.Node.create('<iframe src="javascript:0" style="display:none" height="0" width="0" tabindex="-1" title="empty"/>'));__cov_GmfQqXfg6xcOk0tDq6jbtg.s['22']++;Y.config.doc.documentElement.appendChild(iframe);__cov_GmfQqXfg6xcOk0tDq6jbtg.s['23']++;HistoryHash._updateIframe((__cov_GmfQqXfg6xcOk0tDq6jbtg.b['14'][0]++,lastUrlHash)||(__cov_GmfQqXfg6xcOk0tDq6jbtg.b['14'][1]++,'#'));__cov_GmfQqXfg6xcOk0tDq6jbtg.s['24']++;Y.on('hashchange',function(e){__cov_GmfQqXfg6xcOk0tDq6jbtg.f['5']++;__cov_GmfQqXfg6xcOk0tDq6jbtg.s['25']++;lastUrlHash=e.newHash;__cov_GmfQqXfg6xcOk0tDq6jbtg.s['26']++;if(HistoryHash.getIframeHash()!==lastUrlHash){__cov_GmfQqXfg6xcOk0tDq6jbtg.b['15'][0]++;__cov_GmfQqXfg6xcOk0tDq6jbtg.s['27']++;HistoryHash._updateIframe(lastUrlHash);}else{__cov_GmfQqXfg6xcOk0tDq6jbtg.b['15'][1]++;}},win);__cov_GmfQqXfg6xcOk0tDq6jbtg.s['28']++;Y.later(50,null,function(){__cov_GmfQqXfg6xcOk0tDq6jbtg.f['6']++;__cov_GmfQqXfg6xcOk0tDq6jbtg.s['29']++;var iframeHash=HistoryHash.getIframeHash();__cov_GmfQqXfg6xcOk0tDq6jbtg.s['30']++;if(iframeHash!==lastUrlHash){__cov_GmfQqXfg6xcOk0tDq6jbtg.b['16'][0]++;__cov_GmfQqXfg6xcOk0tDq6jbtg.s['31']++;HistoryHash.setHash(iframeHash);}else{__cov_GmfQqXfg6xcOk0tDq6jbtg.b['16'][1]++;}},null,true);});}else{__cov_GmfQqXfg6xcOk0tDq6jbtg.b['13'][1]++;}}else{__cov_GmfQqXfg6xcOk0tDq6jbtg.b['1'][1]++;}},'3.13.0',{'requires':['history-hash','node-base']});