+ Start a Discussion
Mark BarclayMark Barclay 

Apex:iFrame in visualforce page stopped working since Summer 15 release

Hi,

Has there been any changes in Summer 15 to stop iFrames showing a PDF document or indeed any URL??

We have a visualforce page that displays a Quote PDF document in an iFrame - this was working well until the Summer 15 upgrade. Now it no longer shows anything in the iFrame.

Visual Force Page Code below.

<apex:page controller="SomeController" tabStyle="Quote"  action="{!initSomeViewer}">

 <apex:sectionHeader title="Quote Viewer" subtitle="Quote Viewer"/>

    <apex:form >
     <apex:pageBlock title="Confirmation">
      <apex:iframe src="salesforce link to PDF" scrolling="true" id="quoteIframe"/>
          <apex:pageBlockButtons >
              <apex:commandButton action="{!saveEmailQuote}" value="Save and Email"/>
              <apex:commandButton action="{!cancel}" value="Cancel"/>
          </apex:pageBlockButtons>
          <apex:pageBlock id="msgs" rendered="true">
             <apex:pageMessages />
          </apex:pageBlock>
      </apex:pageBlock>  
    </apex:form>

</apex:page>
Best Answer chosen by Mark Barclay
Amit Chaudhary 8Amit Chaudhary 8
Yes. Iframe is not working properly. Please check below post:-
https://help.salesforce.com/apex/HTViewSolution?urlname=IFRAME-or-Web-Tab-Content-Displays-Blank-Page-1327107637323

Please let us know if this will help  you

All Answers

Amit Chaudhary 8Amit Chaudhary 8
Yes. Iframe is not working properly. Please check below post:-
https://help.salesforce.com/apex/HTViewSolution?urlname=IFRAME-or-Web-Tab-Content-Displays-Blank-Page-1327107637323

Please let us know if this will help  you
This was selected as the best answer
Mark BarclayMark Barclay
Hi Amit.

Appears that it is the Clickjack issue that has stopped the iFrame working. There is an admin setting that can potentially resolve our companys issue.
For info - it is located in Admin Settings>Session Settings

. Clipjack Settings

You need to make a request to Salesforce to have the option disabled  Enable clickjack protection for non-setup Salesforce pages

Thanks for your help

Mark Barclay