Commit Graph

522 Commits

Author SHA1 Message Date
Rob Wu
f9de7aa235 Bug 1589754 - Rename nsGlobalWindowInner::GetTopLevelPrincipal r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D50068
2019-10-23 18:14:44 +00:00
Jonathan Kingston
6712edf12b Bug 1585582 - Simplify exposure of AppCache interface for SecureContext r=baku
Differential Revision: https://phabricator.services.mozilla.com/D47959
2019-10-21 09:35:19 +00:00
Tom Tung
edd6b0880e Bug 1587394 - Provide a pref to bypass postMessage COOP and COEP check on Nightly and Dev; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D48713
2019-10-21 14:47:52 +00:00
Ehsan Akhgari
62c3a5ca03 Bug 1588614 - Cache the document's effective storage principal to avoid running excessive anti-tracking checks; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D49791
2019-10-21 12:53:38 +00:00
Razvan Maries
47fa86cc7a Backed out 3 changesets (bug 1585582) for perma fails on appcache.tentative.https.sub.html.
Backed out changeset a55fbe377803 (bug 1585582)
Backed out changeset 0bd7ff0df367 (bug 1585582)
Backed out changeset 78a947a05f08 (bug 1585582)
2019-10-20 21:15:17 +03:00
Jonathan Kingston
e599bc68f6 Bug 1585582 - Simplify exposure of AppCache interface for SecureContext r=baku
Differential Revision: https://phabricator.services.mozilla.com/D47959
2019-10-18 16:05:28 +00:00
Oana Pop Rus
617ecf362e Backed out 3 changesets (bug 1585582) for bc failures browser/base/content/test/sanitize/browser.ini on a CLOSED TREE
Backed out changeset 98d7a4f4388f (bug 1585582)
Backed out changeset c13ec2bbc0a7 (bug 1585582)
Backed out changeset 8015660b170f (bug 1585582)
2019-10-18 18:42:49 +03:00
Jonathan Kingston
ec78640bc0 Bug 1585582 - Simplify exposure of AppCache interface for SecureContext r=baku
Differential Revision: https://phabricator.services.mozilla.com/D47959
2019-10-16 15:36:51 +00:00
Bogdan Tara
652a856e6e Backed out changeset 667e16c6814c (bug 1587394) for pref lint failure CLOSED TREE 2019-10-17 18:55:15 +03:00
Tom Tung
42ae358112 Bug 1587394 - Provide a pref to bypass postMessage COOP and COEP check on Nightly and Dev; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D48713
2019-10-17 14:15:58 +00:00
Edgar Chen
4271d56f86 Bug 1588208 - Don't need to traverse to TimeoutHandler; r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D49282
2019-10-15 20:53:00 +00:00
Kris Maglione
30ea2a7cb7 Bug 1583400: Follow-up: Fix cycle collector assertion.
Differential Revision: https://phabricator.services.mozilla.com/D49034
2019-10-11 23:22:52 +00:00
Kris Maglione
ec15a55217 Bug 1583400: Make IsCurrentInnerWindow Fission-compatible. r=bzbarsky
IsCurrentInnerWindow() should only return true when we are the current inner
of our BrowsingContext, which has a longer lifetime than individual
GlobalWindowOuter instances. In particular, if our BrowsingContext has no
GlobalWindowOuter hanging off it, that means that currently it's hosting an
inner window from some other process and we are not the current inner. If it
_does_ have a GlobalWindowOuter hanging off it, it's possible that this is not
the same as our mOuterWindow, if the BrowsingContext navigated to a different
site and then navigated back to our site.

Therefore, we need to check that we are the current inner of whatever the
BrowsingContext's current GlobalWindowOuter is, if it has one at all.

Differential Revision: https://phabricator.services.mozilla.com/D48595
2019-10-11 21:53:22 +00:00
Kris Maglione
3678333d88 Bug 1586887: Return WindowProxyHolder rather than BrowsingContext from Window WebIDL getters. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D48429
2019-10-11 19:32:09 +00:00
Imanol Fernandez
a8f6f291f6 Bug 1587366 - Fix VRManagerParent::GetVRActiveStatus race condition: Notify VRActiveStatus after a the VREventObserver is created. r=rbarker,daoshengmu
Notify VRActiveStatus after a the VREventObserver is created to prevent the VRManagerParent::GetVRActiveStatus race condition.
Call VRManager::Shutdown() when the app goes to background instead of calling it in the foreground event due to the inactivity timer.

Differential Revision: https://phabricator.services.mozilla.com/D48678
2019-10-11 15:58:39 +00:00
Brendan Dahl
bf272a3bca Bug 1510785 - Only build XBL related code when MOZ_XBL is defined. r=bzbarsky
When XBL is disabled, no code in dom/xbl will be built. Also, adds ifdefs
to remove any of the XBL related code elsewhere. There's definitely more
that can be done here, but I think it's better to wait to do the rest of
the cleanup when we actually remove the code.

Depends on D45612

Differential Revision: https://phabricator.services.mozilla.com/D45613
2019-10-08 23:52:14 +00:00
Brindusan Cristian
dc5f656d75 Backed out changeset 41c6b7e917fd (bug 1367251) for mochitest failures at test_conformance__textures__image_bitmap_from_blob__tex-2d-luminance-luminance-unsigned_byte.html. CLOSED TREE 2019-10-07 04:46:13 +03:00
aardgoose
61cc1c9044 Bug 1367251 - add bindings for options to createImageBitmap and support flipY r=bzbarsky,aosmond
implementation of imageOrientation: none|flipY.

Differential Revision: https://phabricator.services.mozilla.com/D29562
2019-10-04 15:20:53 +00:00
Jonathan Kingston
70ec17fad1 Bug 1237782 - Remove http override and add appcache pref r=baku
Differential Revision: https://phabricator.services.mozilla.com/D44472
2019-09-30 00:55:02 +00:00
Ehsan Akhgari
772d7644fd Bug 1577298 - Do not stop at the current document when computing the top-level principal for storage partitioning; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D47339
2019-09-27 14:05:13 +00:00
Coroiu Cristina
92b7c5ae5c Backed out changeset f3c1becf9396 (bug 1237782) for browser-chrome failures at dom/tests/mochitest/ajax/offline/browser_disableAppcache.js on a CLOSED TREE 2019-09-26 23:05:07 +03:00
Jonathan Kingston
26c75555dc Bug 1237782 - Remove http override and add appcache pref r=baku
Differential Revision: https://phabricator.services.mozilla.com/D44472
2019-09-26 19:03:04 +00:00
Tom Tung
e675497e60 Bug 1562663 - P4b - Enable SAB for window.postMessage and worker.postMessage; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D43243
2019-09-23 09:57:24 +00:00
Tom Tung
92842590ab Bug 1562663 - P2 - Pass the agent cluster id to the ClientInfo so that we can check whether two clients are in the same agent cluster; r=nika
The agent cluster id is set when the EnsureClientSource is executed;

Differential Revision: https://phabricator.services.mozilla.com/D43240
2019-09-23 09:57:23 +00:00
Jonathan Watt
c25ce80903 Bug 1559841. Make the 'load' event wait for OOP-iframes to load. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D41953
2019-09-19 00:00:44 +00:00
Mihai Alexandru Michis
fd2045760a Merge inbound to mozilla-central. a=merge 2019-09-18 12:58:15 +03:00
Kris Maglione
3988b93f74 Bug 1577723: Store BrowsingContext ID in dom::Location rather than DocShell weak reference. r=farre
Storing a DocShell rather than a BrowsingContext causes a number of problems
when dealing with cross-process navigations. The most immediate in this case
is that some cross-origin-allowed operations only work after a local-to-remote
navigation only until the original DocShell is destroyed, which causes
intermittent test failures.

It also means, though, that after a local-to-remote navigation, where the
DocShell has not been destroyed, attempts to read same-origin properties still
end up at the old DocShell, and as a result, lie about the current state of
the BrowsingContext.

Differential Revision: https://phabricator.services.mozilla.com/D46100

MANUAL PUSH: Cannot update re-opened Phabricator revisions.
2019-09-16 18:17:17 -07:00
Daniel Varga
4c8e3ceace Backed out 2 changesets (bug 1577723) for wpt failure at /html/browsers/history/the-location-interface/no-browsing-context.window.html
Backed out changeset 8bf308d3b614 (bug 1577723)
Backed out changeset 6ba3bcede28a (bug 1577723)
2019-09-18 01:50:35 +03:00
Kris Maglione
356a2e4c8d Bug 1577723: Store BrowsingContext ID in dom::Location rather than DocShell weak reference. r=farre
Storing a DocShell rather than a BrowsingContext causes a number of problems
when dealing with cross-process navigations. The most immediate in this case
is that some cross-origin-allowed operations only work after a local-to-remote
navigation only until the original DocShell is destroyed, which causes
intermittent test failures.

It also means, though, that after a local-to-remote navigation, where the
DocShell has not been destroyed, attempts to read same-origin properties still
end up at the old DocShell, and as a result, lie about the current state of
the BrowsingContext.

Differential Revision: https://phabricator.services.mozilla.com/D46100

MANUAL PUSH: Cannot update re-opened Phabricator revisions.
2019-09-16 18:17:17 -07:00
Bogdan Tara
bd7e7b3afb Backed out 21 changesets (bug 1578327, bug 1575448, bug 1580091, bug 1576554, bug 1581049, bug 1576551, bug 1578329, bug 1576555) for platform.cpp related bustage CLOSED TREE
Backed out changeset 27afea20c396 (bug 1581049)
Backed out changeset be1ec4577d37 (bug 1581049)
Backed out changeset b4b6bbb18cc1 (bug 1581049)
Backed out changeset b30942f9db54 (bug 1581049)
Backed out changeset 473c431866f7 (bug 1578329)
Backed out changeset ac492dc3df20 (bug 1578329)
Backed out changeset f51875652f6f (bug 1578327)
Backed out changeset 512b7cbd18f6 (bug 1576555)
Backed out changeset 2d63a9934c00 (bug 1576555)
Backed out changeset ff73f648ab6c (bug 1576555)
Backed out changeset 49f49079bbb5 (bug 1576555)
Backed out changeset e8323157c6f3 (bug 1575448)
Backed out changeset 3b0d726f2dd6 (bug 1575448)
Backed out changeset 5924790abc4b (bug 1576554)
Backed out changeset a14ac9bb5338 (bug 1576554)
Backed out changeset b6d73f5042a7 (bug 1576551)
Backed out changeset 366030bd2d84 (bug 1576551)
Backed out changeset d7ee4148aad9 (bug 1576551)
Backed out changeset ec72dfc7301e (bug 1576551)
Backed out changeset 79b29286f906 (bug 1580091)
Backed out changeset 6f34c2e57ccf (bug 1580091)
2019-09-17 10:16:14 +03:00
Gerald Squelart
fdb31cc298 Bug 1578329 - Use profiler_can_accept_markers() where appropriate - r=gregtatum
In places where profiler_is_active() was used around a profiler_add_marker() (or
similar) call, replace it with profiler_can_accept_markers().

Differential Revision: https://phabricator.services.mozilla.com/D44435
2019-09-17 01:53:56 +00:00
Brindusan Cristian
41a5b05884 Backed out changeset 3af4309ffce7 (bug 1237782) for wpt assertions/leaks. CLOSED TREE 2019-09-17 01:03:46 +03:00
Gerald Squelart
0449f60853 Bug 1578329 - Use profiler_can_accept_markers() where appropriate - r=gregtatum
In places where profiler_is_active() was used around a profiler_add_marker() (or
similar) call, replace it with profiler_can_accept_markers().

Differential Revision: https://phabricator.services.mozilla.com/D44435
2019-09-18 01:22:12 +00:00
Jonathan Kingston
13933a8987 Bug 1237782 - Remove http override and add appcache pref r=baku
Differential Revision: https://phabricator.services.mozilla.com/D44472
2019-09-16 17:24:39 +00:00
Dorel Luca
0463afb33f Backed out changeset 6d1a9a57c526 (bug 1577723) for Reftests in /reftest/tests/dom/base/crashtests/973401.html. CLOSED TREE 2019-09-17 21:19:10 +03:00
Kris Maglione
65575589a6 Bug 1577723: Store BrowsingContext ID in dom::Location rather than DocShell weak reference. r=farre
Storing a DocShell rather than a BrowsingContext causes a number of problems
when dealing with cross-process navigations. The most immediate in this case
is that some cross-origin-allowed operations only work after a local-to-remote
navigation only until the original DocShell is destroyed, which causes
intermittent test failures.

