Commit Graph

77 Commits

Author SHA1 Message Date
J. Ryan Stinnett
102d79149a Bug 1429121 - Manual cleanup of RDM for async / await. r=ochameau
MozReview-Commit-ID: JMaMDw6D8iK

--HG--
extra : rebase_source : d9d83fc231e1323955662905e5f5ee1b8eb8f8be
2018-01-09 17:03:48 -06:00
J. Ryan Stinnett
892fc5c8b0 Bug 1429121 - Automated conversion of RDM to async / await. r=ochameau
MozReview-Commit-ID: BdzxQW6TbEK

--HG--
extra : rebase_source : b8b0b4bbc1ac7b56cf25c0b2fd38475aa869880f
2018-01-09 10:08:35 -06:00
J. Ryan Stinnett
555be6398c Bug 1415502 - Remove RDM browser-swap docs. r=jryans
These low level docs are getting out of date and causing confusion.  Further,
they are of limited value at this stage anyway.

MozReview-Commit-ID: FSoNniNZjtj

--HG--
extra : rebase_source : fa5e02a771adcae9b0e53bd18c4eb10ebb5315ef
2017-11-09 10:50:19 -06:00
J. Ryan Stinnett
f88990e5d9 Bug 1394841 - Test WebExt messaging with RDM. r=kmag,ochameau
This test verifies that WebExt messaging works as expected for both the
background page scripts and content scripts when RDM is used.

MozReview-Commit-ID: 3fODg3nYLr7

--HG--
extra : rebase_source : ad0051f6c377f15dbe27cf6cac5c3fd07af6fac7
2017-11-01 17:40:16 -05:00
J. Ryan Stinnett
0b32106c92 Bug 1394841 - Add WebExt messaging to RDM tunnel. r=ochameau
WebExt messaging sends several new message types to content that should be
tunneled by RDM.

This change allows them to reach content as expected in RDM mode.

MozReview-Commit-ID: GKelgOGBUKI

--HG--
extra : rebase_source : 77288fc586efbaeb9b4c344a291c7c5f815e1a15
2017-11-01 17:36:58 -05:00
Simon Van Accoleyen
dedbda00a2 Bug 1406193 - Remove last remaining SocialAPI bits. r=dao
MozReview-Commit-ID: E5GKq2CYclF
2017-10-21 18:38:17 +02:00
J. Ryan Stinnett
31887d40f0 Bug 1407830 - Verify that RDM swaps take place. r=ochameau
It is possible for the frame loader swap within `gBrowser._swapBrowserDocShells`
to fail when various frame state is either not ready yet or doesn't match
between the two browsers you're trying to swap.  However, such errors are
currently caught and silenced in the browser, because they are apparently
expected in certain cases.  So, here we do our own check to verify that the swap
actually did in fact take place, making it much easier to track such errors when
they happen.

MozReview-Commit-ID: LwuCXJQRRVW

--HG--
extra : rebase_source : f2e523ec3a5fc14306881dd823190dfcfe7cdd7a
2017-10-13 20:19:49 -05:00
J. Ryan Stinnett
c1c62750e7 Bug 1407830 - Add diagnostics to RDM swap. r=ochameau
Add some (disabled by default) logging to the RDM swap process to speed up
future investigations.

MozReview-Commit-ID: ICuH7i5Nsq5

--HG--
extra : rebase_source : 9d20a69965572020e7a98dbfe56bbcc57df0dad1
2017-10-13 20:07:24 -05:00
J. Ryan Stinnett
e9e4b587cb Bug 1348960 - Expose openLinkIn for RDM tabs. r=ochameau
MozReview-Commit-ID: 2EzZfBsNIrf

--HG--
extra : rebase_source : 7d1a6700f89d3616c80da8384be0c3642cfa800c
2017-10-03 22:34:07 -07:00
J. Ryan Stinnett
c1ae750289 Bug 1404088 - Hide RDM temporary tabs from WebExtensions. r=ochameau
RDM uses temporary tabs to move content around and into the tool's viewport.
This triggers events like `TabOpen` and `TabClose` for the temporary tab,
trigger unnecessary work, like alerting WebExtensions.

Avoid this noise for WebExtensions and others by absorbing these events.

