-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[DebugBundle] Remove inlined dumps on XHR #14609
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
nicolas-grekas
commented
May 11, 2015
Q | A |
---|---|
Bug fix? | yes |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Tests pass? | yes |
Fixed tickets | partially #14608 |
License | MIT |
Doc PR | - |
@@ -135,13 +135,12 @@ public function dump(Data $data) | |||
|
|||
public function collect(Request $request, Response $response, \Exception $exception = null) | |||
{ | |||
if ($this->requestStack && $this->requestStack->getMasterRequest() !== $request) { | |||
if (($this->requestStack && $this->requestStack->getMasterRequest() !== $request) || $request->isXmlHttpRequest()) { | |||
return; | |||
} | |||
|
|||
// In all conditions that remove the web debug toolbar, dumps are written on the output. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this comment is not really accurrate anymore
03fb4dd
to
d0eb208
Compare
I added a check for the |
seems 👍 |
👍 |
1 similar comment
👍 |
This PR was merged into the 2.6 branch. Discussion ---------- [DebugBundle] Remove inlined dumps on XHR | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | partially #14608 | License | MIT | Doc PR | - Commits ------- d0eb208 [DebugBundle] Remove inlined dumps on XHR