[ews-app] Clicking 'submit to new ews' doesn't reload status-bubble
authoraakash_jain@apple.com <aakash_jain@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 17 Apr 2019 16:20:01 +0000 (16:20 +0000)
committeraakash_jain@apple.com <aakash_jain@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 17 Apr 2019 16:20:01 +0000 (16:20 +0000)
https://bugs.webkit.org/show_bug.cgi?id=196675

Reviewed by Lucas Forschler.

* BuildSlaveSupport/ews-app/ews/views/submittoews.py:
(SubmitToEWS): Added @xframe_options_exempt similar to statusbubble.py

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244379 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/BuildSlaveSupport/ews-app/ews/views/submittoews.py
Tools/ChangeLog

index 5731627..6ad8d5b 100644 (file)
@@ -28,6 +28,7 @@ import logging
 from django.http import HttpResponse
 from django.shortcuts import redirect, render
 from django.views import View
+from django.views.decorators.clickjacking import xframe_options_exempt
 
 from ews.fetcher import BugzillaPatchFetcher
 from ews.models.patch import Patch
@@ -39,6 +40,7 @@ class SubmitToEWS(View):
     def get(self, request):
         return render(request, 'submittoews.html', {})
 
+    @xframe_options_exempt
     def post(self, request):
         try:
             patch_id = request.POST.get('patch_id')
index df54d7b..1963360 100644 (file)
@@ -1,3 +1,13 @@
+2019-04-17  Aakash Jain  <aakash_jain@apple.com>
+
+        [ews-app] Clicking 'submit to new ews' doesn't reload status-bubble
+        https://bugs.webkit.org/show_bug.cgi?id=196675
+
+        Reviewed by Lucas Forschler.
+
+        * BuildSlaveSupport/ews-app/ews/views/submittoews.py:
+        (SubmitToEWS): Added @xframe_options_exempt similar to statusbubble.py
+
 2019-04-16  Wenson Hsieh  <wenson_hsieh@apple.com>
 
         [iOS] [WebKit2] Add support for honoring -[UIMenuItem dontDismiss]