DevTools/Backwards Compatibility: Difference between revisions

Jump to navigation Jump to search
Add feature detection information
(Created page with "= Overview = When making changes to the DevTools, there are certain backward compatibility requirements that we should keep in mind. In general, we should strive to maintain...")
 
(Add feature detection information)
Line 22: Line 22:


The easiest way to test this is to check your work against the Firefox OS 1.3 simulator to ensure existing features in the area you are changing continue to function.  That doesn't cover every case, but it's a great start.
The easiest way to test this is to check your work against the Firefox OS 1.3 simulator to ensure existing features in the area you are changing continue to function.  That doesn't cover every case, but it's a great start.
= Feature Detection =
Landed in [https://bugzilla.mozilla.org/show_bug.cgi?id=1069673 bug 1069673] in Fx36, you can use feature detection for actors of the remote target to determine what actors exist, their methods, events, etc.
Using the protocol's description method (which existed for a long time, so will be in older Geckos), use the [https://github.com/mozilla/gecko-dev/blob/5373e7de91fe7b5c11ca7d44720e179ed8cfe407/browser/devtools/framework/target.js#L183-L284 methods on TabTarget] to determine the target's capabilities.
Confirmed users
110

edits

Navigation menu