Fix thumbnail sending for Flickr pages, need to allow looking at messages from origin of chrome://browser. Also make sure to tell overlay if the size of the html changed because a status message was shown.

This commit is contained in:
jrburke 2011-01-31 14:58:03 -08:00
Родитель 2709fdc54b
Коммит 5f9f607393
2 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -125,6 +125,9 @@ function (require, $, fn, rdapi, oauth, jig, url,
} else if (shouldCloseOrMessage) {
$('#' + statusId + 'Message').text(shouldCloseOrMessage);
}
//Tell the extension that the size of the content may have changed.
dispatch.pub('sizeToContent');
};
//Make it globally visible for debug purposes

Просмотреть файл

@ -41,8 +41,9 @@ define(['jquery'], function ($) {
targetOrigin = targetOrigin || origin;
var func = function (evt) {
//Make sure message is from this page.
if (evt.origin === targetOrigin) {
//Make sure message is from this page, or from the browser extension
//that wants to communicate information back to the page.
if (evt.origin === targetOrigin || evt.origin === 'chrome://browser') {
//Assume pub/sub has JSON data with properties named
//'topic' and 'data'.
var message = JSON.parse(evt.data),