Skip to content

Commit

Permalink
Dummy code for drop info content window
Browse files Browse the repository at this point in the history
(better, but still doesn't work)
(#162)
  • Loading branch information
Infocatcher committed Jul 30, 2015
1 parent 90cc535 commit f99724b
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -1778,8 +1778,20 @@ var privateTab = {
_log(e.type + ": from " + (isPrivateSource ? "private" : "not private") + " tab");

var targetTab;
if(e.view.top == window) {
var trg = e.originalTarget || e.target;
var trg = e.originalTarget || e.target;
var inChildProcess = trg.localName == "browser" && trg.getAttribute("remote") == "true";
if(inChildProcess || e.view.top == window.content) {
var node = e.target;
if(inChildProcess) {
//~ todo: we can only use frame script here?
}
if(this.isEditableNode(node)) {
_log("Dropped into editable node, ignore");
return;
}
targetTab = window.gBrowser.selectedTab;
}
else if(e.view.top == window) {
targetTab = this.getTabFromChild(trg);
if(
sourceNode instanceof window.XULElement
Expand All @@ -1791,13 +1803,6 @@ var privateTab = {
return;
}
}
else if(e.view.top == window.content) {
if(this.isEditableNode(e.target)) {
_log("Dropped into editable node, ignore");
return;
}
targetTab = window.gBrowser.selectedTab;
}

var isPrivateTarget = targetTab
? this.isPrivateTab(targetTab)
Expand Down

0 comments on commit f99724b

Please sign in to comment.