Commit Graph
137 Commits
Author SHA1 Message Date
Brad Werth 9f1f58e1a6 Bug 1595092 Part 2: Update an existing RDM content size test to test against the new RDM UI. r=mtigley
Depends on D56979

Differential Revision: https://phabricator.services.mozilla.com/D57144
2019-12-13 19:25:43 +00:00
Brad Werth 585a7193e3 Bug 1595092 Part 1: Make new RDM UI size the content pane with content-box. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D56979
2019-12-13 19:22:02 +00:00
Kris Maglione ac36cf0bd5 Bug 1596918: Part 4g - Misc cleanup/fixes. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53748
2019-12-13 20:36:48 +00:00
Kris Maglione 99c0b418ed Bug 1596918: Part 4c - Fix callers which depend on document lifecycle changes. r=mccr8
ContentTask tasks have a different lifetime than SpecialPowers tasks, with the
former being tied to the lifetime of a message manager and the latter tied to
the lifetime of a window global. That means that existing ContentTask callers
which expect to be able to register load listeners before the creation of a
window global, or which expect to persist after a page has navigated, won't
work as SpecialPowers tasks.

Since those sorts of tasks are not really resilient in the face of Fission,
they should really be written to work differently, but this patch mostly just
reverts them to using ContentTask for the time being.

Differential Revision: https://phabricator.services.mozilla.com/D53744
2019-12-13 20:36:36 +00:00
Kris Maglione 7b2657b231 Bug 1596918: Part 3b - Run code formatters on files changed by previous patch. r=mccr8,remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D53741
2019-12-13 20:36:24 +00:00
Kris Maglione 8c0d38f33d Bug 1596918: Part 3a - Scripted rewrite of most ContentTask.spawn calls to SpecialPowers.spawn calls. r=mccr8,remote-protocol-reviewers,ato
This is generally pretty straightforward, and rewrites nearly all calls. It
skips the ones that it can detect using frame script globals like
`sendAsyncMessage`, though.

Differential Revision: https://phabricator.services.mozilla.com/D53740
2019-12-13 20:36:16 +00:00
Brad Werth ac05a784c2 Bug 1579178 Part 4: Update test functions and an existing zoom test to work with new RDM UI. r=mtigley
This patch does several related things:
1) Updates the test helper functions in ui.js to make them sensible
for both the old and new RDM UI.
2) Updates the test helper function addRDMTask to return the correct
"browser" values for both RDM UIs. Old RDM UI tests that want to
spawn a content task should now use ui.getViewportBrowser() for that,
and only use the browser value for getting/setting of zoom and any
other methods that take browsers as arguments.
3) Updates the test helper function promiseRDM to make it wait on
the correct event.
4) Updates a non-zoom test that uses addRDMTask to use the new
browser value correctly.
5) Updates a zoom test to use the addRDMTask function, and therefore
run the test using the new RDM UI. This test exercises the issue
that is the focus of this bug.

Differential Revision: https://phabricator.services.mozilla.com/D56510
2019-12-13 19:13:00 +00:00
Brad Werth 4b2febb93d Bug 1579178 Part 3: Remove the old RDM UI method for save-and-restore of resolution for full zoom changes. r=mtigley
The firing of the "ZoomComplete" event is no longer necessary, now
that ZoomParent fires a "PostFullZoomChange" event, which serves a
similar purpose. The next part of the patch listens for that event.

Differential Revision: https://phabricator.services.mozilla.com/D56509
2019-12-13 19:12:55 +00:00
Brad Werth f445484649 Bug 1579178 Part 1: Make RDM new browser ui change viewport size in response to zoom. r=mtigley
Because the new RDM UI does not retain the width and height of the
device, this patch extracts those values from the prefs which are
updated in the viewports reducer. There probably should be a more
resilient way to maintain those values.

Differential Revision: https://phabricator.services.mozilla.com/D54379
2019-12-13 19:11:15 +00:00
Micah Tigley 29a6416bc6 Bug 1596166 - Remove "height: 30px" on RDM toolbar r=bgrins
The UA input field gets caught off when the browser viewport is too small. This is because the RDM toolbar has an explicit height of 30px set on it, so it can't accomodate the second row created for the UA input.

