Skip to content
This repository has been archived by the owner on Aug 30, 2018. It is now read-only.

Commit

Permalink
Fixed #1050.
Browse files Browse the repository at this point in the history
  • Loading branch information
YePpHa committed Oct 24, 2014
1 parent ab186f3 commit fb2ffb7
Show file tree
Hide file tree
Showing 15 changed files with 21 additions and 15 deletions.
4 changes: 2 additions & 2 deletions devbuild.number
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#Build Number for ANT. Do not edit!
#Fri Oct 24 14:00:04 CEST 2014
build.number=411
#Fri Oct 24 14:24:38 CEST 2014
build.number=412
Binary file modified dist/YouTubeCenter-webstore.zip
Binary file not shown.
Binary file modified dist/YouTubeCenter.crx
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/YouTubeCenter.meta.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name YouTube Center Developer Build
// @namespace http://www.facebook.com/YouTubeCenter
// @version 411
// @version 412
// @author Jeppe Rune Mortensen (YePpHa)
// @description YouTube Center contains all kind of different useful functions which makes your visit on YouTube much more entertaining.
// @icon https://raw.github.com/YePpHa/YouTubeCenter/master/assets/logo-48x48.png
Expand Down
Binary file modified dist/YouTubeCenter.mxaddon
Binary file not shown.
Binary file modified dist/YouTubeCenter.oex
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/YouTubeCenter.safariextension/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleShortVersionString</key>
<string>411</string>
<string>412</string>
<key>CFBundleVersion</key>
<string>116</string>
<key>Chrome</key>
Expand Down
6 changes: 3 additions & 3 deletions dist/YouTubeCenter.safariextension/YouTubeCenter.user.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified dist/YouTubeCenter.safariextz
Binary file not shown.
6 changes: 3 additions & 3 deletions dist/YouTubeCenter.user.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified dist/YouTubeCenter.xpi
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/chrome-update.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<gupdate xmlns="http://www.google.com/update2/response" protocol="2.0">
<app appid="ajijnmbjgaeekdpmpohgppkckmnagimk">
<updatecheck codebase="https://raw.github.com/YePpHa/YouTubeCenter/master/dist/YouTubeCenter.crx" version="411" />
<updatecheck codebase="https://raw.github.com/YePpHa/YouTubeCenter/master/dist/YouTubeCenter.crx" version="412" />
</app>
</gupdate>
2 changes: 1 addition & 1 deletion dist/firefox-update.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<rdf:Seq>
<rdf:li>
<rdf:Description>
<em:version>411</em:version>
<em:version>412</em:version>
<em:targetApplication>
<rdf:Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
Expand Down
10 changes: 8 additions & 2 deletions src/.firefox/lib/request.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var {callUnsafeJSObject} = require("utils");
var {callUnsafeJSObject, isWindowClosed} = require("utils");

function sendRequest(wrappedContentWin, chromeWin, sandbox, details) {
let req = new chromeWin.XMLHttpRequest();
Expand Down Expand Up @@ -115,7 +115,13 @@ function addEventListener(wrappedContentWin, req, event, details){
responseState.finalUrl = req.channel.URI.spec;
break;
}
callUnsafeJSObject(wrappedContentWin, details["on" + event], responseState);

if (isWindowClosed(wrappedContentWin)) return; /* The window is closed and therefore it should not be called! */

var eventCallback = details["on" + event];

new XPCNativeWrapper(wrappedContentWin, "setTimeout()")
.setTimeout(function(){ eventCallback.call(details, responseState) }, 0);
}, false);
}

Expand Down
2 changes: 1 addition & 1 deletion src/YouTubeCenter.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -25002,7 +25002,7 @@
addWindowListener(bind(null, callUnsafeWindow, data.id));
break;
case "firefox_windowLinkerFireRegisteredEvent":
windowLinkerFireRegisteredEvent.apply(null, data.arguments);
windowLinkerFireRegisteredEvent(data.arguments[0], data.arguments[1]);
break;
case "GM_registerMenuCommand":
if (support.Greasemonkey) {
Expand Down

0 comments on commit fb2ffb7

Please sign in to comment.