It also means, though, that after a local-to-remote navigation, where the
DocShell has not been destroyed, attempts to read same-origin properties still
end up at the old DocShell, and as a result, lie about the current state of
the BrowsingContext.

Differential Revision: https://phabricator.services.mozilla.com/D46100
2019-09-17 14:56:03 +00:00
Gurzau Raul
9def00d710 Backed out changeset 8c25acd6a557 (bug 1237782) for wpt failures at controller-on-disconnect.https.html 2019-09-07 14:32:37 +03:00
Jonathan Kingston
3c857e2aa7 Bug 1237782 - Remove http override and add appcache pref r=baku
Differential Revision: https://phabricator.services.mozilla.com/D44472
2019-09-07 07:45:30 +00:00
Cosmin Sabou
63c18f3f11 Backed out changeset 7dc9a45ef7d6 (bug 1237782) for causing browser chrome failures on browser_disableAppcache.js CLOSED TREE 2019-09-06 19:10:20 +03:00
Jonathan Kingston
75025cebec Bug 1237782 - Remove http override and add appcache pref r=baku
Differential Revision: https://phabricator.services.mozilla.com/D44472
2019-09-06 15:02:34 +00:00
arthur.iakab
50f4c80684 Backed out changeset e3f06f11de62 (bug 1237782) for causing browser-chrome failure on automation.py CLOSED TREE 2019-09-03 21:04:49 +03:00
Jonathan Kingston
42b359703b Bug 1237782 - Remove http override and add appcache pref r=baku
Differential Revision: https://phabricator.services.mozilla.com/D44472
2019-09-03 16:44:13 +00:00
Edgar Chen
4327dc19b1 Bug 1577175 - Part 1: Set UserGestureActivation in all ancestor of the BrowsingContext that user has interacted with; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D44358
2019-09-02 22:25:57 +00:00
Kris Maglione
4e8cd54a3e Bug 1576407: Follow-up: Ignore window.opener get/set when BrowsingContext is discarded. r=nika
MANUAL PUSH: Can't update patch on phabricator.

Differential Revision: https://phabricator.services.mozilla.com/D43833
2019-08-28 21:50:44 +00:00
Kris Maglione
abf57fd58e Bug 1576407: Part 4 - Stop storing opener redundantly on nsGlobalWindowOuter. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D43693
2019-08-28 18:07:45 +00:00
Kris Maglione
08e8c348f1 Bug 1576407: Part 3 - Return window opener as a WindowProxyHolder or BrowsingContext. r=farre
Also adds a legacy `GetSameProcessOpener()` method for callers which can only
deal with in-process windows and may need to be updated for Fission.

Differential Revision: https://phabricator.services.mozilla.com/D43692
2019-08-28 18:07:38 +00:00
Ehsan Akhgari
91b86c2721 Backout changeset 5306ba39ab30 (bug 1529396) because of harm on web developers and insufficient evidence for continued web compatibility usefulness
Differential Revision: https://phabricator.services.mozilla.com/D44053
2019-08-29 21:03:59 +00:00
Mihai Alexandru Michis
5bf8e80ffd Backed out 6 changesets (bug 1576407) for causing wpt and mochitest failures. CLOSED TREE
Backed out changeset 3b0498064cbf (bug 1576407)
Backed out changeset 38e4ea431445 (bug 1576407)
Backed out changeset 19bf40067233 (bug 1576407)
Backed out changeset 0ddbc451dcab (bug 1576407)
Backed out changeset 08d4c25fc670 (bug 1576407)
Backed out changeset be7cbc61f825 (bug 1576407)
2019-08-29 03:00:47 +03:00
Kris Maglione
8118aaf7ab Bug 1576407: Follow-up: Ignore window.opener get/set when BrowsingContext is discarded.
Differential Revision: https://phabricator.services.mozilla.com/D43833
2019-08-28 21:50:44 +00:00
Kris Maglione
9c50c43630 Bug 1576407: Part 4 - Stop storing opener redundantly on nsGlobalWindowOuter. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D43693
2019-08-28 18:07:45 +00:00