Skip to content

Commit

Permalink
Bug 1770944 - remove dangling textual references of mozbrowser, r=smaug
Browse files Browse the repository at this point in the history
Depends on D200797

Differential Revision: https://phabricator.services.mozilla.com/D189655
  • Loading branch information
aiunusov485 committed Feb 22, 2024
1 parent 71e67be commit 9ff77a7
Show file tree
Hide file tree
Showing 12 changed files with 4 additions and 541 deletions.
17 changes: 0 additions & 17 deletions browser/actors/ContextMenuChild.sys.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -471,17 +471,6 @@ export class ContextMenuChild extends JSWindowActorChild {
return this.contentWindow.HTMLTextAreaElement.isInstance(node);
}

/**
* Check if we are in the parent process and the current iframe is the RDM iframe.
*/
_isTargetRDMFrame(node) {
return (
Services.appinfo.processType === Services.appinfo.PROCESS_TYPE_DEFAULT &&
node.tagName === "iframe" &&
node.hasAttribute("mozbrowser")
);
}

_isSpellCheckEnabled(aNode) {
// We can always force-enable spellchecking on textboxes
if (this._isTargetATextBox(aNode)) {
Expand Down Expand Up @@ -545,12 +534,6 @@ export class ContextMenuChild extends JSWindowActorChild {
return;
}

if (this._isTargetRDMFrame(aEvent.composedTarget)) {
// The target is in the DevTools RDM iframe, a proper context menu event
// will be created from the RDM browser.
return;
}

let doc = aEvent.composedTarget.ownerDocument;
let {
mozDocumentURIIfNotForErrorPages: docLocation,
Expand Down
25 changes: 0 additions & 25 deletions dom/base/test/chrome/test_swapFrameLoaders.xhtml

This file was deleted.

223 changes: 0 additions & 223 deletions dom/base/test/chrome/window_swapFrameLoaders.xhtml

This file was deleted.

20 changes: 0 additions & 20 deletions dom/broadcastchannel/tests/file_mozbrowser.html

This file was deleted.

21 changes: 0 additions & 21 deletions dom/broadcastchannel/tests/file_mozbrowser2.html

This file was deleted.

15 changes: 0 additions & 15 deletions dom/broadcastchannel/tests/iframe_mozbrowser.html

This file was deleted.

15 changes: 0 additions & 15 deletions dom/broadcastchannel/tests/iframe_mozbrowser2.html

This file was deleted.

4 changes: 0 additions & 4 deletions dom/broadcastchannel/tests/mochitest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ support-files = [
"broadcastchannel_sharedWorker.js",
"broadcastchannel_worker_alive.js",
"!/dom/events/test/event_leak_utils.js",
"file_mozbrowser.html",
"file_mozbrowser2.html",
"iframe_mozbrowser.html",
"iframe_mozbrowser2.html",
"testUrl1_bfcache.html",
"testUrl2_bfcache.html",
]
Expand Down
11 changes: 1 addition & 10 deletions dom/tests/mochitest/chrome/file_bug800817.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=800817
var b1 = document.getElementById("b1");
var b2 = document.getElementById("b2");

var testMozBrowser = window.arguments[0].testMozBrowser;
if (testMozBrowser) {
b1.setAttribute("mozbrowser", "true");
b2.setAttribute("mozbrowser", "true");
}

if (testMozBrowser)
window.arguments[0].info("Testing with mozbrowser=true");
else
window.arguments[0].info("Testing without mozbrowser");
window.arguments[0].info("Testing...");

b1.contentWindow.focus();
window.arguments[0].is(document.activeElement, b1,
Expand Down
Loading

0 comments on commit 9ff77a7

Please sign in to comment.