Note that the _original_ browser tab is unaffected.  This only changes temporary
tabs RDM uses during the swapping process.

MozReview-Commit-ID: H8kBYBma6i9

--HG--
extra : rebase_source : 37150c7cb889ff64982f33f991a64fe50eacfd04
2017-09-29 17:14:32 -05:00
J. Ryan Stinnett
34fe967aaa Bug 1404088 - Add gBrowser to the browser property list. r=ochameau
MozReview-Commit-ID: fWPCkDe6Ve

--HG--
extra : rebase_source : ceb8afd71f735cc2f3776e3cba6deaa79fabaf70
2017-09-29 11:57:53 -05:00
J. Ryan Stinnett
63d0b7d4f1 Bug 1404088 - Standardize RDM's exposed browser properties. r=ochameau
MozReview-Commit-ID: KIykapQm5mP

--HG--
extra : rebase_source : f2250798916796c858fc981b9ebabac9f8d5f9cc
2017-09-28 18:47:24 -05:00
J. Ryan Stinnett
abb935a5b5 Bug 1305777 - Fix ESLint issues for moved files. r=jdescottes
MozReview-Commit-ID: 6PVoLP4MFir

--HG--
extra : rebase_source : 12648e919de27465f768206a15200d4d3a2d92a5
2017-09-28 11:28:55 -05:00
J. Ryan Stinnett
8dcfa93bc6 Bug 1305777 - Move RDM frame script to new RDM. r=ochameau
MozReview-Commit-ID: LJhKdurBVzt

--HG--
rename : devtools/client/responsivedesign/responsivedesign-child.js => devtools/client/responsive.html/browser/content.js
extra : rebase_source : 893a37595a72c96e5c1051df330d2a1c5f9b612b
2017-09-26 18:24:32 -05:00
Sebastian Hengst
5d940bbf9d Backed out changeset 5a0227d048e8 (bug 1305777) for failing devtools' devtools/client/styleeditor/test/browser_styleeditor_media_sidebar_links.js on Windows 7 debug without e10s. r=backout
--HG--
rename : devtools/client/responsive.html/browser/content.js => devtools/client/responsivedesign/responsivedesign-child.js
2017-09-29 10:45:04 +02:00
Sebastian Hengst
dd8580f93c Backed out changeset ffb4e22a4347 (bug 1305777) 2017-09-29 10:43:19 +02:00
J. Ryan Stinnett
c179bf3be8 Bug 1305777 - Fix ESLint issues for moved files. r=jdescottes
MozReview-Commit-ID: 6PVoLP4MFir

--HG--
extra : rebase_source : 3a1386c3bd0f529cb0a9d7c8317c8d89c6538b59
2017-09-28 11:28:55 -05:00
J. Ryan Stinnett
b20d8b7cc0 Bug 1305777 - Move RDM frame script to new RDM. r=ochameau
MozReview-Commit-ID: LJhKdurBVzt

--HG--
rename : devtools/client/responsivedesign/responsivedesign-child.js => devtools/client/responsive.html/browser/content.js
extra : rebase_source : 1a609cd26e85e90feb93b252b32168d8e3b2d9c1
2017-09-26 18:24:32 -05:00
J. Ryan Stinnett
4953987a06 Bug 1394473 - Fix up target=_blank links in RDM. r=ochameau
Sometime during Firefox 56, the `dataTransfer` property was removed, so this
started to fail.  It was a bit strange anyway, since we have a principal on the
outer browser.

Adds a test to cover this use case.

MozReview-Commit-ID: 9UOCc77ZRxk

--HG--
extra : rebase_source : f743c7704ff8fc0e52b7facb11e0e9b6aca9670e
2017-08-28 18:25:16 -05:00
Christoph Kerschbaumer
2ad43ee9bd Bug 1364016 - Explicitly pass a triggeringPrincipal to openURI. r=gijs,baku 2017-07-05 21:58:21 +02:00
Nathan Froyd
27c58cf89f Bug 1372670 - part 3 - add spinEventLoopUntil to nsIThreadManager; r=erahm,florian 2017-06-21 12:59:28 -04:00
Matt R
1f9d9f8cb7 Bug 1368204 - convert uses of 'defer' to 'new Promise' in client/responsive.html; r=tromey
MozReview-Commit-ID: HnjT6j9yjW3

--HG--
extra : rebase_source : 7c1eedaaec2b5f9ac05517a3a0e2210cdbd80002
2017-05-27 17:32:06 +01:00
Gabor Krizsanits
b007d78f5d Bug 1352961 - P2: Measure for the delay before a new tab starts processing the first URL. r=mconley, data-r=bsmedberg
Opening pages in a new tab might suffer an extra delay from e10s-multi because
the new process has to start up and then run all the process / frame scripts
before it can react on the request from the parent to load the first page.

There are two code paths. Either we start the tab with a remote browser and
then the RemoteWebNavigation will send the request. Or we start with a non-remote
browser and have to change the remoteness flag on it, and then the SessionStore
will send the request.

In each cases we start the timer on the parent side, send it with the message,
and when the child receives it it stops the timer and reports the measured delay.
2017-04-25 17:11:12 +02:00
J. Ryan Stinnett
6f8041829b Bug 1352814 - Force session history off for RDM container. r=ochameau
In bug 1313933, we removed the session store black magic that RDM used to do in
order to hide the container tab.

Unfortunately, that fix appears to have been imperfect.  Session store has a
fallback path that can still record the current URL, causing the container URL
to be recorded anyway, even though we asked nicely to please not do that.

In this change, we try a fresh approach of wedging the session history listener
for the container tab so it can't record anything.  This avoids the racy
approach that was used before bug 1313933 while still appearing to block the
container URL from being recorded.

MozReview-Commit-ID: JZTYzMAvaEM

--HG--
extra : rebase_source : dff8a35b25994b49f2e31888d49ffcb6b55402bb
2017-04-18 14:07:14 -05:00
Florian Queze
37ff4fc7cc Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Sebastian Hengst
a07223d699 Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
Florian Queze
95d4d20c17 Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
J. Ryan Stinnett
8ba3f9bd61 Bug 1342962 - Hide intermediate states when toggling RDM. r=ochameau
MozReview-Commit-ID: AZ9bVv15YxJ

--HG--
extra : rebase_source : 2ea78d7b8b5a6d2b0959d00c5af2746b72bc9523
2017-03-01 17:20:34 -06:00
J. Ryan Stinnett
534f8bfa90 Bug 1313933 - Explicitly bypass history when loading RDM UI. r=ochameau
By using `LOAD_FLAGS_BYPASS_HISTORY`, we can tell session history explicitly to
ignore the entry for the container UI (which is meant to remain hidden from the
user).

This allows us to remove the horrible racy hack that attempted to have the same
effect.

MozReview-Commit-ID: LnhJpO9UbNI

--HG--
extra : rebase_source : 51c3beeaa4ff081d1f9d3ddd5e00b83c56aa15e1
2017-01-27 16:03:04 -06:00
J. Ryan Stinnett
5f485b1aa7 Bug 1331601 - Copy tab listener state flags in RDM. r=ochameau
When starting and stopping RDM, we need want to ensure tab listener state flags
are preserved for the tab involved, which is a bit tricky with the tab dance
RDM is doing.

The state flags ensure the browser will call the correct handlers when switching
tabs to update the primary browser UI.  For example, this is needed to correctly
update the enabled state of the view source command for the current tab.

MozReview-Commit-ID: 7lKY0DKxgJH

--HG--
extra : rebase_source : 5cc2deafc31f8f58d13d78e5b2524d60897bf5b9
2017-01-19 13:25:14 -06:00
J. Ryan Stinnett
c6a3f8a08d Bug 1331601 - Restore remoteType on RDM close. r=ochameau
In bug 1318767, `updateBrowserRemoteness` was changed to take the `remoteType`
as part of an options argument, but the RDM call site wasn't updated.

MozReview-Commit-ID: 8GSSwicaHvz

--HG--
extra : rebase_source : 6c945bc74c5b4a366c461f34566db1dfc2eb0435
2017-01-18 17:06:55 -06:00
Christoph Kerschbaumer
be82c7af85 Bug 1329032 - Extend loadURIWithOptions by a triggeringPrincipal. r=bz,gijs 2017-01-18 08:24:55 +01:00
Wes Kocher
cb7e0bda60 Backed out 2 changesets (bug 1329032) for failures a=backout
Backed out changeset 16c4f0df527d (bug 1329032)
Backed out changeset 54f7bfe3ca11 (bug 1329032)

MozReview-Commit-ID: ChGyTdJvT8N
2017-01-17 14:08:10 -08:00
Christoph Kerschbaumer
05287d4fa8 Bug 1329032 - Extend loadURIWithOptions by a triggeringPrincipal. r=bz,gijs 2017-01-17 21:52:01 +01:00
Sebastian Hengst
cb76f56d60 Backed out changeset 6bc38f188ef2 (bug 1330099) for devtools failures. r=backout 2017-01-11 23:21:56 +01:00
Tim Nguyen
d7ea1c1605 Bug 1330099 - Enable object-shorthand eslint rule. r=jryans
MozReview-Commit-ID: 3wA25rfznBv
2017-01-11 21:22:15 +00:00
Florian Quèze
55f78ce0fa Bug 1329182 - remove trailing newURI null parameters in devtools/, r=jaws. 2017-01-09 20:27:26 +01:00
Thomas Nguyen
0aaea58b69 Bug 1304623 - Create a pref to control the default referrer policy - part 3. r=bkelly
MozReview-Commit-ID: 1A6IHPeNYBQ
2017-01-05 11:29:56 +08:00
Aman Dwivedi
6cbcc32370 Bug 1323685 - Remove workarounds for bug 449811. r=mak 2016-12-22 16:33:28 +05:30
J. Ryan Stinnett
51505bd886 Bug 1318675 - Reconnect find bar when toggling RDM. r=ochameau
MozReview-Commit-ID: 4IoXvTZXbKW

--HG--
extra : rebase_source : f86449933dbc3946a94de41ef723eddae1d8361e
2016-11-28 20:46:47 -06:00
J. Ryan Stinnett
acb8298a71 Bug 1319596 - Wait for first historychange when starting RDM. r=ochameau
In bug 1310771, the session store process for gathering data from content was
changed so that the key "historychange" is used instead of "history".  Kept the
check for "history" as well, since other places in session store still test for
it.

MozReview-Commit-ID: 4xF7FkxkriI
2016-11-25 14:12:56 -06:00
Bob Owen
4f48f9317d Bug 1147911 Part 2: Add a remote type property and use it to drive the process switching in frontend code. r=gijs, r=jryans, r=mikedeboer 2016-11-24 15:08:30 +00:00
Sebastian Hengst
4240700f13 Backed out changeset 5b26ae9afaea (bug 1147911) 2016-11-23 18:33:10 +01:00
Bob Owen
67d3ea6af8 Bug 1147911 Part 2: Add a remote type property and use it to drive the process switching in frontend code. r=gijs, r=jryans, r=mikedeboer 2016-11-23 13:36:57 +00:00
Sebastian Hengst
5fca81c6e4 Backed out changeset 5cffb4645bc0 (bug 1147911) 2016-11-18 00:58:52 +01:00
Bob Owen
8c7b20c42d Bug 1147911 Part 2: Add a remote type property and use it to drive the process switching in frontend code. r=gijs, r=jryans, r=mikedeboer 2016-11-17 15:48:52 +00:00
Ehsan Akhgari
dc33b55d94 Bug 1312101 - Part 2: Remove AppProcessChecker and code that depends on it; r=baku 2016-11-16 14:51:08 -05:00
J. Ryan Stinnett
27d8eb9d66 Bug 1316736 - Clean up RDM typos. r=ochameau
MozReview-Commit-ID: 4waiXuzrQDE

--HG--
extra : rebase_source : 1c5e6e7d61a6236ff6b008d9ad53a34de2f467db
2016-11-09 18:38:28 -06:00
Alexandre Poirot
71b721ba15 Bug 1068400 - Restore toolbox when switching from in-parent-process to OOP tab. r=jryans
MozReview-Commit-ID: K51gp7PavC7

--HG--
extra : rebase_source : dc282f177238b378c00d247b5a9c41aa83fba1ad
2016-10-24 07:37:23 -07:00
Phil Ringnalda
b6eec64324 Merge m-c to a CLOSED TREE m-i
MozReview-Commit-ID: 2JxLeQ8GYIX
2016-10-27 20:36:38 -07:00