Closed Bug 1770944 Opened 3 years ago Closed 2 years ago

Remove dom/browser-element/BrowserElementParent.jsm

Categories

(Core :: DOM: Core & HTML, task, P2)

task

Tracking

()

RESOLVED FIXED
125 Branch
Tracking Status
firefox125 --- fixed

People

(Reporter: mccr8, Assigned: aiunusov)

References

Details

(Whiteboard: [esmification-timeline])

Attachments

(16 files, 2 obsolete files)

48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review

It sounds like this isn't used any more, so we should try removing it. Gijs said it was confusing to have this around, because it kind of looks like something useful, but it isn't actually.

jstutte said jkrause might be able to work on this, so I'll mark them as the assignee for now.

Assignee: nobody → jkrause
Flags: needinfo?(jkrause)

Yes, I'm on it. Thank you.

Flags: needinfo?(jkrause)

Note that the various references to the "mozbrowser" attribute should also be removed.

Please flag me for review. Thanks!

Presumably everything under dom/browser-element/ can be removed. You should also talk to smaug after that happens, so he can deal with getting the module for this code removed.

I will split it into several commits to make it easier to review.

I think we should also remove dom/interfaces/html/nsIMozBrowserFrame.idl and related code.

(Thanks for working on this!)

Module owner thanks :)

And yes, please remove the interface too and all the places it is used. That can be a separate patch.
Looks like there is also nsIDOMMozBrowserFrame.

Depends on D155254

There are some r+ patches which didn't land and no activity in this bug for 2 weeks.
:jkrause, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit BugBot documentation.

Flags: needinfo?(smaug)
Flags: needinfo?(jkrause)

jkrause, hmm, should we land the patches.
https://phabricator.services.mozilla.com/D175898 has some error in moz.build

Flags: needinfo?(smaug)

I will fix the errors in moz.build.

Lastly, there will be some more patches removing the attribute mInIsolatedMozBrowser and some dangling textual references of mozbrowser.

What about deprecated methods like nsIDocShell getSameTypeInProcessParentIgnoreBrowserBoundaries()?

Flags: needinfo?(jkrause)
Assignee: jan.rio.krause → aiunusov
Priority: P3 → P2

So, this patch must be finished (I am working on it): https://phabricator.services.mozilla.com/D183230

plus, removing mInIsolatedMozBrowser and mozbrowser

(In reply to Artur Iunusov from comment #18)

So, this patch must be finished (I am working on it): https://phabricator.services.mozilla.com/D183230

plus, removing mInIsolatedMozBrowser and mozbrowser

Ah, I took the liberty of rebasing and fixing the build / killing a bunch of other code in https://phabricator.services.mozilla.com/D189490. Feel free to reuse whatever you need, sorry, didn't know it was actively being worked on.

No worries. I can update and put D183230 patch to the review and include removal of the other stuff ("dangling textual references of mozbrowser" and /dom/browser-element)

need basically just a try server run, to confirm that nothing is broken

Attachment #9358286 - Attachment description: WIP: Bug 1770944 - remove /dom/browser-element/ path from other places → Bug 1770944 - remove /dom/browser-element/ path from other places, r=smaug
Attachment #9358286 - Attachment description: Bug 1770944 - remove /dom/browser-element/ path from other places, r=smaug → WIP: Bug 1770944 - remove /dom/browser-element/ path from other places, r=smaug
Attachment #9358286 - Attachment description: WIP: Bug 1770944 - remove /dom/browser-element/ path from other places, r=smaug → Bug 1770944 - remove /dom/browser-element/ path from other places, r=smaug
Attachment #9355553 - Attachment description: WIP: Bug 1770944 - Remove other references to inBrowserElement. → Bug 1770944 - Remove other references to inBrowserElement.
Attachment #9355860 - Attachment description: WIP: Bug 1770944 - remove dangling textual references of mozbrowser, r=smaug → Bug 1770944 - remove dangling textual references of mozbrowser, r=smaug
Attachment #9359916 - Attachment description: WIP: Bug 1770944 - removed unused ProcessPriorityManagerImpl::ResetPriority → Bug 1770944 - removed unused ProcessPriorityManagerImpl::ResetPriority

some build failures on try server https://treeherder.mozilla.org/push-health/push?repo=try&revision=2c0ceccc682e724afbe1a7a534dc3b38ffb76aa1&tab=builds

could not reproduce locally, though (still looking the logs. UPD: fixed)

Attachment #9361414 - Attachment description: Bug 1770944 - Remove unused test_swapFrameLoaders, r=smaug → Bug 1770944 - Remove non-existent test_swapFrameLoaders, r=smaug

-before removal isInBrowserElement and migration to the new schema

  • still expect AppID, mInIsolatedMozBrowser and parse it
  • but keep unused
Duplicate of this bug: 1566186
Attachment #9355553 - Attachment description: Bug 1770944 - Remove other references to inBrowserElement. → Bug 1770944 - Remove other references to inBrowserElement, r=smaug
Attachment #9361453 - Attachment is obsolete: true
Attachment #9361453 - Attachment is obsolete: false
Attachment #9361453 - Attachment is obsolete: true
Attachment #9362029 - Attachment description: Bug 1770944 - Fixed all test_permmanager_migrate.js tests, r=smaug → WIP: Bug 1770944 - Fixed all test_permmanager_migrate.js tests, r=smaug
Attachment #9362077 - Attachment description: Bug 1770944 - Fixed dom\quota\test\xpcshell\upgrades tests, r=smaug → WIP: Bug 1770944 - Fixed dom\quota\test\xpcshell\upgrades tests, r=smaug
Attachment #9362077 - Attachment is obsolete: true
Attachment #9362029 - Attachment description: WIP: Bug 1770944 - Fixed all test_permmanager_migrate.js tests, r=smaug → Bug 1770944 - Fixed all test_permmanager_migrate.js tests, r=smaug
Attachment #9290965 - Attachment description: Bug 1770944 - Remove `dom/browser-element`. r=kmag → WIP: Bug 1770944 - Remove `dom/browser-element`. r=kmag
Attachment #9318822 - Attachment description: Bug 1770944 - Remove `nsIMozBrowserFrame`. r=kmag → WIP: Bug 1770944 - Remove `nsIMozBrowserFrame`. r=kmag
Attachment #9355553 - Attachment description: Bug 1770944 - Remove other references to inBrowserElement, r=smaug → WIP: Bug 1770944 - Remove other references to inBrowserElement, r=smaug
Attachment #9355860 - Attachment description: Bug 1770944 - remove dangling textual references of mozbrowser, r=smaug → WIP: Bug 1770944 - remove dangling textual references of mozbrowser, r=smaug
Attachment #9358286 - Attachment description: Bug 1770944 - remove /dom/browser-element/ path from other places, r=smaug → WIP: Bug 1770944 - remove /dom/browser-element/ path from other places, r=smaug
Attachment #9361449 - Attachment description: Bug 1770944 - removed isolatedMozBrowser related tests, r=smaug → WIP: Bug 1770944 - removed isolatedMozBrowser related tests, r=smaug
Attachment #9361714 - Attachment description: Bug 1770944 - removed test_cookiejars.js, r=smaug → WIP: Bug 1770944 - removed test_cookiejars.js, r=smaug
Attachment #9361714 - Attachment description: WIP: Bug 1770944 - removed test_cookiejars.js, r=smaug → Bug 1770944 - removed test_cookiejars.js, r=smaug
Attachment #9355860 - Attachment description: WIP: Bug 1770944 - remove dangling textual references of mozbrowser, r=smaug → Bug 1770944 - remove dangling textual references of mozbrowser, r=smaug
Attachment #9358286 - Attachment description: WIP: Bug 1770944 - remove /dom/browser-element/ path from other places, r=smaug → Bug 1770944 - remove /dom/browser-element/ path from other places, r=smaug
Attachment #9361449 - Attachment description: WIP: Bug 1770944 - removed isolatedMozBrowser related tests, r=smaug → Bug 1770944 - removed isolatedMozBrowser related tests, r=smaug
Attachment #9290965 - Attachment description: WIP: Bug 1770944 - Remove `dom/browser-element`. r=kmag → Bug 1770944 - Remove `dom/browser-element`. r=kmag
Attachment #9318822 - Attachment description: WIP: Bug 1770944 - Remove `nsIMozBrowserFrame`. r=kmag → Bug 1770944 - Remove `nsIMozBrowserFrame`. r=kmag
Attachment #9355553 - Attachment description: WIP: Bug 1770944 - Remove other references to inBrowserElement, r=smaug → Bug 1770944 - Remove other references to inBrowserElement, r=smaug
Attachment #9355553 - Attachment description: Bug 1770944 - Remove other references to inBrowserElement, r=smaug → WIP: Bug 1770944 - Remove other references to inBrowserElement, r=smaug
Attachment #9361714 - Attachment description: Bug 1770944 - removed test_cookiejars.js, r=smaug → Bug 1770944 - fixed test_cookiejars.js, r=smaug
Attachment #9361449 - Attachment description: Bug 1770944 - removed isolatedMozBrowser related tests, r=smaug → Bug 1770944 - fixed isolatedMozBrowser related tests, r=smaug
Attachment #9355553 - Attachment description: WIP: Bug 1770944 - Remove other references to inBrowserElement, r=smaug → Bug 1770944 - Remove other references to inBrowserElement, r=smaug
Duplicate of this bug: 963259
Attachment #9355553 - Attachment description: Bug 1770944 - Remove other references to inBrowserElement, r=smaug → WIP: Bug 1770944 - Remove other references to inBrowserElement, r=smaug
Attachment #9355553 - Attachment description: WIP: Bug 1770944 - Remove other references to inBrowserElement, r=smaug → Bug 1770944 - Remove other references to inBrowserElement, r=smaug
Attachment #9355553 - Attachment description: Bug 1770944 - Remove other references to inBrowserElement, r=smaug → Bug 1770944 - Remove other references to inBrowserElement, r=janv
Depends on: 1877608
Attachment #9355553 - Attachment description: Bug 1770944 - Remove other references to inBrowserElement, r=janv → WIP: Bug 1770944 - Remove other references to inBrowserElement, r=janv
Attachment #9355553 - Attachment description: WIP: Bug 1770944 - Remove other references to inBrowserElement, r=janv → Bug 1770944 - Remove other references to inBrowserElement, r=janv
Attachment #9355553 - Attachment description: Bug 1770944 - Remove other references to inBrowserElement, r=janv → WIP: Bug 1770944 - Remove other references to inBrowserElement, r=janv
Attachment #9355553 - Attachment description: WIP: Bug 1770944 - Remove other references to inBrowserElement, r=janv → Bug 1770944 - Remove other references to inBrowserElement, r=janv

This patch cleans up some existing code and adds full support for origin
attribute serialization.

Attachment #9290965 - Attachment description: Bug 1770944 - Remove `dom/browser-element`. r=kmag → Bug 1770944 - Remove `dom/browser-element`. r=smaug
Attachment #9318822 - Attachment description: Bug 1770944 - Remove `nsIMozBrowserFrame`. r=kmag → Bug 1770944 - Remove `nsIMozBrowserFrame`. r=smaug

https://treeherder.mozilla.org/jobs?repo=try&revision=e8c2e1d6a34990b4a16537daa5d759088f2e1c87

last try push looks good. Let's land it right after soft freeze

Pushed by opettay@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9b18524f541e Remove `dom/browser-element`. r=smaug https://hg.mozilla.org/integration/autoland/rev/a4197071d10a Remove `nsIMozBrowserFrame`. r=smaug https://hg.mozilla.org/integration/autoland/rev/55b0886f9025 Remove `nsIDOMMozBrowserFrame`. r=smaug https://hg.mozilla.org/integration/autoland/rev/1828b66c2f7c Remove `nsGkAtoms::mozbrowser`. r=smaug https://hg.mozilla.org/integration/autoland/rev/9ea253525227 Remove `isInIsolatedMozBrowserElement`. r=smaug,necko-reviewers,kershaw,valentin https://hg.mozilla.org/integration/autoland/rev/e3960ad85182 Remove other references to inBrowserElement, r=cookie-reviewers,valentin,janv,decoder https://hg.mozilla.org/integration/autoland/rev/4b6ae7dd0e69 Fix StorageOriginAttributes::CreateSuffix; r=aiunusov https://hg.mozilla.org/integration/autoland/rev/3a149ef794c2 remove dangling textual references of mozbrowser, r=smaug https://hg.mozilla.org/integration/autoland/rev/0a138f3b56b9 remove /dom/browser-element/ path from other places, r=smaug,zeid https://hg.mozilla.org/integration/autoland/rev/708b2671410e removed unused ProcessPriorityManagerImpl::ResetPriority r=smaug https://hg.mozilla.org/integration/autoland/rev/be28bb62e9f3 Remove non-existent test_swapFrameLoaders, r=smaug https://hg.mozilla.org/integration/autoland/rev/0d4318bf3239 fixed isolatedMozBrowser related tests, r=smaug,necko-reviewers,jesup https://hg.mozilla.org/integration/autoland/rev/97aa839dc200 Fixed permission manager tests, r=smaug https://hg.mozilla.org/integration/autoland/rev/15661e24d8e1 fixed test_cookiejars.js, r=smaug,necko-reviewers,jesup https://hg.mozilla.org/integration/autoland/rev/23d0dc98eb51 Fixed all test_permmanager_migrate.js tests, r=smaug https://hg.mozilla.org/integration/autoland/rev/b73885731e73 test_permmanager_matches:removed inIsolatedMozBrowser related tests, r=smaug

Thanks! Looking into it.

Flags: needinfo?(aiunusov)

Okay, was able to reproduce it locally

Fixed.

Pushed by opettay@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fb5a54b3cbe9 Remove `dom/browser-element`. r=smaug https://hg.mozilla.org/integration/autoland/rev/9ba54ab06348 Remove `nsIMozBrowserFrame`. r=smaug https://hg.mozilla.org/integration/autoland/rev/36c378ba8212 Remove `nsIDOMMozBrowserFrame`. r=smaug https://hg.mozilla.org/integration/autoland/rev/bd53c42038f7 Remove `nsGkAtoms::mozbrowser`. r=smaug https://hg.mozilla.org/integration/autoland/rev/f65e0967ad75 Remove `isInIsolatedMozBrowserElement`. r=smaug,necko-reviewers,kershaw,valentin https://hg.mozilla.org/integration/autoland/rev/14952f872b77 Remove other references to inBrowserElement, r=cookie-reviewers,valentin,janv,decoder https://hg.mozilla.org/integration/autoland/rev/63ac518aceb0 Fix StorageOriginAttributes::CreateSuffix; r=aiunusov https://hg.mozilla.org/integration/autoland/rev/79de4f83fe2e remove dangling textual references of mozbrowser, r=smaug https://hg.mozilla.org/integration/autoland/rev/9416bafd9982 remove /dom/browser-element/ path from other places, r=smaug,zeid https://hg.mozilla.org/integration/autoland/rev/0a8c4c2460ee removed unused ProcessPriorityManagerImpl::ResetPriority r=smaug https://hg.mozilla.org/integration/autoland/rev/58e02566db85 Remove non-existent test_swapFrameLoaders, r=smaug https://hg.mozilla.org/integration/autoland/rev/0d2432765ca0 fixed isolatedMozBrowser related tests, r=smaug,necko-reviewers,jesup https://hg.mozilla.org/integration/autoland/rev/6435f48c96bf Fixed permission manager tests, r=smaug https://hg.mozilla.org/integration/autoland/rev/8a217eff7bcd fixed test_cookiejars.js, r=smaug,necko-reviewers,jesup https://hg.mozilla.org/integration/autoland/rev/4ff0c45db93b Fixed all test_permmanager_migrate.js tests, r=smaug https://hg.mozilla.org/integration/autoland/rev/61af32f40777 test_permmanager_matches:removed inIsolatedMozBrowser related tests, r=smaug
Regressions: 1881745

https://phabricator.services.mozilla.com/D189490 made some unreviewed changes to XPCOM JSM-related code that sound like they broke Thunderbird and I'm going to pursue getting this backed out per discussion in the XPCOM matrix channel.

Flags: needinfo?(aiunusov)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: 125 Branch → ---
Depends on: 1881917

Looking into it. Thanks!

Flags: needinfo?(aiunusov)
Attachment #9355553 - Attachment description: Bug 1770944 - Remove other references to inBrowserElement, r=janv → WIP: Bug 1770944 - Remove other references to inBrowserElement, r=janv
Attachment #9355553 - Attachment description: WIP: Bug 1770944 - Remove other references to inBrowserElement, r=janv → Bug 1770944 - Remove other references to inBrowserElement, r=janv
Attachment #9359916 - Attachment description: Bug 1770944 - removed unused ProcessPriorityManagerImpl::ResetPriority → WIP: Bug 1770944 - removed unused ProcessPriorityManagerImpl::ResetPriority

try push looks fine, except the test that were broken before my changes:
(UNEXPECTED PASS)
browser/components/firefoxview/tests/browser/browser_history_firefoxview.js
browser/components/screenshots/tests/browser/browser_screenshots_focus_test.js
editing/crashtests/insertparagraph-in-listitem-in-svg-followed-by-collapsible-spaces.html
mediacapture-streams/crashtests/enumerateDevices-after-discard-1.https.html

So. I think we can land it

Attachment #9359916 - Attachment description: WIP: Bug 1770944 - removed unused ProcessPriorityManagerImpl::ResetPriority → Bug 1770944 - removed unused ProcessPriorityManagerImpl::ResetPriority
Pushed by aiunusov@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1b442b0a2086 Remove `dom/browser-element`. r=smaug https://hg.mozilla.org/integration/autoland/rev/a02fdaf52893 Remove `nsIMozBrowserFrame`. r=smaug https://hg.mozilla.org/integration/autoland/rev/fa5382cdad83 Remove `nsIDOMMozBrowserFrame`. r=smaug https://hg.mozilla.org/integration/autoland/rev/da61e4f3f305 Remove `nsGkAtoms::mozbrowser`. r=smaug https://hg.mozilla.org/integration/autoland/rev/35b608130b74 Remove `isInIsolatedMozBrowserElement`. r=smaug,necko-reviewers,kershaw,valentin https://hg.mozilla.org/integration/autoland/rev/7ad01126dfc5 Remove other references to inBrowserElement, r=cookie-reviewers,valentin,janv,decoder https://hg.mozilla.org/integration/autoland/rev/0f276d3694d5 Fix StorageOriginAttributes::CreateSuffix; r=aiunusov https://hg.mozilla.org/integration/autoland/rev/d302f6d7c392 remove dangling textual references of mozbrowser, r=smaug https://hg.mozilla.org/integration/autoland/rev/e9bbef712077 remove /dom/browser-element/ path from other places, r=smaug,zeid https://hg.mozilla.org/integration/autoland/rev/f42069fedaa5 removed unused ProcessPriorityManagerImpl::ResetPriority r=smaug https://hg.mozilla.org/integration/autoland/rev/af3de5c08748 Remove non-existent test_swapFrameLoaders, r=smaug https://hg.mozilla.org/integration/autoland/rev/87dae4f52865 fixed isolatedMozBrowser related tests, r=smaug,necko-reviewers,jesup https://hg.mozilla.org/integration/autoland/rev/3cd42773638e Fixed permission manager tests, r=smaug https://hg.mozilla.org/integration/autoland/rev/afa2d0e7f98f fixed test_cookiejars.js, r=smaug,necko-reviewers,jesup https://hg.mozilla.org/integration/autoland/rev/56eb48601758 Fixed all test_permmanager_migrate.js tests, r=smaug https://hg.mozilla.org/integration/autoland/rev/9f05ae959301 test_permmanager_matches:removed inIsolatedMozBrowser related tests, r=smaug
Whiteboard: [esmification-timeline]
Component: DOM: Content Processes → DOM: Core & HTML
Blocks: 1802334
No longer blocks: 1802334
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: