Bug 1401293 - Remove unneeded special handling for the devtools panel from extension-process-script.js. r=kmag
MozReview-Commit-ID: 3pjuoqjULAB
This commit is contained in:
@@ -224,7 +224,6 @@ DocumentManager = {
|
||||
*/
|
||||
checkParentFrames(window, addonId) {
|
||||
while (window.parent !== window) {
|
||||
let {frameElement} = window;
|
||||
window = window.parent;
|
||||
|
||||
let principal = window.document.nodePrincipal;
|
||||
@@ -235,14 +234,6 @@ DocumentManager = {
|
||||
if (window.location.href === "about:addons") {
|
||||
return true;
|
||||
}
|
||||
|
||||
// NOTE: Special handling for devtools panels using a chrome iframe here
|
||||
// for the devtools panel, it is needed because a content iframe breaks
|
||||
// switching between docked and undocked mode (see bug 1075490).
|
||||
if (frameElement &&
|
||||
frameElement.mozMatchesSelector("browser[webextension-view-type='devtools_panel']")) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
if (principal.addonId !== addonId) {
|
||||
|
||||
Reference in New Issue
Block a user