• Eugene But's avatar
    Support window.print() in iframes. · 38715a15
    Eugene But authored
    window.print() will work in iframes only if the user is interacting with
    the page. This will prevent abusive experience from malicious iframes.
    
    This CL does not have tests, because there is no infrastructure for
    testing PrintTabHelper, AddScriptCommandCallback and iframes.
    
    Bug: 881876
    Cq-Include-Trybots: luci.chromium.try:ios-simulator-cronet;luci.chromium.try:ios-simulator-full-configs
    Change-Id: Ia741e74accf69b6cee63351e04851e3068e8c3e5
    Reviewed-on: https://chromium-review.googlesource.com/1213270Reviewed-by: default avatarMike Dougherty <michaeldo@chromium.org>
    Commit-Queue: Eugene But <eugenebut@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#589632}
    38715a15
print_tab_helper.mm 2.21 KB