[dokuwiki] New PR: Cleanup styling cookie properly to exit preview

  • From: "phy25" <wiki@xxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Tue, 18 Jun 2019 01:02:10 +0200 (CEST)

Hi,

phy25 opened a new pull request at 
https://github.com/splitbrain/dokuwiki/pull/2801:

This is inspired by https://forum.dokuwiki.org/thread/14395 and should fix the ;
problem described there (I did a local test which seems to work).

Previously styling cookie depends on `window.opener`. Since the popup should be 
on the same domain as the opener, and the popup's cookie domain is the same as 
the opener (`DokuCookie` is used), there is no need to rely on the opener to 
set the preview cookie. This change will ensure the preview cookie is cleared 
before the popup is closed, regardless of whether opener exists or not.

Also checks on whether opener exists are added as well.

Please help us to review this pull request, so new contributors get feedback in 
a timely manner.

eef02760-9153-11e9-8f3c-5a1ad822da94


-- 
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts:

  • » [dokuwiki] New PR: Cleanup styling cookie properly to exit preview - phy25