Differential Revision: https://phabricator.services.mozilla.com/D56783
2019-12-11 19:50:34 +00:00
shindli 0aa47af90e Backed out 9 changesets (bug 1596918) for causing mochitest permafailures in toolkit/content/tests/chrome/test_findbar_events.xhtml CLOSED TREE
Backed out changeset 45a1c42118f2 (bug 1596918)
Backed out changeset db09910ffa56 (bug 1596918)
Backed out changeset 5c9d9f141c10 (bug 1596918)
Backed out changeset 6a135670d603 (bug 1596918)
Backed out changeset 3a0184e0df72 (bug 1596918)
Backed out changeset 2f0036486823 (bug 1596918)
Backed out changeset a770c6d08d52 (bug 1596918)
Backed out changeset ef062eb7a6ee (bug 1596918)
Backed out changeset a6ea596e98db (bug 1596918)
2019-12-11 03:09:26 +02:00
Kris Maglione c87948a206 Bug 1596918: Part 4g - Misc cleanup/fixes. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53748
2019-12-10 23:07:41 +00:00
Kris Maglione af77c00e7a Bug 1596918: Part 4c - Fix callers which depend on document lifecycle changes. r=mccr8
ContentTask tasks have a different lifetime than SpecialPowers tasks, with the
former being tied to the lifetime of a message manager and the latter tied to
the lifetime of a window global. That means that existing ContentTask callers
which expect to be able to register load listeners before the creation of a
window global, or which expect to persist after a page has navigated, won't
work as SpecialPowers tasks.

Since those sorts of tasks are not really resilient in the face of Fission,
they should really be written to work differently, but this patch mostly just
reverts them to using ContentTask for the time being.

Differential Revision: https://phabricator.services.mozilla.com/D53744
2019-12-10 23:07:22 +00:00
Kris Maglione eb68f8b548 Bug 1596918: Part 3b - Run code formatters on files changed by previous patch. r=mccr8,remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D53741
2019-12-10 23:07:21 +00:00
Kris Maglione ad3537fc50 Bug 1596918: Part 3a - Scripted rewrite of most ContentTask.spawn calls to SpecialPowers.spawn calls. r=mccr8,remote-protocol-reviewers,ato
This is generally pretty straightforward, and rewrites nearly all calls. It
skips the ones that it can detect using frame script globals like
`sendAsyncMessage`, though.

Differential Revision: https://phabricator.services.mozilla.com/D53740
2019-12-10 23:07:13 +00:00
Micah Tigley 57bd4ff2b5 Bug 1584346 - Make RDM UI's getViewportBrowser return the browser tab if fission-enabled r=mconley,bradwerth
This revision modifies RDM UI’s `getViewportBrowser` to return the tab’s <browser> instead of the <mozbrowser> this.toolWindow’s [getViewportBrowser method](https://searchfox.org/mozilla-central/source/devtools/client/responsive/index.js#176) returns. If the pref `devtools.responsive.browserUI.enabled` is set to true, this will cause this.toolWindow to be null because this object is set during the [swap step when RDM is initialized](https://searchfox.org/mozilla-central/source/devtools/client/responsive/ui.js#150). Since we're not doing away with swap/tunnel until work on RDM fission is complete, we should still preserve the toolWindow property on RDM UI.

For context, this.toolWindow is a reference to the RDM UI’s window, which also happens to be populated with other properties such as `getViewportBrowser` (the function causing the issue), `getViewportSize`, `addInitialViewport`, etc… It’s responsible for holding the RDM UI  chrome:// document which is also where the <mozbrowser> iframe is contained. Please see: https://searchfox.org/mozilla-central/source/devtools/client/responsive/index.js for reference on where these properties are added.

Also, now that the RDM fission work requires the removal of <mozbrowser>, this.toolWindow won't be needed to get access to the toolbar UI. The RDM toolbar will be embedded into the browser UI and can be referenced with `this.rdmFrame`.

So this means toolWindow along with any parts of the code using it should be removed when fission work is complete. I believe [Bug 1585096](https://bugzilla.mozilla.org/show_bug.cgi?id=1585096) would be the correct place to do this.

Differential Revision: https://phabricator.services.mozilla.com/D56602
2019-12-10 22:05:03 +00:00
Daniel Varga c3a6307d14 Backed out changeset e65c1bcb013f (bug 1601475) for causing build bustage. On a CLOSED TREE 2019-12-09 12:51:07 +02:00
Tyler 8b1da25252 Bug 1601475 - Remove ImageContentLoaded event and ImageDocumentLoaded message handling code across the tree r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D56051
2019-12-09 10:18:25 +00:00
Noemi Erli 21eec8658f Backed out 9 changesets (bug 1596918) for causing multiple browser-chrome failures
Backed out changeset 415007efd8c9 (bug 1596918)
Backed out changeset 011eb5ce927b (bug 1596918)
Backed out changeset e5fd3ee22ea1 (bug 1596918)
Backed out changeset 0bca4de31d40 (bug 1596918)
Backed out changeset 11ec4393f23d (bug 1596918)
Backed out changeset c5404a7c286d (bug 1596918)
Backed out changeset 7e9304405a46 (bug 1596918)
Backed out changeset fa0f0aeabf99 (bug 1596918)
Backed out changeset de196b077000 (bug 1596918)
2019-12-07 22:26:43 +02:00
Kris Maglione b442dbf855 Bug 1596918: Part 4c - Fix callers which depend on document lifecycle changes. r=mccr8
ContentTask tasks have a different lifetime than SpecialPowers tasks, with the
former being tied to the lifetime of a message manager and the latter tied to
the lifetime of a window global. That means that existing ContentTask callers
which expect to be able to register load listeners before the creation of a
window global, or which expect to persist after a page has navigated, won't
work as SpecialPowers tasks.

Since those sorts of tasks are not really resilient in the face of Fission,
they should really be written to work differently, but this patch mostly just
reverts them to using ContentTask for the time being.

Differential Revision: https://phabricator.services.mozilla.com/D53744
2019-12-07 18:44:34 +00:00
Kris Maglione 6fb2c35351 Bug 1596918: Part 3b - Run code formatters on files changed by previous patch. r=mccr8,remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D53741
2019-12-07 18:44:34 +00:00
Kris Maglione 88fbf261f8 Bug 1596918: Part 3a - Scripted rewrite of most ContentTask.spawn calls to SpecialPowers.spawn calls. r=mccr8,remote-protocol-reviewers,ato
This is generally pretty straightforward, and rewrites nearly all calls. It
skips the ones that it can detect using frame script globals like
`sendAsyncMessage`, though.

Differential Revision: https://phabricator.services.mozilla.com/D53740
2019-12-07 19:11:58 +00:00
Daniel Varga 85f263a4c2 Backed out 17 changesets (bug 1596918) for multiple browser-chrome and dev-tools failures. On a CLOSED TREE
Backed out changeset ab87d2c1afae (bug 1596918)
Backed out changeset 775f3b06a687 (bug 1596918)
Backed out changeset 67cc63ef5d7f (bug 1596918)
Backed out changeset 7d290bcd2067 (bug 1596918)
Backed out changeset 048db9f4db7c (bug 1596918)
Backed out changeset 96a79d2ba614 (bug 1596918)
Backed out changeset be770d112dd8 (bug 1596918)
Backed out changeset 302c8ab8391c (bug 1596918)
Backed out changeset 44ef8f20732e (bug 1596918)
Backed out changeset 38c11ebfb8ff (bug 1596918)
Backed out changeset b586fc081374 (bug 1596918)
Backed out changeset 12283166716f (bug 1596918)
Backed out changeset 99b0421015d8 (bug 1596918)
Backed out changeset 97ec49dbbbf3 (bug 1596918)
Backed out changeset ec79478f58f1 (bug 1596918)
Backed out changeset c6d356833bb8 (bug 1596918)
Backed out changeset 5ef6026806c8 (bug 1596918)
2019-12-07 03:12:07 +02:00
Kris Maglione 3850c6a060 Bug 1596918: Part 4c - Fix callers which depend on document lifecycle changes. r=mccr8
ContentTask tasks have a different lifetime than SpecialPowers tasks, with the
former being tied to the lifetime of a message manager and the latter tied to
the lifetime of a window global. That means that existing ContentTask callers
which expect to be able to register load listeners before the creation of a
window global, or which expect to persist after a page has navigated, won't
work as SpecialPowers tasks.

Since those sorts of tasks are not really resilient in the face of Fission,
they should really be written to work differently, but this patch mostly just
reverts them to using ContentTask for the time being.

Differential Revision: https://phabricator.services.mozilla.com/D53744
2019-12-06 22:15:25 +00:00
Kris Maglione 487c4fe9c7 Bug 1596918: Part 3b - Run code formatters on files changed by previous patch. r=mccr8,remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D53741
2019-12-06 22:14:22 +00:00
Kris Maglione e59706f08a Bug 1596918: Part 3a - Scripted rewrite of most ContentTask.spawn calls to SpecialPowers.spawn calls. r=mccr8,remote-protocol-reviewers,ato
This is generally pretty straightforward, and rewrites nearly all calls. It
skips the ones that it can detect using frame script globals like
`sendAsyncMessage`, though.

Differential Revision: https://phabricator.services.mozilla.com/D53740
2019-12-06 22:14:14 +00:00
Daisuke Akatsuka 0943dbad49 Bug 1600183: Disable non test mouse event. r=jdescottes,pbro
Differential Revision: https://phabricator.services.mozilla.com/D56176
2019-12-06 13:34:15 +00:00
Micah Tigley 64fd70cd2b Bug 1585100 - Make sure text in embedded RDM has dark theme styling r=gl
Overall, the new RDM is using dark theme styling as before. The only exception is the text in the actual toolbar React component, which seems to default to using light theme colors. This revision applies a CSS variable `theme-body-color` to the toolbar's document body to toggle between dark/light theme colors for text.

Differential Revision: https://phabricator.services.mozilla.com/D55706
2019-12-04 21:20:46 +00:00
Micah Tigley c25fdf16d4 Bug 1595800 - Part 4: Update RDM to use setRDMPaneOrientation from BrowsingContext r=bradwerth
Depends on D55002

Differential Revision: https://phabricator.services.mozilla.com/D55017
2019-12-04 14:58:20 +00:00
Daisuke Akatsuka c06263194f Bug 1306198: Add a test to confirm the content of device item in the modal. r=pbro,mtigley
Depends on D55255

Differential Revision: https://phabricator.services.mozilla.com/D55256
2019-12-03 21:11:26 +00:00
Daisuke Akatsuka 44ba485874 Bug 1306198: Add an unit test for user agent parser. r=pbro,mtigley
Depends on D55254

Differential Revision: https://phabricator.services.mozilla.com/D55255
2019-12-04 05:59:22 +00:00
Daisuke Akatsuka 5a699c8b94 Bug 1306198: Change the tooltip of device items in the device modal. r=pbro,mtigley,flod
Depends on D55253

Differential Revision: https://phabricator.services.mozilla.com/D55254
2019-12-03 21:05:17 +00:00
Daisuke Akatsuka 2c357ab68a Bug 1306198: Show device info on device selector button. r=pbro,mtigley
Depends on D55252

Differential Revision: https://phabricator.services.mozilla.com/D55253
2019-12-04 05:27:01 +00:00
Daisuke Akatsuka b459e1d97a Bug 1306198: Show browser and os info on the device menu item. r=pbro,mtigley
Depends on D55251

Differential Revision: https://phabricator.services.mozilla.com/D55252
2019-12-03 21:10:28 +00:00
Daisuke Akatsuka 4a019c4e10 Bug 1306198: Show browser and os info which is from the UA in the device list. r=pbro,mtigley
Differential Revision: https://phabricator.services.mozilla.com/D55250
2019-12-03 20:01:58 +00:00
Daisuke Akatsuka 9a4fcf24b1 Bug 1306198: Introduce user agent parser. r=pbro,mtigley
Differential Revision: https://phabricator.services.mozilla.com/D55607
2019-12-04 06:00:37 +00:00
Gurzau Raul b34e3d1096 Backed out 4 changesets (bug 1595800) for failing at browser_orientationchange_event.js on a CLOSED TREE.
Backed out changeset c78cb9bbddb9 (bug 1595800)
Backed out changeset 558449ce7d0a (bug 1595800)
Backed out changeset ef7f9e251137 (bug 1595800)
Backed out changeset 2167343f5bd3 (bug 1595800)
2019-12-04 02:27:04 +02:00
Micah Tigley 903f531ca8 Bug 1595800 - Part 4: Update RDM to use setRDMPaneOrientation from BrowsingContext r=bradwerth
Depends on D55002

Differential Revision: https://phabricator.services.mozilla.com/D55017
2019-12-03 20:00:13 +00:00
Brindusan Cristian 81dd96364c Backed out 4 changesets (bug 1595800) for devtools failures at browser_contextual_identity.js. CLOSED TREE
Backed out changeset 7d6f51331aed (bug 1595800)
Backed out changeset d44c8dde04be (bug 1595800)
Backed out changeset 2f607bbc19b9 (bug 1595800)
Backed out changeset 196ca9fefb06 (bug 1595800)
2019-12-03 19:44:37 +02:00
Micah Tigley d5df3c110b Bug 1595800 - Part 4: Update RDM to use setRDMPaneOrientation from BrowsingContext r=bradwerth
Depends on D55002

Differential Revision: https://phabricator.services.mozilla.com/D55017
2019-12-03 01:03:17 +00:00
Brad Werth 3261a86db8 Bug 1514429 Part 4: Update tests and test functions that conflated visual viewport and layout viewport. r=mtigley
Responsive Design Mode sends internal messages for the content size and
viewport size. The viewport size used to be reflective of the visual
viewport. These changes make it use the layout viewport instead.

The viewport is also being used as a stand-in for RDM device size. That
needs more investigation since content size and viewport size should be
conceptually distinct. This need for clarity is less urgent because the
RDM feature is being rebuilt for Fission support, tracked by
Bug 1574885. If this issue becomes problematic before Bug 1574885 is
landed, then we'll need to open a new bug to resolve it.

Differential Revision: https://phabricator.services.mozilla.com/D54352
2019-12-02 23:17:46 +00:00
Daisuke Akatsuka a316fbe731 Bug 1600183: Create a promise which waits for the tooltip will be shown before firing the mouse events. r=pbro
Differential Revision: https://phabricator.services.mozilla.com/D55427
2019-12-02 14:42:29 +00:00
Julian Descottes bc2445807d Bug 1521934 - Part 3: wait for device-changed when editing RDM device in tests r=pbro
Depends on D54630

Differential Revision: https://phabricator.services.mozilla.com/D55262
2019-11-29 13:34:25 +00:00
Brad Werth d558caa03a Bug 1521934 Part 2: Update a test to specify a meta viewport size to ensure scrolling is still possible. r=pbro
Depends on D53005

Differential Revision: https://phabricator.services.mozilla.com/D54630
2019-11-29 13:51:48 +00:00
Neil Deakin 14c85176d0 Bug 1595155, support click handler which allows modifier+click in out of process iframes, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D52642
2019-11-27 19:30:19 +00:00
Sylvestre Ledru 34c92ee57b Bug 1596911 - Add missing license headers on the new managed extensions r=Gijs,MattN
Depends on D53267

Differential Revision: https://phabricator.services.mozilla.com/D53269
2019-11-26 15:00:00 +00:00
Micah Tigley 0faa57b31c Bug 1593708 - Part 4: Update RDM to set inRDMPane property on the BrowsingContext. r=bradwerth
Depends on D52217

Differential Revision: https://phabricator.services.mozilla.com/D52219
2019-11-07 22:17:18 +00:00
Kris Maglione ff3e04cd41 Bug 1595927 - Remove XPCOM gunk around RemoteWebNavigation creation. r=mconley
It just adds a lot of unnecessary overhead and indirection.

Differential Revision: https://phabricator.services.mozilla.com/D52753
2019-11-15 01:23:40 +00:00
Dorel Luca cbe950f461 Backed out changeset c4ff245706ab (bug 1595155) for Android mochitest failures on mobile/android/components/extensions/test/mochitest/test_ext_webNavigation_onCommitted.html. CLOSED TREE 2019-11-14 19:14:27 +02:00
Gurzau Raul be1d1fb817 Bug 1533943 - Fixed eslint failure at browser/web-navigation.js on a CLOSED TREE. 2019-11-14 03:57:50 +02:00