-
Notifications
You must be signed in to change notification settings - Fork 0
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
[CLOSED] Detect inspector protocol version #6449
Comments
Comment by redmunds I think we can use |
Comment by peterflynn We can get the version more directly from JS running on the page (e.g. via |
Comment by jasonsanjose
Just to be extra clear, knowing the chrome version is only half the battle. We still need to have our own mapping of what protocol version maps to what chrome version. I'm not sure that's desirable. |
Comment by peterflynn Since there are only two protocol versions we support and there's a clear line in its version history where Chrome switched from one to the other, it doesn't seem that bad to me. It's not like a caniuse matrix with lots of different browsers hitting the mark at different times or anything... |
Comment by dangoor Low priority to |
Comment by njx We should note this in the release notes for 38, since it shows up as a console error and people might think something is wrong. |
Comment by njx I just went ahead and did that. |
Comment by peterflynn FBNC |
Comment by redmunds
|
Comment by jasonsanjose Confirmed. Closing. |
Issue by jasonsanjose
Friday Mar 07, 2014 at 19:39 GMT
Originally opened as adobe/brackets#7127
To fix #6830, PR #7008 uses both the deleted
CSS.getAllStylesheets
API (for Chrome < 34) and the newstyleSheetAdded/styleSheetRemoved
events.Users using Chrome >= 34 may see an inconsequential console error in Brackets' dev tools:
We log all inspector protocol errors to the console, even in this case where we expect it to fail in some versions of Chrome. In this case, once we detect the API is missing, we disable future calls during the session and rely only on the new events.
Here are some options so that we don't log the error:
protocol.json
from http://src.chromium.org/viewvc/blink/trunk/Source/devtools/protocol.json. We could do this client side with someuserAgent
sniffing or natively if we can read the Chrome version from the native OS. The drawback here is maintaining this mapping for each Chrome version.The text was updated successfully, but these errors were encountered: