taboca / browser-adaptation-dynamic-theme

UX study — A Browser Plug-in Enabling Toolbar Color Adaptation based on Web Page Meta data or Color Capture (ambiance)
21 stars 9 forks source link

Check if DOMMetaAdded works for web page scripts #9

Closed taboca closed 6 years ago

taboca commented 6 years ago

Noticed a sort of mutation-like event in the doc from Mozilla

https://bug1013913.bmoattachments.org/attachment.cgi?id=8451366

     addEventListener('DOMMetaAdded',
-                     this._metaAddedHandler.bind(this),
+                     this._metaChangedHandler.bind(this),
                      /* useCapture = */ true,
                      /* wantsUntrusted = */ false);

which relates to this https://bugzilla.mozilla.org/show_bug.cgi?id=1098544

taboca commented 6 years ago

This won't work as based on tests, perhaps because when the body.js is loaded is too late — check the new patch https://github.com/taboca/themematcher/issues/9https://github.com/taboca/themematcher/issues/6