Skip to content

[WebProfilerBundle] Fixed IE8 support #12900

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
Dec 20, 2014
Merged

[WebProfilerBundle] Fixed IE8 support #12900

merged 1 commit into from
Dec 20, 2014

Conversation

korotovsky
Copy link
Contributor

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

@mvrhov
Copy link

mvrhov commented Dec 9, 2014

IMO It has been said many times.. Ancient browsers are not supported in dev mode.

@javiereguiluz
Copy link
Member

@korotovsky thanks for your pull request and for helping us improve Symfony!

Unfortunately, as pointed by @mvrhov, we usually don't accept this kind of pull request. The reason is that Symfony is a backend technology, so there is no need to test it with a specific browser.

We understand that the end clients sometimes are stuck in a particular browser (e.g. IE8) but developers never are. If you are a Symfony developer, there is no reason to use IE8 to test the dev toolbar. That's why we decided to not dedicate any effort to make the debug toolbar compatible with ancient browsers. I hope you understand this decision!

@korotovsky
Copy link
Contributor Author

@mvrov So... Everything was fine in version <2.6. And in UPGRADE file this deprecation didn't listed.

That's why this is bug, and should be fixed.

@korotovsky
Copy link
Contributor Author

@javiereguiluz That means our frontend developers now unable to test site in IE8 without any additional work from backend. (to disable toolbar in IE8).

Sad.

@fabpot
Copy link
Member

fabpot commented Dec 9, 2014

If it worked in Symfony 2.5 and considering the change here, which looks like very simple, I'm 👍

@stof
Copy link
Member

stof commented Dec 9, 2014

@javiereguiluz our policy was that we don't need to support IE8 in the profiler. But the WDT is displayed in the page itself, and errors in IE8 means it will break the page itself. We already fixed the IE support for it previously (see the changelog for 2.3.5).
So the fix is needed IMO

@stof
Copy link
Member

stof commented Dec 9, 2014

hmm, actually, IE8 does not implement querySelectorAll AFAIK, so the fix itself seems wrong.

@korotovsky
Copy link
Contributor Author

@stof http://caniuse.com/#search=querySelectorAll

Partial support in IE8 is due to being limited to CSS 2.1 selectors. Additionally, it will have trouble with selectors including unrecognized tags (for example HTML5 ones).

IE8 has partial querySelectorAll support, but it enough for display page (main site page, where profiler was loaded) correctly.

@raulfraile
Copy link
Contributor

IMHO, the profiler and the toolbar should provide the same support for browsers/versions. They are meant to be used by backend developers, they don't give any value for frontend developers trying to make the website compatible with older browsers. The problem is that they need an easy way to disable the web toolbar in those cases.

AFAIK, the recommended way now would be having a different environment that extends from dev and changes only the debug_toolbar parameter. It's a lot of work and can cause problems for example if bundles are loaded based on the environment name. If that could be defined dynamically in the front controller would be much easier to use:

// app_dev.php

// Now:
$env = 'dev';
if (isUnsupportedBrowser()) {
    $env = 'dev_no_wdt';
}
$kernel = new AppKernel($env, true);

// Option:
$kernel = new AppKernel('dev', true);
if (isUnsupportedBrowser()) {
    $kernel->disableWdt();
}

I think that the important thing here is being able to disable the toolbar easily and look for a good way to do it.

@fabpot
Copy link
Member

fabpot commented Dec 20, 2014

👍 ping @symfony/deciders

@Tobion
Copy link
Contributor

Tobion commented Dec 20, 2014

👍

@fabpot
Copy link
Member

fabpot commented Dec 20, 2014

Thank you @korotovsky.

@fabpot fabpot merged commit a6dd6c9 into symfony:2.6 Dec 20, 2014
fabpot added a commit that referenced this pull request Dec 20, 2014
This PR was merged into the 2.6 branch.

Discussion
----------

[WebProfilerBundle] Fixed IE8 support

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

Commits
-------

a6dd6c9 [WebProfilerBundle] Fixed IE8 support
ostrolucky pushed a commit to ostrolucky/symfony that referenced this pull request Mar 25, 2018
This PR was merged into the 2.6 branch.

Discussion
----------

[WebProfilerBundle] Fixed IE8 support

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

Commits
-------

a6dd6c9 [WebProfilerBundle] Fixed IE8 support
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.

7 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy