Commit Graph

109 Commits

Author SHA1 Message Date
Luca Greco
0baa19612c Bug 1438663 - Fix browserAction focus test intermittency in browser_ext_popup_focus.js and renable it. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D116019
2021-06-01 16:54:14 +00:00
Gijs Kruitbosch
600a3f1790 Bug 1701257 - fix panel radius on webextension browser and body with proton enabled, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D109909
2021-03-26 18:54:10 +00:00
Tomislav Jovanovic
a3f3fe6ce5 Bug 1646817 - Support DocumentChannel process switching in sidebars and popups r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D100396
2021-03-12 22:58:29 +00:00
Cosmin Sabou
619fca8701 Backed out changeset 6a75d5ea4301 (bug 1646817) for causing macOS nightly crashes. a=backout 2021-02-28 12:36:09 +02:00
Tomislav Jovanovic
4af3da178b Bug 1646817 - Part 1: Support DocumentChannel process switching in sidebars r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D100396
2021-02-26 22:56:17 +00:00
Csoregi Natalia
b561be2a41 Backed out changeset 0b6e13411d3f (bug 1646817) for causing crashes on macOS. a=backout 2021-01-18 18:32:42 +02:00
Tomislav Jovanovic
6e70e958b1 Bug 1646817 - Support DocumentChannel process switching in sidebars and popups r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D100396
2021-01-14 20:32:24 +00:00
Mihai Alexandru Michis
5c1c52ad92 Backed out changeset 6e6788b1853e (bug 1646817) for causing bc failures in browser_ext_popup_api_injection.js
CLOSED TREE
2020-12-25 01:54:50 +02:00
Tomislav Jovanovic
15fec10580 Bug 1646817 - Support DocumentChannel process switching in sidebars and popups r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D100396
2020-12-24 20:16:12 +00:00
Tomislav Jovanovic
8503d10dd3 Bug 1680877 - Enable content scripts in extension popups and sidebars r=rpl
See comment in ExtensionPolicyService::CheckDocument for details.

Differential Revision: https://phabricator.services.mozilla.com/D99133
2020-12-12 15:59:18 +00:00
Csoregi Natalia
4c609e0f1a Backed out changeset 9d25024d5811 (bug 1680877) for causing failures on browser_ext_menus_events.js. CLOSED TREE 2020-12-09 18:13:47 +02:00
Tomislav Jovanovic
4787438a52 Bug 1680877 - Enable content scripts in extension popups and sidebars r=rpl
See comment in ExtensionPolicyService::CheckDocument for details.

Differential Revision: https://phabricator.services.mozilla.com/D99133
2020-12-09 10:10:56 +00:00
Brad Werth
4031b3230e Bug 1634556 Part 2: Make web extension popup panels listen to zoom enlarge/reduce events. r=mixedpuppy
These events are fired for all parent process documents by the code that
handles native mousewheel events. This change adds listeners to those events
and handles them similarly to how they are handled for browsers.

Differential Revision: https://phabricator.services.mozilla.com/D87113
2020-10-23 23:20:07 +00:00
Nika Layzell
e9a2f4801a Bug 1589517 - Part 4: Remove sameProcessAsFrameLoader, r=zombie,mconley,farre,smacleod
The functionality has been fully subsumed by the new
initialBrowsingContextGroupId attribute, so it is no longer necessary.

Differential Revision: https://phabricator.services.mozilla.com/D85653
2020-08-06 17:01:13 +00:00
Nika Layzell
eb7c846c0d Bug 1589517 - Part 3: Add initialBrowsingContextGroupId to extension browsers, r=zombie
This attribute can be used to force non-tab extension browsers to be loaded in
the correct BrowsingContextGroup, and also subsumes the existing
sameProcessAsFrameLoader uses in extension code.

Differential Revision: https://phabricator.services.mozilla.com/D85652
2020-08-06 17:01:10 +00:00
Neil Deakin
75fc6180d4 Bug 1594752, use WindowGlobalParent's documentTitle to update tab titles rather than sending messages and events between processes, r=Gijs
Fix up the browser_tab_label_during_restore.js test to wait for the right number of tab title changes, since the timing of the tab title updating has now changed.

Differential Revision: https://phabricator.services.mozilla.com/D72562
2020-05-19 13:42:41 +00:00
Andreea Pavel
21811d567a Backed out 2 changesets (bug 1594752) for causing bug 1638148 on a CLOSED TREE
Backed out changeset 66cc44b67170 (bug 1594752)
Backed out changeset e781cf38f088 (bug 1594752)
2020-05-15 13:47:49 +03:00
Neil Deakin
ab455944fa Bug 1594752, use WindowGlobalParent's documentTitle to update tab titles rather than sending messages and events between processes, r=Gijs
Fix up the browser_tab_label_during_restore.js test to wait for the right number of tab title changes, since the timing of the tab title updating has now changed.

Differential Revision: https://phabricator.services.mozilla.com/D72562
2020-05-13 19:26:10 +00:00
Mihai Alexandru Michis
20781963e7 Backed out 2 changesets (bug 1594752) for causing failures in browser_e10s_switchbrowser.js
CLOSED TREE

Backed out changeset b54107a687e4 (bug 1594752)
Backed out changeset 801d1e226947 (bug 1594752)
2020-05-11 18:11:24 +03:00
Neil Deakin
d170441114 Bug 1594752, use WindowGlobalParent's documentTitle to update tab titles rather than sending messages and events between processes, r=Gijs
Fix up the browser_tab_label_during_restore.js test to wait for the right number of tab title changes, since the timing of the tab title updating has now changed.

Differential Revision: https://phabricator.services.mozilla.com/D72562
2020-05-11 09:03:03 +00:00
Rob Wu
a328574a12 Bug 1394019 - Handle DOMWindowClose of extension popup in parent r=zombie
Starting from bug 1533949, the DOMWindowClose event is forwarded to the
`<browser>` element, so there is no need for a custom
"Extension:DOMWindowClose" message any more.

Differential Revision: https://phabricator.services.mozilla.com/D60721
2020-02-10 15:09:03 +00:00
Tomislav Jovanovic
7d63b89c81 Bug 1604058 - Verify remote conduits coming from extension pages r=robwu,rpl
Differential Revision: https://phabricator.services.mozilla.com/D57252
2019-12-21 00:36:11 +00:00
Neil Deakin
eaa85b3b81 Bug 1590752, remove now unneeded content.js framescript, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D50585
2019-10-31 10:11:52 +00:00
Tim Nguyen
17537bff2f Bug 1569375 - Refactor browser panel CSS to reduce shadow DOM traversal after CE conversion. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D39594
2019-07-31 15:22:08 +00:00
Alexis Beingessner
74fba4e165 Bug 1547351 - Automatically set content process render root r=kats
This implements the idea of automatically setting a content proc's
render root based on the render root enclosing the iframe that
points to it. There was a bit of cleanup in here that was a bit
tricky to extract from the core patch revolving around how we
use the Api(...) helper. This was to avoid the situation where
we use the Api(...) helper before our render root is initialized,
when we don't actually have to. I.e., when we just want the root
WebRenderAPI in all cases.

An alternative to this approach could be to fully built out the
WebRender transactions and just queue those up to be sent. However,
transaction building has various side effects which are committed
before the transaction is actually sent, so we would have to build
out some scheme for deferring those as well. This seemed simpler.

Patch primarily written by :dthayer

Differential Revision: https://phabricator.services.mozilla.com/D37078
2019-07-24 14:10:56 +00:00
Andreea Pavel
d267266a66 Backed out 3 changesets (bug 1547351) for assertion failures on a CLOSED TREE
Backed out changeset 77ef8e8bc669 (bug 1547351)
Backed out changeset b594f8e47025 (bug 1547351)
Backed out changeset 6e5d426cd313 (bug 1547351)
2019-07-15 17:47:40 +03:00
Alexis Beingessner
d50fecc746 Bug 1547351 - Automatically set content process render root r=kats
This implements the idea of automatically setting a content proc's
render root based on the render root enclosing the iframe that
points to it. There was a bit of cleanup in here that was a bit
tricky to extract from the core patch revolving around how we
use the Api(...) helper. This was to avoid the situation where
we use the Api(...) helper before our render root is initialized,
when we don't actually have to. I.e., when we just want the root
WebRenderAPI in all cases.

An alternative to this approach could be to fully built out the
WebRender transactions and just queue those up to be sent. However,
transaction building has various side effects which are committed
before the transaction is actually sent, so we would have to build
out some scheme for deferring those as well. This seemed simpler.

Patch primarily written by :dthayer

Differential Revision: https://phabricator.services.mozilla.com/D37078
2019-07-15 13:18:44 +00:00
Mihai Alexandru Michis
bfd7d7e1ed Backed out 2 changesets (bug 1547351) for causing bustages in nsTArray.h CLOSED TREE
Backed out changeset 46c9b479034f (bug 1547351)
Backed out changeset 4689b2870416 (bug 1547351)
2019-07-12 17:37:24 +03:00
Alexis Beingessner
1520d0d2c2 Bug 1547351 - Automatically set content process render root r=kats
This implements the idea of automatically setting a content proc's
render root based on the render root enclosing the iframe that
points to it. There was a bit of cleanup in here that was a bit
tricky to extract from the core patch revolving around how we
use the Api(...) helper. This was to avoid the situation where
we use the Api(...) helper before our render root is initialized,
when we don't actually have to. I.e., when we just want the root
WebRenderAPI in all cases.

An alternative to this approach could be to fully built out the
WebRender transactions and just queue those up to be sent. However,
transaction building has various side effects which are committed
before the transaction is actually sent, so we would have to build
out some scheme for deferring those as well. This seemed simpler.

Patch primarily written by :dthayer

Differential Revision: https://phabricator.services.mozilla.com/D37078
2019-07-12 14:14:22 +00:00
Coroiu Cristina
8e0343e449 Backed out 2 changesets (bug 1547351) for build bustage at gfx/layers/wr/WebRenderBridgeParent.cpp on a CLOSED TREE
Backed out changeset af34904f00c7 (bug 1547351)
Backed out changeset 94db0d98be90 (bug 1547351)
2019-07-12 08:40:27 +03:00
Alexis Beingessner
227074a12b Bug 1547351 - Automatically set content process render root r=kats
This implements the idea of automatically setting a content proc's
render root based on the render root enclosing the iframe that
points to it. There was a bit of cleanup in here that was a bit
tricky to extract from the core patch revolving around how we
use the Api(...) helper. This was to avoid the situation where
we use the Api(...) helper before our render root is initialized,
when we don't actually have to. I.e., when we just want the root
WebRenderAPI in all cases.

An alternative to this approach could be to fully built out the
WebRender transactions and just queue those up to be sent. However,
transaction building has various side effects which are committed
before the transaction is actually sent, so we would have to build
out some scheme for deferring those as well. This seemed simpler.

Patch primarily written by :dthayer

Differential Revision: https://phabricator.services.mozilla.com/D37078
2019-07-12 05:14:05 +00:00
Gurzau Raul
0daceadf1e Backed out 2 changesets (bug 1547351) for build bustages at WebRenderBridgeParent.cpp on a CLOSED TREE.
Backed out changeset b294575c279c (bug 1547351)
Backed out changeset 69260373f95c (bug 1547351)
2019-07-12 06:47:35 +03:00
Alexis Beingessner
6f391fc4a5 Bug 1547351 - Automatically set content process render root r=kats
This implements the idea of automatically setting a content proc's
render root based on the render root enclosing the iframe that
points to it. There was a bit of cleanup in here that was a bit
tricky to extract from the core patch revolving around how we
use the Api(...) helper. This was to avoid the situation where
we use the Api(...) helper before our render root is initialized,
when we don't actually have to. I.e., when we just want the root
WebRenderAPI in all cases.

An alternative to this approach could be to fully built out the
WebRender transactions and just queue those up to be sent. However,
transaction building has various side effects which are committed
before the transaction is actually sent, so we would have to build
out some scheme for deferring those as well. This seemed simpler.

Patch primarily written by :dthayer

Differential Revision: https://phabricator.services.mozilla.com/D37078
2019-07-12 03:19:28 +00:00
Sylvestre Ledru
f4d7743944 Bug 1562642 - Part 3 - Add missing MPL2 headers in browser & toolkit r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D37217
2019-07-10 12:03:37 +00:00
Andreea Pavel
1ec8be7299 Backed out changeset 3d59cb02b6ff (bug 1562642) for eslint failure on a CLOSED TREE 2019-07-10 14:44:29 +03:00
Sylvestre Ledru
48a94b058e Bug 1562642 - Part 3 - Add missing MPL2 headers in browser & toolkit r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D37217
2019-07-10 11:15:25 +00:00
Victor Porof
8eb72fd3fc Bug 1561435 - Format browser/components/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D36042
2019-07-05 09:53:32 +02:00
Doug Thayer
d72fe888e9 Bug 1547351 - Set renderroot of extension popup on browser element r=mattwoodrow
I'm not sure when/if this stopped working, but it appears the -moz-stack
display of the stack element doesn't send us through the admittedly
brittle pathways that allow us to create nsDisplayRenderRoots. This
brittleness is a consequence of copying the use of the "layer"
attribute and is discussed in the core document splitting bug. It's
outside the scope of this bug to fix that.

Differential Revision: https://phabricator.services.mozilla.com/D31006
2019-05-14 16:58:40 +00:00
Doug Thayer
78132cddf9 Bug 1441308 - Core renderroot splitting changes r=kats,sotaro
This is a large patch that contains all of the core changes for
renderroot splitting.

Differential Revision: https://phabricator.services.mozilla.com/D20701
2019-03-22 18:28:42 +00:00
Ciure Andrei
be6acddb9e Backed out 7 changesets (bug 1441308)for causing webrender build bustages CLOSED TREE
Backed out changeset 1764701d11d1 (bug 1441308)
Backed out changeset 32f7793dfd1a (bug 1441308)
Backed out changeset d8b4d6ec9b40 (bug 1441308)
Backed out changeset e2f83e4816dd (bug 1441308)
Backed out changeset baee8ada680f (bug 1441308)
Backed out changeset c09a51622e98 (bug 1441308)
Backed out changeset 737807563dd5 (bug 1441308)
2019-03-22 10:52:44 +02:00
Doug Thayer
4c535e830a Bug 1441308 - Core renderroot splitting changes r=kats,sotaro
This is a large patch that contains all of the core changes for
renderroot splitting.

Differential Revision: https://phabricator.services.mozilla.com/D20701
2019-03-22 03:15:14 +00:00
Neil Deakin
ce9efe8f68 Bug 1519953, replace calls to retrieve boxobject position and size with getBoundingClientRect, r=gijs 2019-03-01 12:26:45 -05:00
Luca Greco
bd2c18d158 Bug 1446027 - Prevents synchronous uninterruptible reflow from ExtensionPopups.jsm. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D12158
2019-01-30 20:08:08 +00:00
Kris Maglione
856fa07b17 Bug 1514594: Part 3 - Change ChromeUtils.import API.
***
Bug 1514594: Part 3a - Change ChromeUtils.import to return an exports object; not pollute global. r=mccr8

This changes the behavior of ChromeUtils.import() to return an exports object,
rather than a module global, in all cases except when `null` is passed as a
second argument, and changes the default behavior not to pollute the global
scope with the module's exports. Thus, the following code written for the old
model:

  ChromeUtils.import("resource://gre/modules/Services.jsm");

is approximately the same as the following, in the new model:

  var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");

Since the two behaviors are mutually incompatible, this patch will land with a
scripted rewrite to update all existing callers to use the new model rather
than the old.
***
Bug 1514594: Part 3b - Mass rewrite all JS code to use the new ChromeUtils.import API. rs=Gijs

This was done using the followng script:

https://bitbucket.org/kmaglione/m-c-rewrites/src/tip/processors/cu-import-exports.jsm
***
Bug 1514594: Part 3c - Update ESLint plugin for ChromeUtils.import API changes. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D16747
***
Bug 1514594: Part 3d - Remove/fix hundreds of duplicate imports from sync tests. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16748
***
Bug 1514594: Part 3e - Remove no-op ChromeUtils.import() calls. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16749
***
Bug 1514594: Part 3f.1 - Cleanup various test corner cases after mass rewrite. r=Gijs
***
Bug 1514594: Part 3f.2 - Cleanup various non-test corner cases after mass rewrite. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16750
2019-01-17 10:18:31 -08:00
Rob Wu
4b28cecd93 Bug 1518598 - Return early if popup has already been closed r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D16033
2019-01-15 18:50:49 +00:00
Gijs Kruitbosch
ae4c0d1d3d Bug 1493655 - make nsISecureBrowserUI initialize from a docshell instead of a window, r=keeler,nika
This also removes the (afaict, unused) stub implementation from TabParent. The netwerk header
inclusions were necessary because those files included TabParent.h and through it,
nsISecureBrowserUI, but now TabParent.h no longer does that.

Differential Revision: https://phabricator.services.mozilla.com/D6829
2018-09-26 17:48:38 +00:00
Brendan Dahl
532fe1f6b0 Bug 1485426 - Use createXULElement instead of createElement in XUL docs. r=bgrins
Preparing for transitioning to XHTML.

MozReview-Commit-ID: JLlmUxsvhIB

Differential Revision: https://phabricator.services.mozilla.com/D4265
2018-08-25 00:16:27 +00:00
Cosmin Sabou
4ad8223a46 Merge mozilla-inbound to mozilla-central. a=merge 2018-08-15 03:51:45 +03:00
Brian Grinstead
c8b3483e82 Bug 1479538 - Rewrite non-test callers of document.createElementNS(XUL_NS, ...) to use document.createXULElement(...);r=paolo
Differential Revision: https://phabricator.services.mozilla.com/D3275
2018-08-14 16:22:44 +00:00
Kris Maglione
2250619ab1 Bug 1480244: Part 5 - Run most framescripts in shared scope. r=mconley
Creating non-shared scopes for frame scripts is fairly expensive. After these
changes it's even more expensive. However, many frame scripts have no use for
the shared scopes at all. Run-once scripts which execute in closures, for
instance, make no use of them. And after bug 1472491, neither do most of our
default frame scripts.

MozReview-Commit-ID: 9PK7bYdQ0yh
2018-08-10 13:58:18 -07:00