Commit e94c69f6 authored by vandebo@chromium.org's avatar vandebo@chromium.org

Fix "2nd print fails on Mac sometimes" bug.

Mac does not accept printer ids with special characters (space, dot, etc), so when we saved the printer used by name instead of id, subsequent prints would fail.

BUG=91895
TEST=Print twice to a printer with a special character, like space in the name.


Review URL: http://codereview.chromium.org/7812001

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98925 0039d316-1c4b-4281-b951-d872f2087c98
parent d93a17c2
......@@ -461,8 +461,7 @@ function cancelPendingPrintRequest() {
function sendPrintDocumentRequest() {
var printerList = $('printer-list');
var printer = printerList[printerList.selectedIndex];
chrome.send('saveLastPrinter', [printer.textContent,
cloudprint.getData(printer)]);
chrome.send('saveLastPrinter', [printer.value, cloudprint.getData(printer)]);
chrome.send('print', [JSON.stringify(getSettings()),
cloudprint.getPrintTicketJSON(printer)]);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment