Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

window.top.location.href access permission

New Here ,
Jun 17, 2021 Jun 17, 2021

Hi guys,

 

Recently with the latest update I can't access `window.top.location.href` from within my iframe. This was working in a previous illustrator version. I understand that adobe is hosted locally and if I have a web iframe it won't be able to access it in a normal browser. However, we need this because some SSO providers don't like to be run within iframe setting and they will attempt to modify top level window. 

Is there any option to restore access to `window.top.location.href` as it was available in previous versions?

 

I have the following parameters for CEFCommandLine.

 

<CEFCommandLine>
    <Parameter>--enable-nodejs</Parameter>
    <Parameter>--mixed-context</Parameter>
    <Parameter>--persist-session-cookies</Parameter>
</CEFCommandLine>

 

 

TOPICS
Scripting , SDK
1.9K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
New Here ,
Jun 17, 2021 Jun 17, 2021

Just to add more context. This is not broken in Photoshop or InDesign. 

It looks like I can't include any webpage in an iframe that has restricted frame-ancestors as well. Again this is only broken within Adobe illustrator.

Can someone help investigating this issue? 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jun 17, 2021 Jun 17, 2021

Shouldn't you be able to construct this if it does not exist? i.e.

 

window['top']['location']['href'] = document.location;

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 17, 2021 Jun 17, 2021

The reason why I can't access it because adobe is hosted on local machine and iframe domain is different. So this is a standard browser security. However, even if I am able to solve window.top.location.href issue, I won't be able to solve frame-ancestors problem which is more critical when using iframes within adobe. 

 

What I am not sure about this was working using the previous version but now it is broken. This is working today with Photoshop and InDesign. So I am hoping maybe Adobe team can have a look and verify if it is something that was missed and we can fix soon. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jun 23, 2021 Jun 23, 2021
LATEST

Please refer to the changes due to CEP 11 and workarounds - https://github.com/Adobe-CEP/CEP-Resources/blob/master/CEP_11.x/Documentation/Issues.md

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 17, 2021 Jun 17, 2021

The issue started with 25.3 version. I just tested 25.2.3 and it was working fine. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines