@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

When the profiler is active, keep it active if the user submits forms

Summary: Ref T12297. When a page is generated with the profiler active, keep it active by adding a `__profile__` input to any forms we generate.

Test Plan: Hit Conduit API page with `__profile__` active, saw it reflected in forms.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T12297

Differential Revision: https://secure.phabricator.com/D17399

+13
+13
src/infrastructure/javelin/markup.php
··· 98 98 'name' => '__form__', 99 99 'value' => true, 100 100 )); 101 + 102 + // If the profiler was active for this request, keep it active for any 103 + // forms submitted from this page. 104 + if (DarkConsoleXHProfPluginAPI::isProfilerRequested()) { 105 + $body[] = phutil_tag( 106 + 'input', 107 + array( 108 + 'type' => 'hidden', 109 + 'name' => '__profile__', 110 + 'value' => true, 111 + )); 112 + } 113 + 101 114 } 102 115 } 103 116