Lucas_Werkmeister_WMDE added a comment.

  In T269224#6719226 <https://phabricator.wikimedia.org/T269224#6719226>, 
@Ladsgroup wrote:
  
  > In T269224#6719125 <https://phabricator.wikimedia.org/T269224#6719125>, 
@Michael wrote:
  >
  >> Ok, then let's try `document.URL` 👍
  >>
  >> If you have a link to share that goes into more detail as to what is 
available to JS in an iframe, then I would be happy to learn more about it :)
  >
  > I don't have phd in iframeology but I have a feeling that js for iframe is 
being run in the context of the main frame meaning document.URL is needed 
instead of document.referrer.
  
  The example at 
https://developer.mozilla.org/en-US/docs/Web/API/Document/URL#result seems to 
show that `document.URL` returns the URL of the inner document, not the 
top-level window.

TASK DETAIL
  https://phabricator.wikimedia.org/T269224

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Ladsgroup, Lucas_Werkmeister_WMDE
Cc: Lucas_Werkmeister_WMDE, Aklapper, Michael, Hazizibinmahdi, Akuckartz, 
Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, 
rosalieper, Scott_WUaS, Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to