зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1401028
- Remove the content-contextmenu observer notification; r=kmag
This was used by the add-on SDK.
This commit is contained in:
Родитель
c41f9edbea
Коммит
fecb44a276
|
@ -44,7 +44,6 @@ function openContextMenu(aMessage) {
|
|||
spellInfo,
|
||||
principal: data.principal,
|
||||
customMenuItems: data.customMenuItems,
|
||||
addonInfo: data.addonInfo,
|
||||
documentURIObject,
|
||||
docLocation: data.docLocation,
|
||||
charSet: data.charSet,
|
||||
|
|
|
@ -510,15 +510,6 @@ class ContextMenu {
|
|||
return;
|
||||
}
|
||||
|
||||
let addonInfo = Object.create(null);
|
||||
let subject = {
|
||||
aEvent,
|
||||
addonInfo,
|
||||
};
|
||||
|
||||
subject.wrappedJSObject = subject;
|
||||
Services.obs.notifyObservers(subject, "content-contextmenu");
|
||||
|
||||
let doc = aEvent.target.ownerDocument;
|
||||
let {
|
||||
mozDocumentURIIfNotForErrorPages: docLocation,
|
||||
|
@ -612,7 +603,6 @@ class ContextMenu {
|
|||
baseURI,
|
||||
isRemote,
|
||||
referrer,
|
||||
addonInfo,
|
||||
editFlags,
|
||||
principal,
|
||||
spellInfo,
|
||||
|
|
|
@ -449,15 +449,6 @@ var ViewSourceContent = {
|
|||
},
|
||||
|
||||
onContextMenu(event) {
|
||||
let addonInfo = {};
|
||||
let subject = {
|
||||
event,
|
||||
addonInfo,
|
||||
};
|
||||
|
||||
subject.wrappedJSObject = subject;
|
||||
Services.obs.notifyObservers(subject, "content-contextmenu");
|
||||
|
||||
let node = event.target;
|
||||
|
||||
let result = {
|
||||
|
|
Загрузка…
Ссылка в новой задаче