This commit is contained in:
Nicolas Stepien 2012-02-20 21:36:43 +01:00
parent d4bb307404
commit 97902bbfcc
3 changed files with 8 additions and 4 deletions

View File

@ -1223,7 +1223,7 @@
$.before(form, link); $.before(form, link);
} }
g.callbacks.push(this.node); g.callbacks.push(this.node);
if (engine === 'webkit') { if (/chrome/i.test(navigator.userAgent)) {
qr.status({ qr.status({
ready: true ready: true
}); });
@ -1832,7 +1832,7 @@
reader.readAsBinaryString(reply.file); reader.readAsBinaryString(reply.file);
return; return;
} }
if (engine === 'webkit') { if (/chrome/i.test(navigator.userAgent)) {
qr.message.post(post); qr.message.post(post);
return; return;
} }

View File

@ -1,4 +1,6 @@
master master
- Mayhem
Fix posting on Safari.
2.26.4 2.26.4
- Mayhem - Mayhem

View File

@ -900,7 +900,8 @@ qr =
$.before form, link $.before form, link
g.callbacks.push @node g.callbacks.push @node
if engine is 'webkit' # CORS is ignored for content script on Chrome, but not Safari/Oprah/Firefox.
if /chrome/i.test navigator.userAgent
qr.status ready: true qr.status ready: true
else else
iframe = $.el 'iframe', iframe = $.el 'iframe',
@ -1405,7 +1406,8 @@ qr =
reader.readAsBinaryString reply.file reader.readAsBinaryString reply.file
return return
if engine is 'webkit' # CORS is ignored for content script on Chrome, but not Safari/Oprah/Firefox.
if /chrome/i.test navigator.userAgent
qr.message.post post qr.message.post post
return return
qr.message.send post qr.message.send post