Skip to content

[Logging] Add support for Firefox (43+) in ChromePhpHandler #18439

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

Merged
merged 1 commit into from
Apr 5, 2016
Merged

[Logging] Add support for Firefox (43+) in ChromePhpHandler #18439

merged 1 commit into from
Apr 5, 2016

Conversation

arjenm
Copy link
Contributor

@arjenm arjenm commented Apr 4, 2016

Q A
Branch? 2.3
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets none
License MIT
Doc PR none

Firefox added support for Chrome Logger a while back in version 43.
Support for Firefox was added in the ChromePHPHandler of Monolog 1.18.0, although its not mentioned in the changelog.

This PR is basically just to replace the originally copied regular expression, with this new one.

There should be no BC breakage, even though users may be using Monolog versions between 1.11 and 1.18. Monolog's ChromePHPHandler only got minor touch ups and its protocol (and thus output) remained the same.
This fix in fact also adds support for Firefox 43+ to older Monolog's when using the Symfony-version of that handler (which they should be using), since the Symfony-version of ChromePhpHandler completely overwrites the 'headersAccepted'-check of Monolog.

@nicolas-grekas
Copy link
Member

👍

@xabbuh
Copy link
Member

xabbuh commented Apr 5, 2016

👍

Status: Reviewed

In the long term we should probably rather make this information somehow accessible in the base handler to not need to duplicate it (see Seldaek/monolog#761).

@nicolas-grekas
Copy link
Member

Thank you @arjenm.

@nicolas-grekas nicolas-grekas merged commit c8efc4d into symfony:2.3 Apr 5, 2016
nicolas-grekas added a commit that referenced this pull request Apr 5, 2016
…r (arjenm)

This PR was merged into the 2.3 branch.

Discussion
----------

[Logging] Add support for Firefox (43+) in ChromePhpHandler

| Q             | A
| ------------- | ---
| Branch?       | 2.3
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | none
| License       | MIT
| Doc PR        | none

Firefox added support for Chrome Logger a while back in [version 43](https://www.mozilla.org/en-US/firefox/43.0/releasenotes/).
Support for Firefox was added in the ChromePHPHandler of [Monolog 1.18.0](Seldaek/monolog#721), although its not mentioned in the changelog.

This PR is basically just to replace the originally copied regular expression, [with this new one](Seldaek/monolog@fa96f6a).

There should be no BC breakage, even though users may be using Monolog versions between 1.11 and 1.18. Monolog's ChromePHPHandler only got minor touch ups and its protocol (and thus output) remained the same.
This fix in fact also adds support for Firefox 43+ to older Monolog's when using the Symfony-version of that handler (which they should be using), since the Symfony-version of ChromePhpHandler completely overwrites the 'headersAccepted'-check of Monolog.

Commits
-------

c8efc4d [Logging] Add support for firefox in ChromePhpHandler
@arjenm arjenm deleted the add_firefox_to_chromephp branch January 17, 2017 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants