This repository has been archived by the owner on Feb 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 263
JEP Context menu 2
Gozala edited this page Jan 4, 2013
·
3 revisions
Context menu API has a a notion of content scripts which are pretty exceptional, in the way they work. They are also problematic since API is incompatible with any kind of environment where content and chrome are isolated environments. Will be referring to such environment E10S without implying multi process architecture. Some signs of this has already being observable in attempts in porting context-menu API to Fennec.
As a matter of fact current API is even problematic for the current environment and set of workarounds are in place in a code that deals with content scripts:
- Context menu implementation passes DOM nodes between chrome and content that isn't compatible with E10S. It is also implies certain security concerns.
- Context menu's requires blocking calls from chrome to content, which is also incompatible with E10S.
All of the above are signs that porting this API to new platforms will be problematic, so it's better to revisit design earlier than later.
- New API should address majority of use cases that users have.
- New API should simplify simple cases.
- New API should not have content scripts.
- New API is not supposed to address every use case, same as SDK.