Skip to content
This repository has been archived by the owner on Dec 1, 2017. It is now read-only.

Commit

Permalink
Bug 1257154 - Switch to getting DOM title updates via a frame script…
Browse files Browse the repository at this point in the history
… to work better with e10s - add the script to the repo. r=mikedeboer
  • Loading branch information
Standard8 committed Apr 12, 2016
1 parent d852d29 commit 3365b69
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions add-on/chrome/modules/tabFrame.js
@@ -0,0 +1,22 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */

"use strict";

/* global sendAsyncMessage */

/**
* This script runs in the content process and is attached to browsers when
* they are created.
*/

// Listen for when the title is changed and send a message back to the chrome
// process.
addEventListener("DOMTitleChanged", ({ target }) => {
sendAsyncMessage("loop@mozilla.org:DOMTitleChanged", {
details: "titleChanged"
}, {
target: target
});
});

0 comments on commit 3365b69

Please sign in to comment.