WebExtensions/Implementing APIs out-of-process: Difference between revisions

Jump to navigation Jump to search
webRequest/webNavigation are now OOP-compatible; the bugs have been fixed
(webRequest/webNavigation are now OOP-compatible; the bugs have been fixed)
 
Line 212: Line 212:
  context.getParentEvent("contextMenus.onClicked").addListener(listener); // Identical to eventObj.addListener
  context.getParentEvent("contextMenus.onClicked").addListener(listener); // Identical to eventObj.addListener
  eventObj.addListener(otherListener);// Add another listener, re-using existing parent event registration.
  eventObj.addListener(otherListener);// Add another listener, re-using existing parent event registration.
Currently, <code>addListener</code> does not support filters yet, so the webNavigation API still uses the old, non-OOP-compatible way of registering events. See ([https://bugzil.la/1305216 bug 1305216]).
It is also one of the reasons that webRequest is not OOP-compatible ([https://bugzil.la/1305217 bug 1305217])


=== Timing issues ===
=== Timing issues ===
44

edits

Navigation menu