Open Bug 1471161 Opened 6 years ago Updated 2 years ago

Standardize Accessibility panel initialization

Categories

(DevTools :: Accessibility Tools, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: ochameau, Assigned: ochameau)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Per the following RFC:
  https://github.com/devtools-html/rfcs/issues/48
And in order to unblock Promise.jsm removal and especially allow landing bug 1388054, we should refactor main.js to stop being evaluated as a document script, but rather it be loaded as a module, via DevTools module loader.
Assignee: nobody → poirot.alex
Attachment #8987784 - Flags: review?(yzenevich)
Attachment #8987784 - Flags: review?(jdescottes)
Compared to bug 1470086, I've been a litlle bit more conservative.
I've not changed the EventEmitter target. I've let `window` be the target.
It isn't clear if we should make it be `panel` or another object... It also looks slightly outside of the scope of initialization ;)
But it would be great to standardize this practice as well!
Comment on attachment 8987784 [details]
Bug 1471161 - Standardize Accessibility panel initialization.

https://reviewboard.mozilla.org/r/253060/#review259764

::: devtools/client/jar.mn
(Diff revision 1)
>      content/aboutdebugging/aboutdebugging.xhtml (aboutdebugging/aboutdebugging.xhtml)
>      content/aboutdebugging/aboutdebugging.css (aboutdebugging/aboutdebugging.css)
>      content/responsive.html/index.xhtml (responsive.html/index.xhtml)
>      content/dom/index.html (dom/index.html)
>      content/accessibility/index.html (accessibility/index.html)
> -    content/accessibility/main.js (accessibility/main.js)

Still referenced in devtools/client/accessibility/index.html
Attachment #8987784 - Flags: review?(jdescottes) → review+
Comment on attachment 8987784 [details]
Bug 1471161 - Standardize Accessibility panel initialization.

https://reviewboard.mozilla.org/r/253060/#review261354

Thanks! r+ with Julian's comment addressed.
Attachment #8987784 - Flags: review?(yzenevich) → review+
Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.